WoW:XML/BackdropTemplate: Difference between revisions

Line 22: Line 22:
== Configuration ==
== Configuration ==
KeyValue pairs on the Frame inheriting BackdropTemplate:
KeyValue pairs on the Frame inheriting BackdropTemplate:
* backdropInfo (global, 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
* backdropColorAlpha (number) - 0 to 1 value that can be used to override BackdropTemplate SetBackdropColor(r, g, b, a) alpha, set on load
 
* 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.
 
* backdropBorderColorAlpha (number) - 0 to 1. default 1. overrides the BackdropTemplate SetBackdropBorderColor(r, g, b, a) alpha, set on load
* backdropBorderColorAlpha (number) - 0 to 1. default 1. overrides the BackdropTemplate SetBackdropBorderColor(r, g, b, a) alpha, set on load
* backdropBorderBlendMode (string) - overrides tehthe BackdropTemplate SetBorderBlendMode(blendMode) which sets blend mode for the 8 backdrop edge pieces, set on load. See [[XML/ALPHAMODE]] for list of options
* backdropBorderBlendMode (string) - overrides tehthe BackdropTemplate SetBorderBlendMode(blendMode) which sets blend mode for the 8 backdrop edge pieces, set on load. See [[XML/ALPHAMODE]] for list of options