diff options
author | Paramat <paramat@users.noreply.github.com> | 2018-12-23 23:49:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-23 23:49:08 +0000 |
commit | 9080d7c990e9efd52c418369c83dd365837f2f05 (patch) | |
tree | c9a35e6f704ecdde9aa05cbfb255fa68a62e9a55 | |
parent | 67049eba3c42099c62ab4fce298c2b7c4050f8a9 (diff) | |
download | minetest-9080d7c990e9efd52c418369c83dd365837f2f05.tar.gz minetest-9080d7c990e9efd52c418369c83dd365837f2f05.tar.bz2 minetest-9080d7c990e9efd52c418369c83dd365837f2f05.zip |
Remove 'Reset singleplayer world' button from full menu on Android (#8017)
Make button appearence dependent on menustyle not platform.
Button only functions with simple menu.
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 7b2cee6ac..fb07d51be 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -220,7 +220,8 @@ local function formspec(tabview, name, tabdata) fgettext("Shaders (unavailable)")) .. "]" end - if PLATFORM == "Android" then + if core.settings:get("main_menu_style") == "simple" then + -- 'Reset singleplayer world' only functions with simple menu tab_string = tab_string .. "button[8,4.75;3.95,1;btn_reset_singleplayer;" .. fgettext("Reset singleplayer world") .. "]" |