- fixed runes 'alpha' mode display for cataclysm (also works on live realms). apparently RUNE_POWER_UPDATE no longer passes 'usable' as the second argument, so usability needs to be grabbed from GetRuneCooldown instead

This commit is contained in:
Parnic
2010-09-06 00:12:25 +00:00
parent 59344a134a
commit 9ed5dcbe5f

View File

@ -204,18 +204,20 @@ end
function Runes.prototype:ResetRuneAvailability() function Runes.prototype:ResetRuneAvailability()
for i=1, self.numRunes do for i=1, self.numRunes do
self:UpdateRunePower(i, true, true) self:UpdateRunePower(i, true)
end end
end end
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only -- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
function Runes.prototype:UpdateRunePower(rune, usable, dontFlash) function Runes.prototype:UpdateRunePower(rune, dontFlash)
if not rune or not self.frame.graphical or #self.frame.graphical < rune then if not rune or not self.frame.graphical or #self.frame.graphical < rune then
return return
end end
-- DEFAULT_CHAT_FRAME:AddMessage("Runes.prototype:UpdateRunePower: rune="..rune.." usable="..(usable and "yes" or "no").." GetRuneType(rune)="..GetRuneType(rune)); -- DEFAULT_CHAT_FRAME:AddMessage("Runes.prototype:UpdateRunePower: rune="..rune.." usable="..(usable and "yes" or "no").." GetRuneType(rune)="..GetRuneType(rune));
local start, duration, usable = GetRuneCooldown(rune)
if usable then if usable then
if self.moduleSettings.cooldownMode == "Cooldown" then if self.moduleSettings.cooldownMode == "Cooldown" then
self.frame.graphical[rune].cd:Hide() self.frame.graphical[rune].cd:Hide()