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.

Chapter 26 ■ <strong>Creating</strong> Unit Frames with Group Templates 505ATTRIBUTE TYPE DESCRIPTIONunitsPerColumn number The maximum number <strong>of</strong> units that will bedisplayed in a single column. When this value isnil, there is no limit.startingIndex number The index in the final sorted list at which to startdisplaying units. This value defaults to 1.columnSpacing number The amount <strong>of</strong> space (in pixels) between thecolumns. This value defaults to 0.columnAnchorPoint stringThe anchor point <strong>for</strong> each new column. A value<strong>of</strong> “LEFT“ causes the columns to grow to theright.initial-anchor string The initial anchor point <strong>for</strong> new unit frames.Thiscanbeusedtoplacetheframeinadifferent starting location (such as growing fromthe bottom up instead <strong>of</strong> top down). This valueshould be a comma-separated list containinganchor point, relative anchor point, x <strong>of</strong>fset, <strong>and</strong>y<strong>of</strong>fset.initial-width number The initial width <strong>of</strong> the unit frame in pixels.initial-height number The initial height <strong>of</strong> the unit frame in pixels.initial-scale number The initial scale <strong>of</strong> the unit frame.Initial-unitwatch booleanWhether or not the frame should register <strong>for</strong>unit watch when initially created. If thisattribute is set to the string state, the frame willbe notified via the w attribute. If this attribute isset to any other true value, the frame will beshown or hidden depending on whether or notthe unit exists.In Table 26-3, a column means the initial level <strong>of</strong> grouping <strong>for</strong> the raidframes. Because you can specify a custom anchor point <strong>for</strong> the frames (usingthe point attribute), your columns could actually be horizontal, <strong>and</strong> your rowscould be vertical. In addition, when using a multicolumn display, you mustspecify a columnAnchorPoint or the template will generate an error.Initial Configuration FunctionIn addition to the predefined attributes, a group header can identify aninitial configuration function that will be called after a frame has been created,but be<strong>for</strong>e it is fully locked down by the user interface. Setting the

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

Saved successfully!

Ooh no, something went wrong!