WoW:XML/Backdrop: Difference between revisions
< WoW:XML
Jump to navigation
Jump to search
(added description of values which I copied from the "SetBackdrop" page) |
|||
| Line 10: | Line 10: | ||
:;bgFile: Which texture file to use as frame background (.blp or .tga format)<br>Examples: "Interface/DialogFrame/UI-DialogBox-Background", "Interface/Tooltips/UI-Tooltip-Background" | :;bgFile: Which texture file to use as frame background (.blp or .tga format)<br>Examples: "Interface/DialogFrame/UI-DialogBox-Background", "Interface/Tooltips/UI-Tooltip-Background" | ||
:;[[edgeFiles|edgeFile]]: Which texture file to use as frame edge blp or .tga format)<br>Examples: "Interface/Tooltips/UI-Tooltip-Border", "Interface/DialogFrame/UI-DialogBox-Border" | :;[[edgeFiles|edgeFile]]: Which texture file to use as frame edge blp or .tga format)<br>Examples: "Interface/Tooltips/UI-Tooltip-Border", "Interface/DialogFrame/UI-DialogBox-Border" | ||
:;tile: | :;tile: Determines if the background texture will be stretched all over the Backdrop area, or repeated in a form of tiles. | ||
:;TileSize: Control how large each copy of the bgFile becomes on-screen | :;TileSize: Control how large each copy of the bgFile becomes on-screen | ||
:;EdgeSize: Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size) | :;EdgeSize: Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size) | ||
Revision as of 19:14, 31 October 2007
Backdrop
Derived from: ?
Elements: EdgeSize, TileSize, BackgroundInsets
Attributes: bgFile, edgeFile, tile
Description
- bgFile
- Which texture file to use as frame background (.blp or .tga format)
Examples: "Interface/DialogFrame/UI-DialogBox-Background", "Interface/Tooltips/UI-Tooltip-Background" - edgeFile
- Which texture file to use as frame edge blp or .tga format)
Examples: "Interface/Tooltips/UI-Tooltip-Border", "Interface/DialogFrame/UI-DialogBox-Border" - tile
- Determines if the background texture will be stretched all over the Backdrop area, or repeated in a form of tiles.
- TileSize
- Control how large each copy of the bgFile becomes on-screen
- EdgeSize
- Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size)
- BackgroundInsets
- 4 x Number - Controls how far into the frame the background will be drawn (use higher values the thicker the edges are)
Example
<Frame name="autoInviteMainConfigFrame" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent"> <Size> <RelDimension x="0.3" y="0.3"/> </Size> <Anchors> <Anchor point="CENTER"/> </Anchors> <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> <EdgeSize> <AbsValue val="16"/> </EdgeSize> <TileSize> <AbsValue val="32"/> </TileSize> <BackgroundInsets> <AbsInset left="5" right="5" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> </Frame>
