WoW:XML/BackdropTemplate: Difference between revisions

Line 62: Line 62:
** left (number) - bottom edge inset amount toward the top
** left (number) - bottom edge inset amount toward the top


=== Configuration details ===
=== Details ===
; User defined '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'>