12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 26 ■ <strong>Creating</strong> Unit Frames with Group Templates 507This code creates a new template called SquareUnitFrames_UnitTemplatethat will be used by the group header to create new frames. The templatedefines a solid black background texture, sized 36-by-36 pixels. The rest <strong>of</strong> thesub-frames will be children <strong>of</strong> this main frame.After the tag <strong>and</strong> be<strong>for</strong>e the tag, add the followingframe definitions:This first sub-frame is the actual button that displays the unit’s name, health,<strong>and</strong> power (<strong>for</strong> example, mana, rage, or energy). The button is anchored <strong>and</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!