@@ -24,6 +24,10 @@ mt_color_dark_green = "#25C191"
24
24
25
25
local menupath = core .get_mainmenu_path ()
26
26
local basepath = core .get_builtin_path ()
27
+ local menustyle = core .settings :get (" main_menu_style" )
28
+ if menustyle == " auto" then
29
+ menustyle = PLATFORM == " Android" and " simple" or " full"
30
+ end
27
31
defaulttexturedir = core .get_texturepath_share () .. DIR_DELIM .. " base" ..
28
32
DIR_DELIM .. " pack" .. DIR_DELIM
29
33
@@ -40,7 +44,7 @@ dofile(menupath .. DIR_DELIM .. "textures.lua")
40
44
41
45
dofile (menupath .. DIR_DELIM .. " dlg_config_world.lua" )
42
46
dofile (menupath .. DIR_DELIM .. " dlg_settings_advanced.lua" )
43
- if PLATFORM ~= " Android " then
47
+ if menustyle ~= " simple " then
44
48
dofile (menupath .. DIR_DELIM .. " dlg_create_world.lua" )
45
49
dofile (menupath .. DIR_DELIM .. " dlg_delete_mod.lua" )
46
50
dofile (menupath .. DIR_DELIM .. " dlg_delete_world.lua" )
@@ -52,7 +56,7 @@ local tabs = {}
52
56
tabs .settings = dofile (menupath .. DIR_DELIM .. " tab_settings.lua" )
53
57
tabs .mods = dofile (menupath .. DIR_DELIM .. " tab_mods.lua" )
54
58
tabs .credits = dofile (menupath .. DIR_DELIM .. " tab_credits.lua" )
55
- if PLATFORM == " Android " then
59
+ if menustyle == " simple " then
56
60
tabs .simple_main = dofile (menupath .. DIR_DELIM .. " tab_simple_main.lua" )
57
61
else
58
62
tabs .local_game = dofile (menupath .. DIR_DELIM .. " tab_local.lua" )
@@ -73,7 +77,7 @@ local function init_globals()
73
77
-- Init gamedata
74
78
gamedata .worldindex = 0
75
79
76
- if PLATFORM == " Android " then
80
+ if menustyle == " simple " then
77
81
local world_list = core .get_worlds ()
78
82
local world_index
79
83
@@ -128,7 +132,7 @@ local function init_globals()
128
132
-- Create main tabview
129
133
local tv_main = tabview_create (" maintab" , {x = 12 , y = 5.4 }, {x = 0 , y = 0 })
130
134
131
- if PLATFORM == " Android " then
135
+ if menustyle == " simple " then
132
136
tv_main :add (tabs .simple_main )
133
137
tv_main :add (tabs .settings )
134
138
else
@@ -145,7 +149,7 @@ local function init_globals()
145
149
tv_main :set_global_event_handler (main_event_handler )
146
150
tv_main :set_fixed_size (false )
147
151
148
- if PLATFORM ~= " Android " then
152
+ if menustyle ~= " simple " then
149
153
tv_main :set_tab (core .settings :get (" maintab_LAST" ))
150
154
end
151
155
ui .set_default (" maintab" )
0 commit comments