manual improvement

master
Alexsandro Percy 2022-03-23 09:23:19 -03:00
parent c1d993a29f
commit e7d8cf2883
2 changed files with 9 additions and 4 deletions

View File

@ -16,11 +16,12 @@ end
function supercub.pilot_formspec(name)
local basic_form = table.concat({
"formspec_version[3]",
"size[6,4.5]",
"size[6,6]",
}, "")
basic_form = basic_form.."button[1,1.0;4,1;go_out;Go Offboard]"
basic_form = basic_form.."button[1,2.5;4,1;hud;Show/Hide Gauges]"
basic_form = basic_form.."button[1,4.0;4,1;manual;Show Manual]"
minetest.show_formspec(name, "supercub:pilot_main", basic_form)
end
@ -66,6 +67,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
supercub.dettachPlayer(ent, player)
end
if fields.manual then
supercub.manual_formspec(name)
end
end
minetest.close_formspec(name, "supercub:pilot_main")
end

View File

@ -28,8 +28,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
"Shortcuts \n\n",
"* Right click: enter in/get off plane \n",
"* Left click (with biofuel): add fuel to plane \n",
"* Right click and Sneak: enter in flight instructor mode (limited \n",
" vision, so use external camera) \n",
"* Right click and Sneak: enter in flight instructor mode \n",
" (limited vision, so use external camera) \n",
"* E (aux1): Start/stop engine \n",
"* Jump: Increase power, forward on ground \n",
"* Sneak: Decrease power, brake on ground \n",
@ -40,7 +40,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
"* Sneak and Jump together (normal): activates the autopilot \n",
"* Sneak and Jump together (instruction mode): give/take the \n",
" controls to/from pilot student \n",
"* Up and Down together: enable/disable HUD"
"* Up and Down together: enable/disable HUD \n",
"* E and Right click: inventory (only external) \n"
}
local shortcut_form = table.concat({
"formspec_version[3]",