Any idea to consolidate the bolster buffs?
Is it possible to consolidate all the bolster buffs into one?
|
Code:
local function postUpdateAura (element, unit) |
Kind of stuck, it seems like not affect anything.
|
:PostUpdate runs after anchoring is done. The sanest solution would probably be to implement a :CustomFilter . Alternatively you could probably abuse :PreSetPosition to do what you want.
|
Code:
local function customFilter(element, _, _, name, _, _, _, _, _, _, _, _, _, spellID) |
Not working either :(
The way I did in customFilter, not just show one icon as I thought. |
Use buffs.PreUpdate to reset buffs.bolster.
Increment buffs.bolster and return false in your custom filter for every spellID == 209859. Use buffs.PostUpdate to set the stacks and display your icon. The problem here is if you try to display an aura oUF has not yet created a button for, so you will have to override buff.CreateIcon and call it. Another solution would be to return true for the first bolster buff you encounter in your custom filter and save the index for it. Return false for all bolster buffs afterwards to hide them. Then in buffs.PostUpdate just update the buff button at the index you saved previously. This won't work if you use sort your buffs. |
Thank you Rainrider, you wake me up.
Code:
local function preUpdateForBolster(element) |
Hmmm, it works perfectly now. Although it is not Bolstering this week in mythic +.
If someone interested about this and want to have a go, you can just change the customfilter as below to test it. Code:
local function customFilterForBolster(element, _, button, name, _, _, _, _, _, _, _, _, _, spellID) |
All times are GMT -6. The time now is 10:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI