aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-10-09 08:58:47 +0200
committerKahrl <kahrl@gmx.net>2014-10-09 08:58:47 +0200
commit8a44df8cba4153e05cd1b81cf392a03d2f7f57d7 (patch)
treef7d03b4e447707e05e32dbe87df7767399b094ef /builtin
parent914f850d31009d9f10ca5840c153a61f43508b4d (diff)
downloadminetest-8a44df8cba4153e05cd1b81cf392a03d2f7f57d7.tar.gz
minetest-8a44df8cba4153e05cd1b81cf392a03d2f7f57d7.tar.bz2
minetest-8a44df8cba4153e05cd1b81cf392a03d2f7f57d7.zip
Change topleft text when switching subgames, fixes #1728
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_singleplayer.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/mainmenu/tab_singleplayer.lua b/builtin/mainmenu/tab_singleplayer.lua
index 1eab94da3..8c6ab91bb 100644
--- a/builtin/mainmenu/tab_singleplayer.lua
+++ b/builtin/mainmenu/tab_singleplayer.lua
@@ -35,6 +35,7 @@ local function singleplayer_refresh_gamebar()
for j=1,#gamemgr.games,1 do
if ("game_btnbar_" .. gamemgr.games[j].id == key) then
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)
menudata.worldlist:set_filtercriteria(gamemgr.games[j].id)
return true