View Single Post
05-14-16, 03:37 AM   #42
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Are there any changes in Statusbar functions?
I used to create a bar to monitor some auras, but it is no longer changing its value in BETA and staying at the end.

https://github.com/siweia/NDui/blob/.../AuraWatch.lua

----------------------------------
I just find out the problem is those lines:
Code:
Event.Timer = 0
local onUpdate = function(self, elapsed)
	self.Timer = self.Timer + elapsed
	if self.Timer > 0 then
		self.Timer = 0
		CleanUp()
		UpdateCD()
		for _, value in pairs(UnitIDTable) do
			UpdateAura(value)
		end
	end
end
Event:SetScript("OnUpdate", onUpdate)
if I change "self.Timer > 0" to "self.Timer > 0.1", it would work but flashing.

Last edited by siweia : 05-14-16 at 04:59 AM.