Thread: Inverted health
View Single Post
12-10-14, 10:32 PM   #7
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by Dawn View Post
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)
__________________
  Reply With Quote