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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ContentsxixGiving Objects Sizes 146Absolute Dimensions 146Relative Dimensions 146Anchoring Objects 147Sticky Anchors 148SetAllPoints 148Anchor Examples 148Using Lua to Create Frames 149Adding Layers <strong>of</strong> Textures <strong>and</strong> Font Strings 150Layering Frames <strong>and</strong> Graphics 150Frame Strata 150Frame Levels 151Graphical Layers 152BagBuddy Frame Design 153Finding Graphics 155TexBrowser AddOn 155ArtBrowser on Wowprogramming.com 155Adding Textures 155Defining BagBuddy’s Background Textures 157Coloring Textures 158Using Solid Colors 158<strong>Creating</strong> a Gradient 159Adding the Portrait Texture 160<strong>Creating</strong> Textures in Lua 162<strong>Creating</strong> Text using FontStrings 164Further Customization 165Using Font Definitions 165<strong>Creating</strong> FontStrings in Lua 166Underst<strong>and</strong>ing Object Visibility 166Finding Existing Frames 167Summary 167The Code 168Chapter 10 Saving Time with Frame Templates 171Underst<strong>and</strong>ing Templates 171Advantages <strong>of</strong> Using Templates 173Naming Elements Using $parent 173Setting Keys Using the parentKey Attribute 174<strong>Creating</strong> a Template <strong>for</strong> BagBuddy’s Item Buttons 174Setting Button Textures 175<strong>Creating</strong> New Frames with Your Template 176Exploring Font Definitions 177Altering a Font Definition 178

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

Saved successfully!

Ooh no, something went wrong!