-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTotemTimers.xml
169 lines (167 loc) · 4.85 KB
/
TotemTimers.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
164
165
166
167
168
169
<!--
original author: Donald Ephraim Curtis
current author: Grumpey ([email protected])
TotemTimers: Provides totem timers and notification for totem expiration.
-->
<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">
<Script file="localization.lua" />
<Script file="localization.ge.lua" />
<Script file="localization.fr.lua" />
<Script file="localization.ko.lua" />
<Script file="TotemTimersData.lua" />
<Script file="TotemTimer.lua" />
<Script file="TotemTimers.lua" />
<Button name="TotemTimerTemplate" virtual="true">
<Size>
<AbsDimension x="30" y="30" />
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentIcon"/>
<FontString name="$parentTime" inherits="GameFontNormalSmall" justifyH="CENTER">
<Size>
<AbsDimension x="36" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-1" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentTick" justifyH="CENTER">
<Size>
<AbsDimension x="50" y="50"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
TotemTimer_OnLoad();
</OnLoad>
<OnUpdate>
TotemTimer_OnUpdate(arg1);
</OnUpdate>
<OnMouseDown>
TotemTimer_OnDragStart();
</OnMouseDown>
<OnMouseUp>
TotemTimer_OnDragStop();
</OnMouseUp>
<OnClick>
TotemTimer_ReCast();
</OnClick>
<OnEnter>
TotemTimer_OnEnter();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<Frames>
<Model name="$parentCooldown" inherits="CooldownFrameTemplate"/>
</Frames>
</Button>
<!-- temporary, create frame to handle initialization; once complete, destroy frame -->
<Frame name="TotemTimersFrame" parent="UIParent" toplevel="true" frameStrata="LOW" enableMouse="true" movable="true" hidden="false">
<Size>
<AbsDimension x="155" y="50"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-200" y="-120"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<!--
<Frame name="ExpirationBackdrop" setAllPoints="true" frameStrata="BACKGROUND" hidden="false">
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="4"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="4" right="4" top="4" bottom="4"/>
</BackgroundInsets>
</Backdrop>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
</OnLoad>
</Scripts>
</Frame>
-->
</Frames>
<Scripts>
<OnLoad>
TotemTimers_OnLoad();
</OnLoad>
<OnEvent>
TotemTimers_OnEvent(event);
</OnEvent>
<!-- Disabled
<OnUpdate>
Expiration_OnUpdate(arg1);
</OnUpdate>
-->
</Scripts>
</Frame>
<Button name="TotemTimer1" parent="TotemTimersFrame" inherits="TotemTimerTemplate" id="0">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-10" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TotemTimer2" parent="TotemTimersFrame" inherits="TotemTimerTemplate" id="1">
<Anchors>
<Anchor point="RIGHT" relativeTo="TotemTimer1" relativePoint="LEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TotemTimer3" parent="TotemTimersFrame" inherits="TotemTimerTemplate" id="2">
<Anchors>
<Anchor point="RIGHT" relativeTo="TotemTimer2" relativePoint="LEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TotemTimer4" parent="TotemTimersFrame" inherits="TotemTimerTemplate" id="3">
<Anchors>
<Anchor point="RIGHT" relativeTo="TotemTimer3" relativePoint="LEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<GameTooltip name="TotemTimersTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate">
<Scripts>
<OnLoad>
this:SetOwner(UIParent, "ANCHOR_NONE");
</OnLoad>
</Scripts>
</GameTooltip>
</Ui>