added spell name in tooltips
Sidoine De Wispelaere [05-24-10 - 11:47]
added spell name in tooltips
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@252 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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