WoW:XML/BackdropTemplate: Difference between revisions

Line 63: Line 63:


=== notes ===
=== notes ===
'backdropInfo' requirements:
; User defined 'backdropInfo' requirements:
* The backdropInfo table requires one, or both, of 'edgeFile' or 'bgFile', or will be ignored, and the backdrop will not be created.
* The backdropInfo table requires one, or both, of 'edgeFile' or 'bgFile', or will be ignored, and the backdrop will not be created.
* If using a user created backdropInfo table, it must be created before the Frame loads, so must be created before the file XML is loaded in Lua.
* If using a user created backdropInfo table, it must be created before the Frame loads, so must be created before the file XML is loaded in Lua.


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.
* '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'>