mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +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
|
@ -692,8 +692,19 @@ local function buttonhandler(this, fields)
|
|||
end
|
||||
|
||||
|
||||
local function eventhandler(event)
|
||||
if event == "DialogShow" then
|
||||
-- Don't show the "MINETEST" header behind the dialog.
|
||||
mm_game_theme.set_engine(true)
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
function create_settings_dlg()
|
||||
local dlg = dialog_create("dlg_settings", get_formspec, buttonhandler, nil)
|
||||
local dlg = dialog_create("dlg_settings", get_formspec, buttonhandler, eventhandler)
|
||||
|
||||
dlg.data.page_id = update_filtered_pages("")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue