49
edits
| Line 22: | Line 22: | ||
== Configuration == | == Configuration == | ||
KeyValue pairs on the Frame inheriting BackdropTemplate: | KeyValue pairs on the Frame inheriting BackdropTemplate: | ||
* backdropInfo (global, backdropInfo table name) - the main backdrop configuration table, using 'type' 'global' with a string 'value' that's the name of a global Lua 'backdropInfo' table | * backdropInfo (global, backdropInfo table name) - the main backdrop configuration table, using 'type' 'global' with a string 'value' that's the name of a global Lua 'backdropInfo' table. Can use one of the many WoW predefined 'backdropInfo' default tables. | ||
* backdropColor (global, color table name) - default none. 'value' is one of the predefined or a user defined global Lua color table constants, used to set backdrop background vertex color values, set on load by BackdropTemplate SetBackdropColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the background texture, if any. If no background texture is defined, then has no effect. | * backdropColor (global, color table name) - default none. 'value' is one of the predefined or a user defined global Lua color table constants, used to set backdrop background vertex color values, set on load by BackdropTemplate SetBackdropColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the background texture, if any. If no background texture is defined, then has no effect. | ||
* backdropColorAlpha (number) - 0 to 1. default 1. used to override alpha for the backdrop background texture, set on load by BackdropTemplate SetBackdropColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the background texture, if any. If no background texture is defined, then has no effect. | * backdropColorAlpha (number) - 0 to 1. default 1. used to override alpha for the backdrop background texture, set on load by BackdropTemplate SetBackdropColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the background texture, if any. If no background texture is defined, then has no effect. | ||
* | * backdropBorderColor (global, color table name) - default none. 'value' is one of the predefined or a user defined global Lua color table constants, used to set backdrop background vertex color values, set on load by BackdropTemplate SetBackdropBorderColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the edge textures, if any. If no edge texture is defined, then has no effect. | ||
* | * backdropBorderColorAlpha (number) - 0 to 1. default 1. used to override alpha for the backdrop background texture, set on load by BackdropTemplate SetBackdropBorderColor(r, g, b, a) which uses SetVertexColor(r, g, b, a or 1) on the edge textures, if any. If no edge texture is defined, then has no effect. | ||
'backdropInfo' table options: | ** backdropBorderBlendMode (string) - overrides the blend/alpha mode for the 8 backdrop edge pieces, set on load by BackdropTemplate SetBorderBlendMode(blendMode) which uses SetBlendMode(blendMode) on each edge piece. See [[XML/ALPHAMODE]] for list of options. | ||
'backdropInfo' table options, which must be defined outside of FrameXML in Lua: | |||
* bgFile (string) - the resource path to the backdrop background texture | * bgFile (string) - the resource path to the backdrop background texture | ||
* edgeFile (string) - the resource path to the backdrop edge texture | * edgeFile (string) - the resource path to the backdrop edge texture | ||