mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41: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
|
@ -122,6 +122,7 @@ end
|
|||
return {
|
||||
name = "about",
|
||||
caption = fgettext("About"),
|
||||
|
||||
cbf_formspec = function(tabview, name, tabdata)
|
||||
local logofile = defaulttexturedir .. "logo.png"
|
||||
local version = core.get_version()
|
||||
|
@ -196,6 +197,7 @@ return {
|
|||
|
||||
return fs
|
||||
end,
|
||||
|
||||
cbf_button_handler = function(this, fields, name, tabdata)
|
||||
if fields.homepage then
|
||||
core.open_url("https://www.minetest.net")
|
||||
|
@ -210,4 +212,10 @@ return {
|
|||
core.open_dir(core.get_user_path())
|
||||
end
|
||||
end,
|
||||
|
||||
on_change = function(type)
|
||||
if type == "ENTER" then
|
||||
mm_game_theme.set_engine()
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue