Originally Posted by Dawn
I'd go with
Code:
local hp = CreateFrame("StatusBar", nil, self)
self.Health = hp
Which means you can save yourself some typing whenever you address hp, at least that's the main advantage for me.
|
Also; I am a bit fan of multiple selections in ST3; or Atom. So that typing doesn't bother me that much. Heavy use of snippets and such also help a lot. (I have snippets for the base of an add-on with event, without, TOC file, frame creation and oUF layouts)