Thread: The 1.4 list
View Single Post
01-15-10, 01:29 AM   #18
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by haste View Post
For the health element the bar variable _is_ the element.
Yes, hence the "unless other things are also changing" bit.

Originally Posted by haste View Post
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 View Post
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.
  Reply With Quote