forked from Mirrorlandia_minetest/minetest
Change topleft text when switching subgames, fixes #1728
This commit is contained in:
parent
914f850d31
commit
8a44df8cba
@ -35,6 +35,7 @@ local function singleplayer_refresh_gamebar()
|
|||||||
for j=1,#gamemgr.games,1 do
|
for j=1,#gamemgr.games,1 do
|
||||||
if ("game_btnbar_" .. gamemgr.games[j].id == key) then
|
if ("game_btnbar_" .. gamemgr.games[j].id == key) then
|
||||||
mm_texture.update("singleplayer", gamemgr.games[j])
|
mm_texture.update("singleplayer", gamemgr.games[j])
|
||||||
|
core.set_topleft_text(gamemgr.games[j].name)
|
||||||
core.setting_set("menu_last_game",gamemgr.games[j].id)
|
core.setting_set("menu_last_game",gamemgr.games[j].id)
|
||||||
menudata.worldlist:set_filtercriteria(gamemgr.games[j].id)
|
menudata.worldlist:set_filtercriteria(gamemgr.games[j].id)
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user