WoW:XML/Gradient: Difference between revisions

From AddOn Studio
< XML
Jump to navigation Jump to search
(Created page with "{{uixml}} Gradient defines a color visible gradient. == Inheritance == Inherited by: none, Inherits: none, Defined in: multiple == Elements == * MinColor (...")
 
m (Escaped the pointy brackets, so the wiki doesn't treat <Layer> as for its consumption.)
Line 16: Line 16:


=== Example ===
=== Example ===
  <Frame name="MyFrame">
  &lt;Frame name="MyFrame"&gt;
   <Layers>
   &lt;Layers&gt;
     <Layer>
     &lt;Layer&gt;
       <Texture>
       &lt;Texture&gt;
         <Size x="100" y="100" />
         &lt;Size x="100" y="100" /&gt;
         <Gradient orientation="HORIZONTAL">
         &lt;Gradient orientation="HORIZONTAL"&gt;
           <MinColor a="1" r="0" g="0" b="0"/>
           &lt;MinColor a="1" r="0" g="0" b="0"/&gt;
           <MaxColor a="1" r="1" g="1" b="1"/>
           &lt;MaxColor a="1" r="1" g="1" b="1"/&gt;
         </Gradient>
         &lt;/Gradient&gt;
       </Texture>
       &lt;/Texture&gt;
     </Layer>
     &lt;/Layer&gt;
   </Layers>
   &lt;/Layers&gt;
  </Frame>
  &lt;/Frame&gt;


This example will show a opaque gradient texture, fading from black to white horizontally.
This example will show a opaque gradient texture, fading from black to white horizontally.

Revision as of 23:51, 11 November 2017

XML UI ← XML types < Gradient

Gradient defines a visible color gradient.

Inheritance

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

Elements

Attributes

Summary

Example

<Frame name="MyFrame">
  <Layers>
    <Layer>
      <Texture>
        <Size x="100" y="100" />
        <Gradient orientation="HORIZONTAL">
          <MinColor a="1" r="0" g="0" b="0"/>
          <MaxColor a="1" r="1" g="1" b="1"/>
        </Gradient>
      </Texture>
    </Layer>
  </Layers>
</Frame>

This example will show a opaque gradient texture, fading from black to white horizontally.