WoW:XML/BackdropTemplate: Difference between revisions

Line 69: Line 69:


User defined color table requirements:
User defined color table requirements:
* 'color table', or color constant, must be created with CreateColor(r, g, b, a) which creates a ColorMixin instance. BackdropTemplate will try to call GetRGB on the table and expect an 'r, g, b, a =' return.
* A 'color table', or color constant, must be created with CreateColor(r, g, b, a) which creates a ColorMixin instance. BackdropTemplate will try to call GetRGB on the table and expect an 'r, g, b, a =' return.
<pre lang='lua'>
<pre lang='lua'>
PURE_RED_COLOR = CreateColor(0.8, 0, 0);
PURE_RED_COLOR = CreateColor(0.8, 0, 0);