Duration text disappeared for some random aura buttons
Hi,
This thread is somewhat related to a thread here. I've been implementing auras element to my UI and found some strange bug(?) which also happens on my other addon as it is shown a thread above. Basically I haven't touched anything apart from buffs and debuffs frame creation, and am using default aura button creation provided by oUF. Lua Code:
However, for some random aura buttons, it starts to not show duration (cooldown text, cd:GetRegions()) as it is shown below. At least I tested it on Rogue, Druid and Death Hunter, but they all had a same issue. Unfortunately, this is sooooooooooooo random and I can't really think of the process to re-produce this issue. I'm currently thinking that this would be an internal Lua bug with Blizzard's code, but who knows :( |
It's indeed a Blizz bug.
It happens to bag item buttons quite regularly. |
Quote:
(Trying to figure out where my codes are going wrong was pain in the...) Guess it started to happen to me since 7.2 or 7.2.5 maybe... Hope they are aware of this and fix it on 7.3 |
Quote:
You're just unlucky because it happens to your aura CDs :D -- edit #1 K, I was right. Try adding this line to your CD-related code, after you set it for instance, you might need to use PostUpdateIcon callback. Lua Code:
Something sets this flag to true internally (from C, not from Lua). I'll report this bug today w/ this info. It's been awhile since this bug appeared, I guess it's time to finally report it :D |
Quote:
Quick question. Does that function has to be called every single update (like PostUpdateIcon as you said)? or could it be done once via button creation (such as PostCreateIcon)? Great to see that there is at least a temporary solution :banana: |
Quote:
Try adding this line to CreateIcon override if you use one, otherwise add it to PostCreateIcon, if it doesn't help, then PostUpdateIcon is your only hope :p |
Quote:
Thanks for your help :banana:!!! |
Quote:
|
Just have done some play test with :SetHideCountdownNumbers(false).
Basically it seems like you only need to call that function once per button creation. So, if you are suffering with same issue, just call :SetHideCountdownNumbers(false) on your overrided CreateIcon function or via callback function, PostCreateIcon. Lua Code:
|
Really appreciate you both sharing this useful information. I too was having this issue with a few of my addons.
|
All times are GMT -6. The time now is 12:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI