Originally Posted by haste
For the health element the bar variable _is_ the element.
|
Yes, hence the "unless other things are also changing" bit.
Originally Posted by haste
A: Add template as the argument after name, or at the end of the list. It should then also be used for the single-units.
|
As the main goal of oUF is to simplify the creation of unit frames, I'd vote against requiring the layout author to specify a template, especially since there is only one instance where a "non-standard" template is used (pet headers).
Originally Posted by haste
B: Split the header part out of :Spawn and into :SpawnHeader. This would also require the arguments to be changed into: name, template, showParty, showRaid.
|
You could tack an
isPetGroup flag on the end, and drop
template.