/
## Interface: 40000 |
## Interface: 40100 |
## Title: PowerUp |
## Notes: Holy Power / Soul Shards tracker |
## Author: Ailae |
## Version: 40000.1 |
## Version: 40100.1 |
## SavedVariables: PowerUpDB |
PowerUp.lua |
self.overlay = self.timer:CreateAnimationGroup() |
self.animation = self.overlay:CreateAnimation("Scale") |
self.animation:SetDuration(10.25) |
self.animation:SetMaxFramerate(30) -- looks nice enough |
-- self.animation:SetMaxFramerate(30) -- looks nice enough |
self.animation:SetOrigin("LEFT", 0, 0) |
self.animation:SetScale(0, 1) |
end |
-- Watch for changes when @ max |
function PowerUp:COMBAT_LOG_EVENT_UNFILTERED(timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, _, _, _, _, power) |
function PowerUp:COMBAT_LOG_EVENT_UNFILTERED(timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, _, _, _, _, power) |
if sourceGUID == pguid and event == "SPELL_ENERGIZE" and power == 9 then |
self:RefreshPowers("player", powerType) |
end |