mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- made runes flash when they become active whether the cooldown or alpha setting is being used
This commit is contained in:
@ -228,9 +228,11 @@ function Runes.prototype:UpdateRunePower(rune, usable)
|
||||
-- DEFAULT_CHAT_FRAME:AddMessage("Runes.prototype:UpdateRunePower: rune="..rune.." usable="..(usable and "yes" or "no").." GetRuneType(rune)="..GetRuneType(rune));
|
||||
|
||||
if usable then
|
||||
-- self.frame.graphical[rune]:Show()
|
||||
if self.moduleSettings.cooldownMode == "Cooldown" then
|
||||
self.frame.graphical[rune].cd:Hide()
|
||||
elseif self.moduleSettings.cooldownMode == "Alpha" then
|
||||
self.frame.graphical[rune]:SetAlpha(1)
|
||||
end
|
||||
|
||||
local fadeInfo={
|
||||
mode = "IN",
|
||||
@ -239,11 +241,7 @@ function Runes.prototype:UpdateRunePower(rune, usable)
|
||||
finishedArg1 = rune
|
||||
}
|
||||
UIFrameFade(self.frame.graphical[rune].shine, fadeInfo);
|
||||
elseif self.moduleSettings.cooldownMode == "Alpha" then
|
||||
self.frame.graphical[rune]:SetAlpha(1)
|
||||
end
|
||||
else
|
||||
-- self.frame.graphical[rune]:Hide()
|
||||
if self.moduleSettings.cooldownMode == "Cooldown" then
|
||||
self.frame.graphical[rune].cd:SetCooldown(GetRuneCooldown(rune))
|
||||
self.frame.graphical[rune].cd:Show()
|
||||
|
Reference in New Issue
Block a user