diff options
author | est31 <MTest31@outlook.com> | 2016-05-13 02:22:31 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-05-13 17:30:53 +0100 |
commit | ec15e35ad7effe54d04c0d34ead3bc63d0e311f1 (patch) | |
tree | 7da5734a85bbecb37b63556b86c236524ab24a23 /builtin/mainmenu | |
parent | 9d3d43f3340030db8855ebc394e969f10d00dc30 (diff) | |
download | minetest-ec15e35ad7effe54d04c0d34ead3bc63d0e311f1.tar.gz minetest-ec15e35ad7effe54d04c0d34ead3bc63d0e311f1.tar.bz2 minetest-ec15e35ad7effe54d04c0d34ead3bc63d0e311f1.zip |
Mainmenu: don't show change keys dialog on android
The change keys dialog can't be left. It doesn't make
much sense to show it on Android in the first place,
therefore disable it, just like commit
aed70cb0b652d6cb2272e7b94cd56671b3df6239 'Disable sound and key binding settings in "pause" menu on android'
has disabled it for the esc menu.
Fixes #4115.
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 2649a8a57..b9f2453ab 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -203,9 +203,15 @@ local function formspec(tabview, name, tabdata) "checkbox[8,0;cb_shaders;" .. fgettext("Shaders") .. ";" .. dump(core.setting_getbool("enable_shaders")) .. "]" + if PLATFORM ~= "Android" then + tab_string = tab_string .. + "button[8,4.75;3.75,0.5;btn_change_keys;" + .. fgettext("Change keys") .. "]" + end + tab_string = tab_string .. - "button[8,4.75;3.75,0.5;btn_change_keys;" .. fgettext("Change keys") .. "]" .. - "button[0,4.75;3.75,0.5;btn_advanced_settings;" .. fgettext("Advanced Settings") .. "]" + "button[0,4.75;3.75,0.5;btn_advanced_settings;" + .. fgettext("Advanced Settings") .. "]" if core.setting_get("touchscreen_threshold") ~= nil then |