mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add tooltips to main menu subgames button bar
This commit is contained in:
parent
9b551d5cbc
commit
18c583ee0b
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue