Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
- ..\FrameXML\UI.xsd">
- <Frame name="DBTBarTemplate" enableMouse="true" virtual="true" frameStrata="MEDIUM" topLevel="true">
- <Size>
- <AbsDimension x="195" y="20"/>
- </Size>
- <Frames>
- <StatusBar name="$parentBar">
- <Size>
- <AbsDimension x="200" y="10"/>
- </Size>
- <Anchors>
- <Anchor point="BOTTOM" relativePoint="BOTTOM">
- <Offset>
- <AbsDimension x="1" y="0"/>
- </Offset>
- </Anchor>
- </Anchors>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture name="$parentBackground">
- <Color r="0" g="0" b="0" a="0.3"/>
- </Texture>
- <Texture name="$parentIcon1">
- <Size>
- <AbsDimension x="25" y="25"/>
- </Size>
- <Anchors>
- <Anchor point="RIGHT" relativePoint="LEFT">
- <Offset>
- <AbsDimension x="-3" y="8"/>
- </Offset>
- </Anchor>
- </Anchors>
- </Texture>
- <Texture name="$parentIcon2">
- <Size>
- <AbsDimension x="20" y="20"/>
- </Size>
- <Anchors>
- <Anchor point="LEFT" relativePoint="RIGHT">
- <Offset>
- <AbsDimension x="0" y="0"/>
- </Offset>
- </Anchor>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="OVERLAY">
- <Texture name="Border" file="Interface\AddOns\DBM-Core\textures\frameborder.tga" level="TOP">
- <Size>
- <AbsDimension x="26" y="26"/>
- </Size>
- <Color r="1" g="1" b="1" a="1"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
- <Offset>
- <AbsDimension x="-3" y="0"/>
- </Offset>
- </Anchor>
- </Anchors>
- </Texture>
- <Texture name="$parentSpark">
- <Size>
- <AbsDimension x="32" y="50"/>
- </Size>
- <Anchors>
- <Anchor point="CENTER">
- <Offset>
- <AbsDimension x="0" y="0"/>
- </Offset>
- </Anchor>
- </Anchors>
- </Texture>
- <FontString name="$parentName" inherits="GameFontHighlightSmall" text="">
- <Anchors>
- <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
- <Offset>
- <AbsDimension x="0" y="15"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- <FontString name="$parentTimer" inherits="GameFontHighlightSmall" text="">
- <Anchors>
- <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
- <Offset>
- <AbsDimension x="-1" y="15"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <BarTexture name="$parentTexture" file="Interface\AddOns\DBM-Core\textures\default.tga"/>
- <BarColor r="1.0" g="0.7" b="0.0"/>
- <Scripts>
- <OnLoad>
- self:SetMinMaxValues(0, 1)
- self:SetValue(1)
- </OnLoad>
- </Scripts>
- </StatusBar>
- </Frames>
- <Scripts>
- <OnUpdate>
- self.obj:Update(arg1)
- </OnUpdate>
- <OnMouseDown>
- if self.obj.owner.movable and arg1 == "LeftButton" then
- if self.obj.enlarged then
- self.obj.owner.secAnchor:StartMoving()
- else
- self.obj.owner.mainAnchor:StartMoving()
- end
- end
- </OnMouseDown>
- <OnMouseUp>
- self.obj.owner.mainAnchor:StopMovingOrSizing()
- self.obj.owner.secAnchor:StopMovingOrSizing()
- self.obj.owner:SavePosition()
- if arg1 == "RightButton" then
- self.obj:Cancel()
- elseif arg1 == "LeftButton" and IsShiftKeyDown() then
- self.obj:Announce()
- end
- </OnMouseUp>
- <OnHide>
- if self.obj then
- self.obj.owner.mainAnchor:StopMovingOrSizing()
- self.obj.owner.secAnchor:StopMovingOrSizing()
- end
- </OnHide>
- </Scripts>
- </Frame>
- </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement