WoW:XML/BackdropTemplate: Difference between revisions

No edit summary
Line 21: Line 21:


== Configuration ==
== Configuration ==
 
KeyValue pairs on Frame with backdrop:
KeyValue pairs on the Frame:
* 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, value to table name) - points to a backdrop configuration table, using 'type' 'global' with a string 'value' that's the name of a global Lua table
* backdropColorAlpha (number) - 0 to 1 value that can be used to override BackdropTemplate SetBackdropColor(r, g, b, a) alpha, set on load
* backdropColorAlpha (number) - 0 to 1 value that can be used to override BackdropTemplateMixin:SetBackdropColor(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
* backdropBorderColorAlpha (number) - 0 to 1 value that can be used to override the BackdropTemplateMixin: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) - can be used to override the BackdropTemplateMixin:SetBorderBlendMode(blendMode), set on load, which will set the blend mode for each layout frame piece that makes up the backdrop. See [[XML/ALPHAMODE]] for list of options


== Notes ==
== Notes ==
* The BackdropTemplate template directly replaced the older [[XML/Backdrop]] [[XML types|type]] in WoW Retail patch 9.0.1, but still worked in Classic and Era.
* The BackdropTemplate template directly replaced the older [[XML/Backdrop]] [[XML types|type]] in WoW Retail patch 9.0.1, but still worked in Classic and Era.
* In Classic and Classic Era patch 2.5.3 and patch 1.14.0 respectively, BackdropTemplate template also replaced Backdrop element, when the version 9 engine was adopted.
* In Classic and Classic Era patch 2.5.3 and patch 1.14.0 respectively, BackdropTemplate template also replaced Backdrop element, when the version 9 engine was adopted.