projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67049eb
)
Remove 'Reset singleplayer world' button from full menu on Android (#8017)
author
Paramat
<paramat@users.noreply.github.com>
Sun, 23 Dec 2018 23:49:08 +0000
(23:49 +0000)
committer
GitHub
<noreply@github.com>
Sun, 23 Dec 2018 23:49:08 +0000
(23:49 +0000)
Make button appearence dependent on menustyle not platform.
Button only functions with simple menu.
builtin/mainmenu/tab_settings.lua
patch
|
blob
|
history
diff --git
a/builtin/mainmenu/tab_settings.lua
b/builtin/mainmenu/tab_settings.lua
index 7b2cee6ac1550721275c376dce9b7b8aec21a687..fb07d51be2b4b23b4136c1b2609b44462806b66b 100644
(file)
--- 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") .. "]"