mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a tooltip to the LDB launcher
This commit is contained in:
10
IceHUD.lua
10
IceHUD.lua
@ -1049,8 +1049,9 @@ function IceHUD:InitLDB()
|
|||||||
local ldbButton = LDB:NewDataObject("IceHUD", {
|
local ldbButton = LDB:NewDataObject("IceHUD", {
|
||||||
type = "launcher",
|
type = "launcher",
|
||||||
text = "IceHUD",
|
text = "IceHUD",
|
||||||
|
label = "IceHUD",
|
||||||
icon = "Interface\\Icons\\Spell_Frost_Frost",
|
icon = "Interface\\Icons\\Spell_Frost_Frost",
|
||||||
OnClick = function(_, msg)
|
OnClick = function(button, msg)
|
||||||
if not (UnitAffectingCombat("player")) then
|
if not (UnitAffectingCombat("player")) then
|
||||||
IceHUD:OpenConfig()
|
IceHUD:OpenConfig()
|
||||||
else
|
else
|
||||||
@ -1062,6 +1063,13 @@ function IceHUD:InitLDB()
|
|||||||
if icon then
|
if icon then
|
||||||
icon:Register("IceHUD", ldbButton, self.db.profile.minimap)
|
icon:Register("IceHUD", ldbButton, self.db.profile.minimap)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ldbButton then
|
||||||
|
function ldbButton:OnTooltipShow()
|
||||||
|
self:AddLine("IceHUD @project-version@")
|
||||||
|
self:AddLine("Click to open IceHUD options.", 1, 1, 1)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user