Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API Frame SetBackdrop
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}} Frame:SetBackdrop( { bgFile = "bgFile", edgeFile = "edgeFile", tile = false, tileSize = 0, edgeSize = 32, insets = { left = 0, right = 0, top = 0, bottom = 0 } }); Using 'nil' as the only parameter will remove the backdrop on the indicated frame. == Arguments == :;bgFile:String - Which texture file to use as frame background (.blp or .tga format) :;[[edgeFiles|edgeFile]]:String- Which texture file to use as frame edge blp or .tga format) :;tile:Boolean - whether background texture is tiled or streched :;tileSize:Number - Control how large each copy of the bgFile becomes on-screen :;edgeSize:Number - Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size) :;insets:4 x Number - Controls how far into the frame the background will be drawn (use higher values the thicker the edges are) == Example == MinimapCluster:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }}); MinimapCluster:SetBackdropColor(0,0,0,1); == See Also == * [[edgeFiles]] * [[API SetBackdropColor|SetBackdropColor]] * [[API SetBackdropBorderColor|SetBackdropBorderColor]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)