vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <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/ |
2 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="localization.lua"/> |
||
4 | <Script file="localization.ge.lua"/> |
||
5 | <Script file="localization.fr.lua"/> |
||
6 | <Script file="CT_Timer.lua"/> |
||
7 | <Frame name="CT_TimerFrame" movable="true" hidden="true" parent="UIParent"> |
||
8 | <Size> |
||
9 | <AbsDimension x="128" y="36"/> |
||
10 | </Size> |
||
11 | <Anchors> |
||
12 | <Anchor point="TOP" relativeTo="UIParent" relativePoint="TOP"> |
||
13 | <Offset> |
||
14 | <AbsDimension x="0" y="-14"/> |
||
15 | </Offset> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | <Layers> |
||
19 | <Layer level="ARTWORK"> |
||
20 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
21 | <Size> |
||
22 | <AbsDimension x="256" y="64"/> |
||
23 | </Size> |
||
24 | <Anchors> |
||
25 | <Anchor point="TOP"/> |
||
26 | </Anchors> |
||
27 | </Texture> |
||
28 | <FontString name="$parentTime" inherits="GameFontNormal" text="00:00:00"> |
||
29 | <Anchors> |
||
30 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
31 | <Offset> |
||
32 | <AbsDimension x="0" y="-14"/> |
||
33 | </Offset> |
||
34 | </Anchor> |
||
35 | </Anchors> |
||
36 | </FontString> |
||
37 | </Layer> |
||
38 | </Layers> |
||
39 | <Frames> |
||
40 | <Button name="$parentScrollDownHour" inherits="UIPanelScrollDownButtonTemplate" hidden="false"> |
||
41 | <Anchors> |
||
42 | <Anchor point="TOPLEFT" relativePoint="LEFT"> |
||
43 | <Offset> |
||
44 | <AbsDimension x="-18" y="-2"/> |
||
45 | </Offset> |
||
46 | </Anchor> |
||
47 | </Anchors> |
||
48 | <Scripts> |
||
49 | <OnClick> |
||
50 | CT_Timer_ModTime(-3600); |
||
51 | </OnClick> |
||
52 | <OnEnter> |
||
53 | CT_Timer_OnMouseOver(); |
||
54 | </OnEnter> |
||
55 | <OnLeave> |
||
56 | CT_Timer_OnMouseOut(); |
||
57 | </OnLeave> |
||
58 | </Scripts> |
||
59 | </Button> |
||
60 | <Button name="$parentScrollUpHour" inherits="UIPanelScrollUpButtonTemplate" hidden="false"> |
||
61 | <Anchors> |
||
62 | <Anchor point="BOTTOMLEFT" relativePoint="LEFT"> |
||
63 | <Offset> |
||
64 | <AbsDimension x="-18" y="-2"/> |
||
65 | </Offset> |
||
66 | </Anchor> |
||
67 | </Anchors> |
||
68 | <Scripts> |
||
69 | <OnClick> |
||
70 | CT_Timer_ModTime(3600); |
||
71 | </OnClick> |
||
72 | <OnEnter> |
||
73 | CT_Timer_OnMouseOver(); |
||
74 | </OnEnter> |
||
75 | <OnLeave> |
||
76 | CT_Timer_OnMouseOut(); |
||
77 | </OnLeave> |
||
78 | </Scripts> |
||
79 | </Button> |
||
80 | <Button name="$parentScrollDownMin" inherits="UIPanelScrollDownButtonTemplate" hidden="false"> |
||
81 | <Anchors> |
||
82 | <Anchor point="TOPRIGHT" relativePoint="RIGHT"> |
||
83 | <Offset> |
||
84 | <AbsDimension x="18" y="-2"/> |
||
85 | </Offset> |
||
86 | </Anchor> |
||
87 | </Anchors> |
||
88 | <Scripts> |
||
89 | <OnClick> |
||
90 | CT_Timer_ModTime(-60); |
||
91 | </OnClick> |
||
92 | <OnEnter> |
||
93 | CT_Timer_OnMouseOver(); |
||
94 | </OnEnter> |
||
95 | <OnLeave> |
||
96 | CT_Timer_OnMouseOut(); |
||
97 | </OnLeave> |
||
98 | </Scripts> |
||
99 | </Button> |
||
100 | <Button name="$parentScrollUpMin" inherits="UIPanelScrollUpButtonTemplate" hidden="false"> |
||
101 | <Anchors> |
||
102 | <Anchor point="BOTTOMRIGHT" relativePoint="RIGHT"> |
||
103 | <Offset> |
||
104 | <AbsDimension x="18" y="-2"/> |
||
105 | </Offset> |
||
106 | </Anchor> |
||
107 | </Anchors> |
||
108 | <Scripts> |
||
109 | <OnClick> |
||
110 | CT_Timer_ModTime(60); |
||
111 | </OnClick> |
||
112 | <OnEnter> |
||
113 | CT_Timer_OnMouseOver(); |
||
114 | </OnEnter> |
||
115 | <OnLeave> |
||
116 | CT_Timer_OnMouseOut(); |
||
117 | </OnLeave> |
||
118 | </Scripts> |
||
119 | </Button> |
||
120 | <Frame toplevel="true" name="$parentDragClickFrame" hidden="false"> |
||
121 | <Anchors> |
||
122 | <Anchor point="CENTER"/> |
||
123 | </Anchors> |
||
124 | <Size> |
||
125 | <AbsDimension x="135" y="30"/> |
||
126 | </Size> |
||
127 | <Scripts> |
||
128 | <OnEnter> |
||
129 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
130 | GameTooltip:SetText(CT_TIMER_DRAG1 .. "\n" .. CT_TIMER_DRAG2 .. "\n" .. CT_TIMER_DRAG3); |
||
131 | CT_Timer_OnMouseOver(); |
||
132 | </OnEnter> |
||
133 | <OnLeave> |
||
134 | GameTooltip:Hide(); |
||
135 | CT_Timer_OnMouseOut(); |
||
136 | </OnLeave> |
||
137 | <OnMouseDown> |
||
138 | if ( IsShiftKeyDown() and arg1 == "LeftButton" ) then |
||
139 | this:GetParent():StartMoving(); |
||
140 | end |
||
141 | </OnMouseDown> |
||
142 | <OnMouseUp> |
||
143 | if ( arg1 == "RightButton" ) then |
||
144 | CT_Timer_Reset(); |
||
145 | elseif ( arg1 == "LeftButton" and not IsShiftKeyDown() ) then |
||
146 | CT_Timer_Toggle(); |
||
147 | end |
||
148 | this:GetParent():StopMovingOrSizing(); |
||
149 | </OnMouseUp> |
||
150 | <OnLoad> |
||
151 | this.onbutton = 0; |
||
152 | this.updatetime = 0.01; |
||
153 | </OnLoad> |
||
154 | </Scripts> |
||
155 | </Frame> |
||
156 | </Frames> |
||
157 | <Scripts> |
||
158 | <OnLoad> |
||
159 | this:RegisterEvent("VARIABLES_LOADED"); |
||
160 | CT_Timer.step = 1; |
||
161 | this.showsecs = 1; |
||
162 | CT_Timer.time = 0; |
||
163 | getglobal(this:GetName() .. "Time"):SetTextColor(1, 0, 0); |
||
164 | CT_Timer.color = { 1, 0, 0 }; |
||
165 | </OnLoad> |
||
166 | <OnEvent> |
||
167 | CT_Timer_OnEvent(event); |
||
168 | </OnEvent> |
||
169 | </Scripts> |
||
170 | </Frame> |
||
171 | <Frame name="CT_TimerOptionsFrame" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent"> |
||
172 | <Size> |
||
173 | <AbsDimension x="200" y="150"/> |
||
174 | </Size> |
||
175 | <Anchors> |
||
176 | <Anchor point="CENTER"/> |
||
177 | </Anchors> |
||
178 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
179 | <BackgroundInsets> |
||
180 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
181 | </BackgroundInsets> |
||
182 | <TileSize> |
||
183 | <AbsValue val="32"/> |
||
184 | </TileSize> |
||
185 | <EdgeSize> |
||
186 | <AbsValue val="32"/> |
||
187 | </EdgeSize> |
||
188 | </Backdrop> |
||
189 | <Layers> |
||
190 | <Layer level="ARTWORK"> |
||
191 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
192 | <Size> |
||
193 | <AbsDimension x="256" y="64"/> |
||
194 | </Size> |
||
195 | <Anchors> |
||
196 | <Anchor point="TOP"> |
||
197 | <Offset> |
||
198 | <AbsDimension x="0" y="12"/> |
||
199 | </Offset> |
||
200 | </Anchor> |
||
201 | </Anchors> |
||
202 | </Texture> |
||
203 | <FontString inherits="GameFontNormal" text="Timer Options"> |
||
204 | <Anchors> |
||
205 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
206 | <Offset> |
||
207 | <AbsDimension x="0" y="-14"/> |
||
208 | </Offset> |
||
209 | </Anchor> |
||
210 | </Anchors> |
||
211 | </FontString> |
||
212 | <FontString name="$parentShowTimer" inherits="GameFontNormal" text="Show Timer"> |
||
213 | <Anchors> |
||
214 | <Anchor point="LEFT" relativePoint="TOPLEFT"> |
||
215 | <Offset> |
||
216 | <AbsDimension x="60" y="-50"/> |
||
217 | </Offset> |
||
218 | </Anchor> |
||
219 | </Anchors> |
||
220 | </FontString> |
||
221 | <FontString name="$parentShowSeconds" inherits="GameFontNormal" text="Show Seconds"> |
||
222 | <Anchors> |
||
223 | <Anchor point="LEFT" relativePoint="TOPLEFT"> |
||
224 | <Offset> |
||
225 | <AbsDimension x="60" y="-70"/> |
||
226 | </Offset> |
||
227 | </Anchor> |
||
228 | </Anchors> |
||
229 | </FontString> |
||
230 | <FontString name="$parentHideBackground" inherits="GameFontNormal" text="Hide Background"> |
||
231 | <Anchors> |
||
232 | <Anchor point="LEFT" relativePoint="TOPLEFT"> |
||
233 | <Offset> |
||
234 | <AbsDimension x="60" y="-90"/> |
||
235 | </Offset> |
||
236 | </Anchor> |
||
237 | </Anchors> |
||
238 | </FontString> |
||
239 | </Layer> |
||
240 | </Layers> |
||
241 | <Frames> |
||
242 | <Frame name="$parentDrag"> |
||
243 | <Size> |
||
244 | <AbsDimension x="150" y="32"/> |
||
245 | </Size> |
||
246 | <Anchors> |
||
247 | <Anchor point="TOP"> |
||
248 | <Offset> |
||
249 | <AbsDimension x="-12" y="12"/> |
||
250 | </Offset> |
||
251 | </Anchor> |
||
252 | </Anchors> |
||
253 | <Scripts> |
||
254 | <OnMouseDown> |
||
255 | if ( arg1 == "LeftButton" ) then |
||
256 | this:GetParent():StartMoving(); |
||
257 | elseif ( arg1 == "RightButton" ) then |
||
258 | this:GetParent():ClearAllPoints(); |
||
259 | this:GetParent():SetPoint("CENTER", "UIParent", "CENTER"); |
||
260 | end |
||
261 | </OnMouseDown> |
||
262 | <OnMouseUp> |
||
263 | this:GetParent():StopMovingOrSizing(); |
||
264 | </OnMouseUp> |
||
265 | <OnEnter> |
||
266 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
267 | GameTooltip:SetText("Left-click to drag\nRight-click to reset"); |
||
268 | </OnEnter> |
||
269 | <OnLeave> |
||
270 | GameTooltip:Hide(); |
||
271 | </OnLeave> |
||
272 | </Scripts> |
||
273 | </Frame> |
||
274 | <Button name="$parentCloseButton" hidden="false" inherits="GameMenuButtonTemplate" text="Okay"> |
||
275 | <Size> |
||
276 | <AbsDimension x="100" y="25"/> |
||
277 | </Size> |
||
278 | <Anchors> |
||
279 | <Anchor point="BOTTOM"> |
||
280 | <Offset> |
||
281 | <AbsDimension x="0" y="15"/> |
||
282 | </Offset> |
||
283 | </Anchor> |
||
284 | </Anchors> |
||
285 | <Scripts> |
||
286 | <OnClick> |
||
287 | HideUIPanel(this:GetParent()); |
||
288 | </OnClick> |
||
289 | </Scripts> |
||
290 | </Button> |
||
291 | <CheckButton name="$parentShowTimerCB" id="1" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
292 | <Anchors> |
||
293 | <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentShowTimer"> |
||
294 | <Offset> |
||
295 | <AbsDimension x="-5" y="0"/> |
||
296 | </Offset> |
||
297 | </Anchor> |
||
298 | </Anchors> |
||
299 | <HitRectInsets> |
||
300 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
301 | </HitRectInsets> |
||
302 | <Size> |
||
303 | <AbsDimension x="24" y="24"/> |
||
304 | </Size> |
||
305 | <Scripts> |
||
306 | <OnClick> |
||
307 | CT_TimerOptions_OnClick(1, this:GetChecked()); |
||
308 | </OnClick> |
||
309 | </Scripts> |
||
310 | </CheckButton> |
||
311 | <CheckButton name="$parentShowSecondsCB" id="2" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
312 | <Anchors> |
||
313 | <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentShowSeconds"> |
||
314 | <Offset> |
||
315 | <AbsDimension x="-5" y="0"/> |
||
316 | </Offset> |
||
317 | </Anchor> |
||
318 | </Anchors> |
||
319 | <HitRectInsets> |
||
320 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
321 | </HitRectInsets> |
||
322 | <Size> |
||
323 | <AbsDimension x="24" y="24"/> |
||
324 | </Size> |
||
325 | <Scripts> |
||
326 | <OnClick> |
||
327 | CT_TimerOptions_OnClick(2, this:GetChecked()); |
||
328 | </OnClick> |
||
329 | </Scripts> |
||
330 | </CheckButton> |
||
331 | <CheckButton name="$parentHideBackgroundCB" id="3" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
332 | <Anchors> |
||
333 | <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentHideBackground"> |
||
334 | <Offset> |
||
335 | <AbsDimension x="-5" y="0"/> |
||
336 | </Offset> |
||
337 | </Anchor> |
||
338 | </Anchors> |
||
339 | <HitRectInsets> |
||
340 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
341 | </HitRectInsets> |
||
342 | <Size> |
||
343 | <AbsDimension x="24" y="24"/> |
||
344 | </Size> |
||
345 | <Scripts> |
||
346 | <OnClick> |
||
347 | CT_TimerOptions_OnClick(3, this:GetChecked()); |
||
348 | </OnClick> |
||
349 | </Scripts> |
||
350 | </CheckButton> |
||
351 | </Frames> |
||
352 | <Scripts> |
||
353 | <OnLoad> |
||
354 | this:RegisterEvent("PLAYER_ENTERING_WORLD"); |
||
355 | </OnLoad> |
||
356 | <OnEvent> |
||
357 | CT_TimerOptions_Initialize(); |
||
358 | </OnEvent> |
||
359 | <OnShow> |
||
360 | PlaySound("UChatScrollButton"); |
||
361 | </OnShow> |
||
362 | <OnHide> |
||
363 | PlaySound("UChatScrollButton"); |
||
364 | </OnHide> |
||
365 | </Scripts> |
||
366 | </Frame> |
||
367 | <Frame name="CT_TimerGlobalFrame" parent="UIParent" hidden="false"> |
||
368 | <Scripts> |
||
369 | <OnUpdate> |
||
370 | CT_Timer_UpdateTime(arg1); |
||
371 | </OnUpdate> |
||
372 | </Scripts> |
||
373 | </Frame> |
||
374 | </Ui> |