mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- removed most of the rest of the garbage that was being generated during combat or when changing targets
- reduced cpu usage by 33%-50% across the board (and more in some cases) by changing how updates are registered and how often they run. now the 'update period' slider actually matters. it defaults to 0.033 meaning that frames update about 30 times a second instead of every frame - fixed the "always" display mode for cooldown bars to respect alpha settings (ooc/with target/in combat/etc.)
This commit is contained in:
@ -12,11 +12,12 @@ function Vengeance.prototype:init()
|
||||
Vengeance.super.prototype.init(self, "Vengeance", "player")
|
||||
|
||||
self.current = 0
|
||||
self.max = floor(0.1*UnitHealthMax(self.unit))
|
||||
self.tooltipBuffer = CreateFrame("GameTooltip","tooltipBuffer",nil,"GameTooltipTemplate")
|
||||
self.tooltipBuffer:SetOwner(WorldFrame, "ANCHOR_NONE")
|
||||
|
||||
self:SetDefaultColor("Vengeance", 200, 45, 45)
|
||||
|
||||
self.bTreatEmptyAsFull = true
|
||||
end
|
||||
|
||||
-- default settings
|
||||
@ -50,11 +51,6 @@ function Vengeance.prototype:Disable(core)
|
||||
self:UnregisterAllEvents()
|
||||
end
|
||||
|
||||
-- OVERRIDE
|
||||
function Vengeance.prototype:UseTargetAlpha(scale)
|
||||
return (scale and (scale > 0))
|
||||
end
|
||||
|
||||
function Vengeance.prototype:UpdateCurrent(event, unit)
|
||||
if (unit and (unit ~= self.unit)) then
|
||||
return
|
||||
|
Reference in New Issue
Block a user