From b449e391a6f879625eb817d54862301fe3773d44 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Mon, 24 May 2010 11:47:53 +0000 Subject: [PATCH] added spell name in tooltips git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@252 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleIcone.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OvaleIcone.lua b/OvaleIcone.lua index e31f463..9f93733 100644 --- a/OvaleIcone.lua +++ b/OvaleIcone.lua @@ -5,7 +5,7 @@ local RANGE_INDICATOR = "●"; local function Update(self, element, minAttente, actionTexture, actionInRange, actionCooldownStart, actionCooldownDuration, actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget) - + self.spellName = spellName if (minAttente~=nil and actionTexture) then if (actionTexture~=self.actionCourante or self.ancienneAttente==nil or @@ -163,11 +163,14 @@ function OvaleIcone_OnClick(self) end function OvaleIcone_OnEnter(self) - if self.help or next(Ovale.casesACocher) or next(Ovale.listes) then + if self.help or next(Ovale.casesACocher) or next(Ovale.listes) or self.spellName then GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT") if self.help then GameTooltip:SetText(L[self.help]) end + if self.spellName then + GameTooltip:AddLine(self.spellName,0.5,1,0.75) + end if next(Ovale.casesACocher) or next(Ovale.listes) then GameTooltip:AddLine(L["Cliquer pour afficher/cacher les options"],1,1,1) end -- 1.7.9.5