WoW:XML/Shadow: Difference between revisions

< XML
(Created page with "{{uixmltype}} Shadow type defines a visible background 'drop shadow'. Used for displaying fonts. == Inheritance == Inherited by: none, Inherits: none, Defined...")
 
m (Move page script moved page XML/Shadow to XML/Shadow without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
           <Color a="0.9" r="0.2" g="0.2" b="0.2"/>
           <Color a="0.9" r="0.2" g="0.2" b="0.2"/>
           <Offset x="1" y="-1"/>
           <Offset x="1" y="-1"/>
         </Gradient>
         </Shadow>
       </Texture>
       </Texture>
     </Layer>
     </Layer>

Latest revision as of 04:49, 15 August 2023

XML UI ← XML types < Shadow

Shadow type defines a visible background 'drop shadow'. Used for displaying fonts.

Inheritance

Inherited by: none, Inherits: none, Defined in: Font,FontString

Elements

  • Color (Color) - color of the shadow
  • Offset (Dimension) - the amount to offset the shadow from the actual overlayed element

Attributes

none

Summary

Example

<Frame name="MyFrame">
  <Layers>
    <Layer>
      <FontString inherits="MyFont">
        <Size x="100" y="100" />
        <Shadow>
          <Color a="0.9" r="0.2" g="0.2" b="0.2"/>
          <Offset x="1" y="-1"/>
        </Shadow>
      </Texture>
    </Layer>
  </Layers>
</Frame>

This example will display a font string with a drop shadow thats dark grey and slightly transparent, offset by one unit in each direction to the lower right.