From feabf4002d8b59bebad31c8bef8dd060b676fbc0 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 21 Sep 2010 03:02:08 +0000 Subject: [PATCH] - set custom counters to display out of combat if they are not 0 --- modules/CustomCount.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/CustomCount.lua b/modules/CustomCount.lua index 6583dbc..c7b3c37 100644 --- a/modules/CustomCount.lua +++ b/modules/CustomCount.lua @@ -1,6 +1,7 @@ IceCustomCount = IceCore_CreateClass(IceElement) IceCustomCount.prototype.countSize = 20 +IceCustomCount.prototype.lastPoints = 0 local validUnits = {"player", "target", "focus", "pet", "vehicle", "targettarget", "main hand weapon", "off hand weapon"} local buffOrDebuff = {"buff", "debuff"} @@ -543,6 +544,8 @@ function IceCustomCount.prototype:UpdateCustomCount() self.unit, self.moduleSettings.auraName, self.moduleSettings.onlyMine, true) end + self.lastPoints = points + if (points == 0) then points = nil end @@ -572,4 +575,10 @@ function IceCustomCount.prototype:UpdateCustomCount() end end end + + self:Update() +end + +function IceCustomCount.prototype:UseTargetAlpha(scale) + return self.lastPoints ~= nil and self.lastPoints > 0 end