XML/Shadow
< 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? ) - Red component from 0.0 (default) to 1.0.
- g (xs:float? ) - Green component from 0.0 (default) to 1.0.
- b (xs:float? ) - Blue component from 0.0 (default) to 1.0.
- a (xs:float? ) - Alpha (opacity) from 0.0 to 1.0 (default).
- name (xs:string? ) - 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? ) - Horizontal distance affected by UI scaling; (+) right and (-) left.
- y (xs:int? ) - 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
- FontInstance:SetShadowColor(r, g, b [, a])
- FontInstance:SetShadowOffset(x, y)