WoW:API Frame SetBackdrop: Difference between revisions
Jump to navigation
Jump to search
(Document arguments) |
m (update example to set a more tooltip-like backdrop (insets, color)) |
||
Line 22: | Line 22: | ||
MinimapCluster:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", | MinimapCluster:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", | ||
edgeFile = "Interface/Tooltips/UI-Tooltip-Border", | edgeFile = "Interface/Tooltips/UI-Tooltip-Border", | ||
tile = true, tileSize = | tile = true, tileSize = 16, edgeSize = 16, | ||
insets = { left = | insets = { left = 4, right = 4, top = 4, bottom = 4 }}); | ||
MinimapCluster:SetBackdropColor(0,0,0,1); | |||
== See Also == | == See Also == | ||
* [[edgeFiles]] | * [[edgeFiles]] | ||
* [[API SetBackdropColor|SetBackdropColor]] | * [[API SetBackdropColor|SetBackdropColor]] | ||
* [[API SetBackdropBorderColor|SetBackdropBorderColor]] | * [[API SetBackdropBorderColor|SetBackdropBorderColor]] |
Revision as of 13:02, 26 December 2006
← 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
- bgFile
- String - Which texture file to use as frame background (.blp or .tga format)
- edgeFile
- String- Which texture file to use as frame edge blp or .tga format)
- tile
- Boolean - ?
- 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);