mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- 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:
@ -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()
|
||||||
|
Reference in New Issue
Block a user