From 631f3dd734dd270b444919b6755ccddb70fabd2a Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 21 Sep 2010 03:49:41 +0000 Subject: [PATCH] - added a tooltip to the LDB launcher --- IceHUD.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/IceHUD.lua b/IceHUD.lua index bfd00d3..2d28d9b 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -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