WoW:XML/ButtonStyle: Difference between revisions

m
Move page script moved page XML/ButtonStyle to WoW:XML/ButtonStyle without leaving a redirect
m (Move page script moved page XML/ButtonStyle to WoW:XML/ButtonStyle without leaving a redirect)
 
(3 intermediate revisions by one other user not shown)
Line 16: Line 16:


=== Example ===
=== Example ===
<pre>
  <Frame name="MyFrame">
  <Frame name="MyFrame">
   <Layers>
   <Layers>
Line 31: Line 32:
   </Button>
   </Button>
  </Frame>
  </Frame>
</pre>


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


== Details ==
== Details ==
For a button, a ButtonStyle for a particular state overrides the Button's ButtonText element. So, for example, when a button is in the Normal state, then NormalFont would override would pick a Font to inherit to override ButtonText properties while in that state.
For a button, a ButtonStyle for a particular state overrides the Button's ButtonText element. So, for example, when a button is in the Normal state, then NormalFont would pick a Font to inherit to override ButtonText properties while the button is that state.


For the 'style' attribute, no value or empty string would act as though no ButtonStyle element was added. In this case would inherit ButtonStyle instead. If there is no ButtonStyle to inherit, and not enough details to render in the ButtonText element, then no text is rendered. So effectively there is no default value for the ButtonStyle elements.
For the 'style' attribute, no value or empty string would act as though no ButtonStyle element was added. In this case would inherit ButtonStyle instead. If there is no ButtonStyle to inherit, and not enough details to render in the ButtonText element, then no text is rendered. So effectively there is no default value for the ButtonStyle elements.
Anonymous user