mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +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
|
@ -46,6 +46,7 @@ end
|
|||
|
||||
local function on_change(type)
|
||||
if type == "ENTER" then
|
||||
mm_game_theme.set_engine()
|
||||
update_packages()
|
||||
end
|
||||
end
|
||||
|
@ -171,7 +172,7 @@ local function handle_doubleclick(pkg)
|
|||
packages = nil
|
||||
|
||||
mm_game_theme.init()
|
||||
mm_game_theme.reset()
|
||||
mm_game_theme.set_engine()
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -225,7 +226,7 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
|
|||
packages = nil
|
||||
|
||||
mm_game_theme.init()
|
||||
mm_game_theme.reset()
|
||||
mm_game_theme.set_engine()
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue