I'm sorry but I'm missing something crucial here..
I'm trying to impliment a similar feature into my UI addon, but Code:
local _, _, _, _, _, duration, expirationTime = UnitAura(PlayerFrame.unit, index, filter) Code:
if duration > 0 and expirationTime then I have everything else working except this. |
There's still something wrong with the timers´
Lua Code:
|
Quote:
2. As a general tip, it can be helpful to add some print statements to let you see when things are happening and what data the API is giving you. For example: Code:
hooksecurefunc("AuraButton_Update", function(self, index, filter) Code:
hooksecurefunc("AuraButton_Update", function(self, index, filter) |
Heres my full code: http://hastebin.com/uresuxiyug.lua
and Lua Code:
Worked all fine to remove all other if ... then besides Lua Code:
So i just added like you said and works all fine Lua Code:
But yet theres a mystery with the statubar buff timer, it doesn't seem to be updating correctly, whenever i first logg on or reload my ui, it works perfect, until i get my 2nd buff, it doesn't update correctly anymore. |
You still have the same problem I already told you about several posts back:
Code:
local BuffStatusBar = ABuffFrame.StatusBar Edit: Also, you should move lines 212-237 into the "only run the first time" section. There's no need to run all that stuff over and over. |
Got this error.
Full Code:http://hastebin.com/edadejohag.lua Lua Code:
Lua Code:
|
Got this error now.
Full Code: http://hastebin.com/cacosemema.lua Lua Code:
|
bump still has issue! :rolleyes:
Hope everyone had a good legion launch! |
Quote:
Also I noticed zork's 7.0 git has a rBuffDurationBar? Not sure if published yet, but maybe you can get with him about using it if it is, he's great at those module addons that can just fit in whereever you need them :P |
I like how I'm doing 100% of the work here, and you don't seem to be making any effort to debug or learn how any of the code is actually working. :(
I have neither the time nor the interest in figuring out exactly why you're actually getting that error, so just band-aid it: Code:
if BuffButton.timeLeft and BuffButton.StatusBar then |
Quote:
|
Managed to fix this yesterday, thanks Vlad & Phanx!
Lua Code:
|
All times are GMT -6. The time now is 04:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI