- added a tooltip to the LDB launcher

This commit is contained in:
Parnic
2010-09-21 03:49:41 +00:00
parent feabf4002d
commit 631f3dd734

View File

@ -1049,8 +1049,9 @@ function IceHUD:InitLDB()
local ldbButton = LDB:NewDataObject("IceHUD", {
type = "launcher",
text = "IceHUD",
label = "IceHUD",
icon = "Interface\\Icons\\Spell_Frost_Frost",
OnClick = function(_, msg)
OnClick = function(button, msg)
if not (UnitAffectingCombat("player")) then
IceHUD:OpenConfig()
else
@ -1062,6 +1063,13 @@ function IceHUD:InitLDB()
if icon then
icon:Register("IceHUD", ldbButton, self.db.profile.minimap)
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