forked from Eirosdev/QuickHeal
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHealingBar.xml
163 lines (157 loc) · 5.98 KB
/
HealingBar.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<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">
<!-- Healing Bar -->
<Frame name="QuickHealHealingBar" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
<Size><AbsDimension x="196" y="23"/></Size>
<Anchors>
<Anchor point="CENTER" relativeTo="CastingBarFrame" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="30"/>
</Offset>
</Anchor>
</Anchors>
<!-- Border -->
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="OVERLAY">
<FontString name="QuickHealHealingBarText" inherits="GameFontHighlightSmall" text="Healing Target">
<Size>
<AbsDimension x="196" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="QuickHealHealingBar" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- Health statusbar (before heal) -->
<StatusBar name="QuickHealHealingBarStatusBar">
<Size>
<AbsDimension x="186" y="13"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="QuickHealHealingBarSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Size>
<AbsDimension x="16" y="30"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetMinMaxValues(0,1);
this:SetValue(0.5);
this:SetFrameLevel(this:GetFrameLevel() - 1)
</OnLoad>
</Scripts>
<BarTexture name="QuickHealHealingBarTexture" file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.0" g="1.0" b="0.0"/>
</StatusBar>
<!-- Heal statusbar (after heal) -->
<StatusBar name="QuickHealHealingBarStatusBarPost">
<Size>
<AbsDimension x="372" y="13"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="QuickHealHealingBarBackground">
<Size>
<AbsDimension x="186" y="15"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetMinMaxValues(0,2);
this:SetValue(1);
this:SetFrameLevel(this:GetFrameLevel() - 2)
</OnLoad>
</Scripts>
<BarTexture name="QuickHealHealingBarPostTexture" file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.0" g="1.0" b="0.0"/>
</StatusBar>
</Frames>
<Scripts>
<OnMouseDown>
if QuickHealConfig:IsVisible() and (arg1 == "LeftButton") then
this:StartMoving();
end
</OnMouseDown>
<OnMouseUp>
if QuickHealConfig:IsVisible() then
if (arg1 == "LeftButton") then
this:StopMovingOrSizing();
elseif (arg1 == "RightButton") then
QuickHealHealingBar:ClearAllPoints();
QuickHealHealingBar:SetPoint("CENTER",CastingBarFrame,"CENTER",0,30)
end
end
</OnMouseUp>
<OnEnter>
if QuickHealConfig:IsVisible() then
GameTooltip:SetOwner(this,"ANCHOR_TOPLEFT");
GameTooltip:SetText("Healing Bar Configuration\nLeft-click to drag.\nRight-click to re-attach to Casting Bar.");
this.tooltipShown = true;
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
this.tooltipShown = false;
</OnLeave>
</Scripts>
</Frame>
<!-- Overheal status label -->
<Frame name="QuickHealOverhealStatus" parent="UIParent" hidden="true">
<Size> <AbsDimension x="300" y="13"/> </Size>
<Anchors> <Anchor point="CENTER" relativeTo="QuickHealHealingBar" relativePoint="CENTER"><Offset><AbsDimension x="0" y="10"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parent_Text" outline="NORMAL" inherits="GameFontNormal" text="">
<Anchors><Anchor point="BOTTOM" relativePoint="TOP"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
</Ui>