mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Clean up and improve mainmenu theme / game theme code (#13885)
This commit is contained in:
parent
62eb6cfed0
commit
b1dec37adb
10 changed files with 96 additions and 80 deletions
|
@ -416,9 +416,11 @@ local function main_button_handler(tabview, fields, name, tabdata)
|
|||
return false
|
||||
end
|
||||
|
||||
local function on_change(type, old_tab, new_tab)
|
||||
if type == "LEAVE" then return end
|
||||
serverlistmgr.sync()
|
||||
local function on_change(type)
|
||||
if type == "ENTER" then
|
||||
mm_game_theme.set_engine()
|
||||
serverlistmgr.sync()
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue