mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- set custom counters to display out of combat if they are not 0
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
IceCustomCount = IceCore_CreateClass(IceElement)
|
IceCustomCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
IceCustomCount.prototype.countSize = 20
|
IceCustomCount.prototype.countSize = 20
|
||||||
|
IceCustomCount.prototype.lastPoints = 0
|
||||||
|
|
||||||
local validUnits = {"player", "target", "focus", "pet", "vehicle", "targettarget", "main hand weapon", "off hand weapon"}
|
local validUnits = {"player", "target", "focus", "pet", "vehicle", "targettarget", "main hand weapon", "off hand weapon"}
|
||||||
local buffOrDebuff = {"buff", "debuff"}
|
local buffOrDebuff = {"buff", "debuff"}
|
||||||
@ -543,6 +544,8 @@ function IceCustomCount.prototype:UpdateCustomCount()
|
|||||||
self.unit, self.moduleSettings.auraName, self.moduleSettings.onlyMine, true)
|
self.unit, self.moduleSettings.auraName, self.moduleSettings.onlyMine, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.lastPoints = points
|
||||||
|
|
||||||
if (points == 0) then
|
if (points == 0) then
|
||||||
points = nil
|
points = nil
|
||||||
end
|
end
|
||||||
@ -572,4 +575,10 @@ function IceCustomCount.prototype:UpdateCustomCount()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:Update()
|
||||||
|
end
|
||||||
|
|
||||||
|
function IceCustomCount.prototype:UseTargetAlpha(scale)
|
||||||
|
return self.lastPoints ~= nil and self.lastPoints > 0
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user