XML/Shadow

From Warcraft Wiki
< XML
Jump to navigation Jump to search

<Shadow> (child of <FontString> and <Font>) places a shadow behind text with a <Color> child tag.

<Shadow x="" y="" />
	<Color />
	<Offset />
<Shadow>

Attributes

x (xs:float) - Left (+) or right (-), scaling dependent.
y (xs:float) - Up (+) or down (-), scaling dependent.

Child elements

<Color> sets color using RGB values or a ColorMixin, and alpha.

r (xs:float?Optional. Could be nil.) - Red component from 0.0 (default) to 1.0.
g (xs:float?Optional. Could be nil.) - Green component from 0.0 (default) to 1.0.
b (xs:float?Optional. Could be nil.) - Blue component from 0.0 (default) to 1.0.
a (xs:float?Optional. Could be nil.) - Alpha (opacity) from 0.0 to 1.0 (default).
name (xs:string?Optional. Could be nil.) - Name of a ColorMixin made with CreateColor().

<Offset> (inherits from <Dimension>) is an alternative to using x/y coordinates on <Shadow>.

<Dimension> defines a dimension (size, offset, etc.) as x and y, or with a child element to specify the coordinate system.
x (xs:int?Optional. Could be nil.) - Horizontal distance affected by UI scaling; (+) right and (-) left.
y (xs:int?Optional. Could be nil.) - Vertical distance affected by UI scaling; (+) up and (-) down.

<AbsDimension> defines coordinates in scaling-dependent units (same as <Dimension>).

x (xs:int) - Horizontal distance affected by UI scaling; (+) right and (-) left.
y (xs:int) - Vertical distance affected by UI scaling; (+) up and (-) down.

<RelDimension> defines coordinates relative to the entire screen, where 0 and 1 are the edges.

x (xs:float) - Ratio of screen width, from left to right edges.
y (xs:float) - Ratio of screen height, from bottom to top edges.

See also