aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/tab_local.lua
diff options
context:
space:
mode:
authorExeVirus <44562154+ExeVirus@users.noreply.github.com>2021-11-22 12:26:46 -0500
committerGitHub <noreply@github.com>2021-11-22 17:26:46 +0000
commit52bfbf6ed02e16d11f353c4066a0f4129d045e15 (patch)
tree67b71be5c3b2eda54d0ac05fa23231d6daaf19ba /builtin/mainmenu/tab_local.lua
parente35cfa589a11bbfbdbe9c815553842b472da2b41 (diff)
downloadminetest-52bfbf6ed02e16d11f353c4066a0f4129d045e15.tar.gz
minetest-52bfbf6ed02e16d11f353c4066a0f4129d045e15.tar.bz2
minetest-52bfbf6ed02e16d11f353c4066a0f4129d045e15.zip
Allow for Game-Specific Menu Music (#11241)
Diffstat (limited to 'builtin/mainmenu/tab_local.lua')
-rw-r--r--builtin/mainmenu/tab_local.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin/mainmenu/tab_local.lua b/builtin/mainmenu/tab_local.lua
index be5f905ac..2d1a616a8 100644
--- a/builtin/mainmenu/tab_local.lua
+++ b/builtin/mainmenu/tab_local.lua
@@ -54,7 +54,7 @@ if enable_gamebar then
for key,value in pairs(fields) do
for j=1,#pkgmgr.games,1 do
if ("game_btnbar_" .. pkgmgr.games[j].id == key) then
- mm_texture.update("singleplayer", pkgmgr.games[j])
+ mm_game_theme.update("singleplayer", pkgmgr.games[j])
core.set_topleft_text(pkgmgr.games[j].name)
core.settings:set("menu_last_game",pkgmgr.games[j].id)
menudata.worldlist:set_filtercriteria(pkgmgr.games[j].id)
@@ -323,7 +323,7 @@ local function main_button_handler(this, fields, name, tabdata)
create_world_dlg:set_parent(this)
this:hide()
create_world_dlg:show()
- mm_texture.update("singleplayer", current_game())
+ mm_game_theme.update("singleplayer", current_game())
return true
end
@@ -340,7 +340,7 @@ local function main_button_handler(this, fields, name, tabdata)
delete_world_dlg:set_parent(this)
this:hide()
delete_world_dlg:show()
- mm_texture.update("singleplayer",current_game())
+ mm_game_theme.update("singleplayer",current_game())
end
end
@@ -358,7 +358,7 @@ local function main_button_handler(this, fields, name, tabdata)
configdialog:set_parent(this)
this:hide()
configdialog:show()
- mm_texture.update("singleplayer",current_game())
+ mm_game_theme.update("singleplayer",current_game())
end
end
@@ -375,7 +375,7 @@ if enable_gamebar then
if game then
menudata.worldlist:set_filtercriteria(game.id)
core.set_topleft_text(game.name)
- mm_texture.update("singleplayer",game)
+ mm_game_theme.update("singleplayer",game)
end
singleplayer_refresh_gamebar()
@@ -387,7 +387,7 @@ if enable_gamebar then
gamebar:hide()
end
core.set_topleft_text("")
- mm_texture.update(new_tab,nil)
+ mm_game_theme.update(new_tab,nil)
end
end
end