View Single Post
07-31-09, 08:56 AM   #1
Subere
A Cyclonian
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 41
Collapsable Buffs

So I'm still pretty new to Lua and oUF, but I've been poking around trying to piece together my own layout and I've run into a snag.

I'm trying to dynamically set the height of the buff frame based on how many buffs the unit has.

I have it set up so there is room for 2 rows of buffs on top of the frame, then room for 2 rows of debuffs on top of the buff frame.

So, for example, if unit only has so many buffs that it only needs one row I want to set the buff frame to that height so there isn't an empty row between the buffs and debuffs.

I looked around in elements/aura.lua and found 'visibleBuffs: Number of currently visible buff icons.' in the comments but couldn't find where this variable was set and if it's even the value I think it is.

I searched around on the forums and poked through some other layouts and couldn't find anything, so sorry if this has been answered before.

Thanks for any help.
  Reply With Quote