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/">
- <Script file="MyBG.lua"/>
- <Frame name="MyBG_Frame" enableMouse="true" movable="true" parent="UIParent"
- clampedToScreen="true" toplevel="true" frameStrata="HIGH">
- <Size>
- <AbsDimension x="150" y="75"/>
- </Size>
- <Anchors>
- <Anchor point="CENTER"/>
- </Anchors>
- <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" bgFile="Interface\ToolTips\UI-Tooltip-Background">
- <BackgroundInsets>
- <AbsInset left="4" right="4" top="4" bottom="4"/>
- </BackgroundInsets>
- <EdgeSize>
- <AbsValue val="16"/>
- </EdgeSize>
- <Color r="0" g="0" b="0" a="0.4"/>
- <BorderColor r="0" g="0" b="0" a="0.8"/>
- </Backdrop>
- <Layers>
- <Layer level="OVERLAY">
- <FontString name="$parent_L1" inherits="GameFontNormal">
- <Anchors>
- <Anchor point="TOPLEFT">
- <Offset>
- <AbsDimension x="10" y="-10"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- <FontString name="$parent_L2" inherits="GameFontNormal">
- <Anchors>
- <Anchor point="TOPLEFT">
- <Offset>
- <AbsDimension x="10" y="-25"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- <FontString name="$parent_L3" inherits="GameFontNormal">
- <Anchors>
- <Anchor point="TOPLEFT">
- <Offset>
- <AbsDimension x="10" y="-40"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- <FontString name="$parent_L4" inherits="GameFontNormal">
- <Anchors>
- <Anchor point="TOPLEFT">
- <Offset>
- <AbsDimension x="10" y="-55"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad>
- self:RegisterEvent("COMBAT_LOG_EVENT")
- self:RegisterEvent("UPDATE_BATTLEFIELD_SCORE")
- MyBG_OnLoad(self) ;
- </OnLoad>
- <OnUpdate>
- MyBG_OnUpdate(self);
- </OnUpdate>
- <OnMouseDown>
- if ( button == "LeftButton" ) then
- self:StartMoving() ;
- self.isMoving = true ;
- end
- </OnMouseDown>
- <OnMouseUp>
- if ( self.isMoving ) then
- self:StopMovingOrSizing () ;
- self.isMoving= false ;
- end
- </OnMouseUp>
- <OnHide>
- if (self.isMoving ) then
- self:StopMovingOrSizing () ;
- self.isMoving = false ;
- end
- </OnHide>
- <OnEnter>
- MyBG_OnEnter(self);
- </OnEnter>
- <OnLeave>
- GameTooltip:Hide();
- </OnLeave>
- <OnEvent>
- MyBG_OnEvent(self, event, ...) ;
- </OnEvent>
- </Scripts>
- </Frame>
- </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement