diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-11-20 14:59:19 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-11-20 15:37:20 -0500 |
commit | c4e393deea4f1a6d242a3fdf392c463ed5a3b58d (patch) | |
tree | 4230e1af5eaaf697c1c61456d010f8e8f560c4e6 /builtin/mainmenu/tab_settings.lua | |
parent | d2b5ba83b00ce00ff34f627da02f4eb4ceb86412 (diff) | |
download | minetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.tar.gz minetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.tar.bz2 minetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.zip |
Simplify loading of Android version of menu
Diffstat (limited to 'builtin/mainmenu/tab_settings.lua')
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 630267478..1f8743140 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -160,7 +160,7 @@ local function formspec(tabview, name, tabdata) "box[7.75,0;4,4;#999999]" .. "checkbox[8,0;cb_shaders;".. fgettext("Shaders") .. ";" .. dump(core.setting_getbool("enable_shaders")) .. "]" - if not ANDROID then + if PLATFORM ~= "Android" then tab_string = tab_string .. "button[8,4.75;3.75,0.5;btn_change_keys;".. fgettext("Change keys") .. "]" else @@ -176,7 +176,7 @@ local function formspec(tabview, name, tabdata) fgettext("Scaling factor applied to menu elements: ") .. dump(core.setting_get("gui_scaling")) .. "]" - if ANDROID then + if PLATFORM == "Android" then tab_string = tab_string .. "box[4.25,2.75;3.25,2.15;#999999]" .. "checkbox[4.5,2.75;cb_touchscreen_target;".. fgettext("Touch free target") .. ";" |