diff options
author | Wuzzy <almikes@aol.com> | 2014-10-12 19:50:33 +0200 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-11-09 09:38:43 +0100 |
commit | 18c583ee0b7548d5ea5d5ccd3085008d94620e5c (patch) | |
tree | 41f272d95da1e8199e71f66f026da184e4c7090f /builtin/mainmenu | |
parent | 9b551d5cbcaf71a8c39bbf7e886290649aed4799 (diff) | |
download | minetest-18c583ee0b7548d5ea5d5ccd3085008d94620e5c.tar.gz minetest-18c583ee0b7548d5ea5d5ccd3085008d94620e5c.tar.bz2 minetest-18c583ee0b7548d5ea5d5ccd3085008d94620e5c.zip |
Add tooltips to main menu subgames button bar
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/tab_singleplayer.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_singleplayer.lua b/builtin/mainmenu/tab_singleplayer.lua index 8c6ab91bb..1f96a85db 100644 --- a/builtin/mainmenu/tab_singleplayer.lua +++ b/builtin/mainmenu/tab_singleplayer.lua @@ -53,6 +53,7 @@ local function singleplayer_refresh_gamebar() local image = nil local text = nil + local tooltip = core.formspec_escape(gamemgr.games[i].name) if gamemgr.games[i].menuicon_path ~= nil and gamemgr.games[i].menuicon_path ~= "" then @@ -69,7 +70,7 @@ local function singleplayer_refresh_gamebar() text = text .. "\n" .. part3 end end - btnbar:add_button(btn_name, text, image) + btnbar:add_button(btn_name, text, image, tooltip) end end |