diff options
author | est31 <MTest31@outlook.com> | 2016-05-14 22:12:38 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-05-14 22:25:58 +0200 |
commit | c65e7a9b3edbd1f42e7478acdb02252e3c2237ec (patch) | |
tree | 872a01bec501a45e5c2d4d6418a80fc3a6879396 | |
parent | b25554c8d7260cdac6551c69900b78e24b0b48eb (diff) | |
download | minetest-c65e7a9b3edbd1f42e7478acdb02252e3c2237ec.tar.gz minetest-c65e7a9b3edbd1f42e7478acdb02252e3c2237ec.tar.bz2 minetest-c65e7a9b3edbd1f42e7478acdb02252e3c2237ec.zip |
Android: Re-add button to remove singleplayer world
Fixes #4120.
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index b9f2453ab..af8df0ccb 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -203,7 +203,11 @@ local function formspec(tabview, name, tabdata) "checkbox[8,0;cb_shaders;" .. fgettext("Shaders") .. ";" .. dump(core.setting_getbool("enable_shaders")) .. "]" - if PLATFORM ~= "Android" then + if PLATFORM == "Android" then + tab_string = tab_string .. + "button[8,4.75;3.75,0.5;btn_reset_singleplayer;" + .. fgettext("Reset singleplayer world") .. "]" + else tab_string = tab_string .. "button[8,4.75;3.75,0.5;btn_change_keys;" .. fgettext("Change keys") .. "]" |