oUF auras module improvements
I've added some code to my personal oUF auras.lua file to enable as many auras/buffs/debuffs element groups as a person wants per unit frame. In addition, I've added an option to allow "reverse fill" on the cooldown spiral.
Relevant code changes: In the opening ## Options list: Lua Code:
In the createAuraIcon function: Lua Code:
In the UpdateAuras, Update, and Enable functions: Lua Code:
Lua Code:
Lua Code:
In case you want to compare the full file, here is a pastebin link: https://pastebin.com/pLRBZ37q Two things: if there is a better way to achieve what I want, that is the ability to add many different auras/buffs/debuffs elements per unit as well as the reverse cooldown fill, I'd greatly appreciate the feedback. If this is arguably the most efficient, then I'd like to go about inquiring how to submit it for review and addition to the oUF addon release. The way I've written it should allow for anyone who uses oUF to not have to update how they make their buff, debuff, and aura tables. They can either use self.Buffs = Buffs or they can use self.multiBuffs = Buffs[n] Thank you! |
All times are GMT -6. The time now is 02:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI