aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>2015-04-25 10:11:12 +0700
committerCraig Robbins <kde.psych@gmail.com>2015-04-26 23:35:32 +1000
commit1c7c3492647aada9a60c7e11662a0defe3f4385c (patch)
treed8c661c55a694325610b13cc66d23ac3d0721c78 /builtin
parente3764410d3934726c47b8a5b2b347678c039a0e4 (diff)
downloadminetest-1c7c3492647aada9a60c7e11662a0defe3f4385c.tar.gz
minetest-1c7c3492647aada9a60c7e11662a0defe3f4385c.tar.bz2
minetest-1c7c3492647aada9a60c7e11662a0defe3f4385c.zip
Remove fly mode in simple main menu
As the fly mode option is avaiable in-game, this is not used anymore.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_simple_main.lua19
1 files changed, 6 insertions, 13 deletions
diff --git a/builtin/mainmenu/tab_simple_main.lua b/builtin/mainmenu/tab_simple_main.lua
index 995c72132..434113b5f 100644
--- a/builtin/mainmenu/tab_simple_main.lua
+++ b/builtin/mainmenu/tab_simple_main.lua
@@ -69,20 +69,18 @@ local function get_formspec(tabview, name, tabdata)
-- separator
retval = retval ..
- "box[-0.3,3.75;12.4,0.1;#FFFFFF]"
+ "box[-0.28,3.75;12.4,0.1;#FFFFFF]"
-- checkboxes
retval = retval ..
- "checkbox[1.0,3.9;cb_creative;".. fgettext("Creative Mode") .. ";" ..
+ "checkbox[8.0,3.9;cb_creative;".. fgettext("Creative Mode") .. ";" ..
dump(core.setting_getbool("creative_mode")) .. "]"..
- "checkbox[5.0,3.9;cb_damage;".. fgettext("Enable Damage") .. ";" ..
- dump(core.setting_getbool("enable_damage")) .. "]" ..
- "checkbox[8,3.9;cb_fly_mode;".. fgettext("Fly mode") .. ";" ..
- dump(core.setting_getbool("free_move")) .. "]"
+ "checkbox[8.0,4.4;cb_damage;".. fgettext("Enable Damage") .. ";" ..
+ dump(core.setting_getbool("enable_damage")) .. "]"
-- buttons
retval = retval ..
- "button[2.0,4.5;6,1.5;btn_start_singleplayer;" .. fgettext("Start Singleplayer") .. "]" ..
- "button[8.25,4.5;2.5,1.5;btn_config_sp_world;" .. fgettext("Config mods") .. "]"
+ "button[0,3.7;8,1.5;btn_start_singleplayer;" .. fgettext("Start Singleplayer") .. "]" ..
+ "button[0,4.5;8,1.5;btn_config_sp_world;" .. fgettext("Config mods") .. "]"
return retval
end
@@ -138,11 +136,6 @@ local function main_button_handler(tabview, fields, name, tabdata)
return true
end
- if fields["cb_fly_mode"] then
- core.setting_set("free_move", fields["cb_fly_mode"])
- return true
- end
-
if fields["btn_mp_connect"] ~= nil or
fields["key_enter"] ~= nil then