vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui>
2 <Script file="panic.lua"/>
3 <Button name="DefendYourselfPanicButton" frameStrata="HIGH" hidden="true" parent="DefendYourselfFrame" enableMouse="true" movable="true">
4 <Size>
5 <AbsDimension x="25" y="25"/>
6 </Size>
7 <Anchors>
8 <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
9 <Offset>
10 <AbsDimension x="5" y="-10"/>
11 </Offset>
12 </Anchor>
13 </Anchors>
14 <NormalTexture name="$parentTex" file="Interface\Icons\Ability_Rogue_FeignDeath"/>
15 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
16 <Scripts>
17 <OnLoad>this:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up');</OnLoad>
18 <OnClick>DefendYourselfPanicButtonClick(arg1);</OnClick>
19 <OnMouseDown>if this:IsMovable() then this:StartMoving(); end</OnMouseDown>
20 <OnMouseUp>if this:IsMovable() then this:StopMovingOrSizing(); end</OnMouseUp>
21 </Scripts>
22 </Button>
23 <Frame name="DefendYourselfPanicBar" frameStrata="HIGH" hidden="true" parent="DefendYourselfFrame" enableMouse="true" movable="true">
24 <Size>
25 <AbsDimension x="125" y="15"/>
26 </Size>
27 <Anchors>
28 <Anchor point="TOPLEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
29 <Offset>
30 <AbsDimension x="3" y="-9"/>
31 </Offset>
32 </Anchor>
33 </Anchors>
34 <Layers>
35 <Layer level="FOREGROUND">
36 <FontString name="DefendYourselfPanicText" inherits="GameFontNormalSmall" wraponspaces="true">
37 <Size>
38 <AbsDimension x="0" y="60"/>
39 </Size>
40 <Anchors>
41 <Anchor point="CENTER"/>
42 </Anchors>
43 </FontString>
44 <Texture name="DefendYourselfPanicBarBorder" file="Interface\Tooltips\UI-StatusBar-Border"/>
45 </Layer>
46 </Layers>
47 <Frames>
48 <StatusBar name="DefendYourselfBar" movable="true" inherits="TextStatusBar">
49  
50 <Size>
51 <AbsDimension x="120" y="12"/>
52 </Size>
53 <Anchors>
54 <Anchor point="CENTER" relativeTo="$Parent" relativePoint="CENTER">
55 <Offset>
56 <AbsDimension x="0" y="0"/>
57 </Offset>
58 </Anchor>
59 </Anchors>
60 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
61  
62 <Frames>
63 <Frame name="DefendYourselfBarBackground">
64 <Layers>
65 <Layer level="BACKGROUND">
66  
67 <Texture name="DefendYourselfBarLowerBackground1">
68 <Size>
69 <AbsDimension x="118" y="12"/>
70 </Size>
71 <Anchors>
72 <Anchor point="CENTER" relativeTo="$Parent" relativePoint="CENTER">
73 <Offset>
74 <AbsDimension x="0" y="0"/>
75 </Offset>
76 </Anchor>
77 </Anchors>
78 <Color r="0" g="0" b="0" a="0.5"/>
79 </Texture>
80 </Layer>
81 </Layers>
82 </Frame>
83 </Frames>
84 </StatusBar>
85 </Frames>
86 <Scripts>
87 <OnLoad>this.maxtime = 0; DefendYourselfPanicText:SetTextColor(1,1,1);</OnLoad>
88 <OnMouseDown>if this:IsMovable() then this:StartMoving(); end</OnMouseDown>
89 <OnMouseUp>if this:IsMovable() then this:StopMovingOrSizing(); end</OnMouseUp>
90 <OnEnter>
91 GameTooltip:SetOwner(this, "ANCHOR_CURSOR");
92 GameTooltip:SetText("DefendYourself Panic Status\nTo hide, type /dy bar off", 1.0, 1.0, 1.0);
93 </OnEnter>
94 <OnLeave>
95 GameTooltip:Hide();
96 </OnLeave>
97 </Scripts>
98 </Frame>
99 </Ui>