WoW:XML/BackdropTemplate: Difference between revisions

Line 68: Line 68:
* '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.
* '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>
<pre>
PURE_RED_COLOR = CreateColor(0.8, 0, 0);
PAPER_FRAME_DARK_COLOR = CreateColor(0.25, 0.1484375, 0.02)
PAPER_FRAME_DARK_COLOR = CreateColor(0.25, 0.1484375, 0.02)
</pre>
</pre>