49
edits
| 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> | ||
PAPER_FRAME_DARK_COLOR = CreateColor(0.25, 0.1484375, 0.02) | PAPER_FRAME_DARK_COLOR = CreateColor(0.25, 0.1484375, 0.02) | ||
</pre> | </pre> | ||
* The color constant must be created before the Frame loads, so must be created before the file XML is loaded in Lua, just like the 'backdropInfo' does. | * The color constant must be created before the Frame loads, so must be created before the file XML is loaded in Lua, just like the 'backdropInfo' does. | ||