API Frame SetBackdrop

104,671pages on
this wiki
Add New Page
Talk0 Share
Widget API ← Frame < SetBackdrop

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 Edit

String - Which texture file to use as frame background (.blp or .tga format)
String- Which texture file to use as frame edge blp or .tga format)
Boolean - whether background texture is tiled or streched
Number - Control how large each copy of the bgFile becomes on-screen
Number - Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size)
4 x Number - Controls how far into the frame the background will be drawn (use higher values the thicker the edges are)

Example Edit

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 }});

See Also Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki