WoW:XML/BackdropTemplate: Difference between revisions

Line 21: Line 21:


== 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. Can use one of the many WoW predefined 'backdropInfo' default tables.
* 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.


Line 32: Line 32:
** 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.
** 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:
; '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