Relationship between FilterAura and button?
Before oUF 11, I use customFilter to consolidate all bolster in mythic plus.
The code is what I did before, but in oUF 11, button no longer accessable in FilterAura. Lua Code:
|
What I currently do is add a new attribute in 'updateAura'.
Code:
button.spellID = aura.spellId Lua Code:
|
Well, it had to happen because the update process happens in stages now, filtering > sorting > redrawing. Buttons get updated only at the redrawing stage, but before that we work with raw aura data. If I were you, I'd use PostUpdateButton instead of PostUpdate since it gives you both the button and the aura data, but you won't need the latter in this case. I drycoded it, but this should do the trick.
Lua Code:
|
Btw, your code will only work properly during full updates. But worry not, there's this new PR in the works atm, it'll allow you to mess with stuff via PostUpdateInfo before it's sent over to sorting.
|
Quote:
|
All times are GMT -6. The time now is 05:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI