Wikia

WoWWiki

XML/ButtonStyle

Talk0
101,961pages on
this wiki

< XML

Revision as of 18:47, October 7, 2012 by Celess22 (Talk | contribs)

XML UI ← XML types < ButtonStyle < Button

ButtonStyle defines a visual style for Button state. At this time, attribute values are basically names of Fonts or FontStrings which the button will use to render its font.

Inheritance

Inherited by: none, Inherits: none, Defined in: Button

Elements

none

Attributes

  • style (string) - name of a Font or FontString to base the font style on.

Summary

Although this type was meant to encapsulate a whole style for a button state or general button, it onlyri conveys the font information. It does not itself define a font or fontstring and has no attributes or elements to support this. Currently the ButtonStyle 'style' can basically be treated like 'inherits' on FontString.

Example

<Frame name="MyFrame">
  <Layers>
    <Layer>
      <Texture>
        <Size x="100" y="100" />
        <Color a="1" r="1" g="1" b="1" />
      </Texture>
    </Layer>
  </Layers>
  <Button inherits="UIPanelButtonTemplate">
    <Size x=150 y=60>
    <Anchors><Anchor point="BOTTOM"/></Anchors>
    <NormalFont style="GameFontNormalHuge"/>
  </Button>
</Frame>

This example will show a opaque color texture, painted white, and a button where the normal state font have been changed to a large font.

Around Wikia's network

Random Wiki