vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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_BarMod.lua"/>
7 <Button name="CT_DragTemplate" virtual="true" hidden="true" movable="true">
8 <NormalTexture file="Interface\AddOns\CT_BarMod\Images\DragButton"/>
9 <Scripts>
10 <OnEnter>
11 GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT");
12 GameTooltip:SetText("Left-click to drag\nRight-click to rotate");
13 </OnEnter>
14 <OnLeave>
15 GameTooltip:Hide();
16 </OnLeave>
17 <OnMouseDown>
18 if ( arg1 == "LeftButton" ) then
19 this:StartMoving();
20 else
21 CT_Sidebar_ChangeAxis(this:GetParent():GetID())
22 end
23 </OnMouseDown>
24 <OnMouseUp>
25 this:StopMovingOrSizing();
26 </OnMouseUp>
27 </Scripts>
28 </Button>
29  
30 <CheckButton name="CT_ActionBarButtonTemplate" inherits="ActionBarButtonTemplate" virtual="true">
31 <Frames>
32 <Frame name="$parentCD">
33 <Anchors>
34 <Anchor point="TOPLEFT"/>
35 <Anchor point="BOTTOMRIGHT"/>
36 </Anchors>
37 <Layers>
38 <Layer level="OVERLAY">
39 <FontString name="$parentCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER" justifyV="CENTER">
40 <Anchors>
41 <Anchor point="CENTER"/>
42 </Anchors>
43 </FontString>
44 </Layer>
45 </Layers>
46 </Frame>
47 </Frames>
48 <PushedTexture name="$parentPushedTexture" file="Interface\Buttons\UI-Quickslot-Depress"/>
49 <HighlightTexture name="$parentHighlightTexture" alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
50 <CheckedTexture name="$parentCheckedTexture" alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
51 <Scripts>
52 <OnShow>
53 CT_ActionButton_Update();
54 this:SetFrameLevel(1);
55 </OnShow>
56 <OnEvent>
57 CT_ActionButton_OnEvent(event);
58 </OnEvent>
59 <OnClick>
60 CT_ActionButton_OnClick();
61 </OnClick>
62 <OnDragStart>
63 if ( ( not CT_HotbarButtons_Locked and ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) ) or IsShiftKeyDown() ) then
64 if ( (not ActionLockButton) or (ActionLockButton and (not ActionLockButton.isLocked)) ) then
65 PickupAction(CT_ActionButton_GetPagedID(this));
66 CT_ActionButton_UpdateState();
67 end
68 end
69 </OnDragStart>
70 <OnReceiveDrag>
71 if ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) then
72 PlaceAction(CT_ActionButton_GetPagedID(this));
73 CT_ActionButton_UpdateState();
74 end
75 </OnReceiveDrag>
76 <OnEnter>
77 if ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) then
78 CT_ActionButton_SetTooltip();
79 end
80 </OnEnter>
81 <OnUpdate>
82 CT_ActionButton_OnUpdate(arg1);
83 </OnUpdate>
84 <OnLoad>
85 ActionButton_OnLoad();
86 this:RegisterEvent("PLAYER_ENTERING_WORLD");
87 this:RegisterEvent("PLAYER_LEAVING_WORLD");
88 </OnLoad>
89 </Scripts>
90 </CheckButton>
91 <Frame name="CT_HotbarLeft" id="1" frameStrata="MEDIUM" parent="UIParent" hidden="true">
92 <Frames>
93 <CheckButton name="CT_ActionButton1" inherits="CT_ActionBarButtonTemplate" id="1">
94 <Anchors>
95 <Anchor point="BOTTOM" relativeTo="ActionButton1" relativePoint="TOP">
96 <Offset>
97 <AbsDimension x="-6" y="14"/>
98 </Offset>
99 </Anchor>
100 </Anchors>
101 </CheckButton>
102 <CheckButton name="CT_ActionButton2" inherits="CT_ActionBarButtonTemplate" id="2">
103 <Anchors>
104 <Anchor point="LEFT" relativeTo="CT_ActionButton1" relativePoint="RIGHT">
105 <Offset>
106 <AbsDimension x="6" y="0"/>
107 </Offset>
108 </Anchor>
109 </Anchors>
110 </CheckButton>
111 <CheckButton name="CT_ActionButton3" inherits="CT_ActionBarButtonTemplate" id="3">
112 <Anchors>
113 <Anchor point="LEFT" relativeTo="CT_ActionButton2" relativePoint="RIGHT">
114 <Offset>
115 <AbsDimension x="6" y="0"/>
116 </Offset>
117 </Anchor>
118 </Anchors>
119 </CheckButton>
120 <CheckButton name="CT_ActionButton4" inherits="CT_ActionBarButtonTemplate" id="4">
121 <Anchors>
122 <Anchor point="LEFT" relativeTo="CT_ActionButton3" relativePoint="RIGHT">
123 <Offset>
124 <AbsDimension x="6" y="0"/>
125 </Offset>
126 </Anchor>
127 </Anchors>
128 </CheckButton>
129 <CheckButton name="CT_ActionButton5" inherits="CT_ActionBarButtonTemplate" id="5">
130 <Anchors>
131 <Anchor point="LEFT" relativeTo="CT_ActionButton4" relativePoint="RIGHT">
132 <Offset>
133 <AbsDimension x="6" y="0"/>
134 </Offset>
135 </Anchor>
136 </Anchors>
137 </CheckButton>
138 <CheckButton name="CT_ActionButton6" inherits="CT_ActionBarButtonTemplate" id="6">
139 <Anchors>
140 <Anchor point="LEFT" relativeTo="CT_ActionButton5" relativePoint="RIGHT">
141 <Offset>
142 <AbsDimension x="6" y="0"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 </CheckButton>
147 <CheckButton name="CT_ActionButton7" inherits="CT_ActionBarButtonTemplate" id="7">
148 <Anchors>
149 <Anchor point="LEFT" relativeTo="CT_ActionButton6" relativePoint="RIGHT">
150 <Offset>
151 <AbsDimension x="6" y="0"/>
152 </Offset>
153 </Anchor>
154 </Anchors>
155 </CheckButton>
156 <CheckButton name="CT_ActionButton8" inherits="CT_ActionBarButtonTemplate" id="8">
157 <Anchors>
158 <Anchor point="LEFT" relativeTo="CT_ActionButton7" relativePoint="RIGHT">
159 <Offset>
160 <AbsDimension x="6" y="0"/>
161 </Offset>
162 </Anchor>
163 </Anchors>
164 </CheckButton>
165 <CheckButton name="CT_ActionButton9" inherits="CT_ActionBarButtonTemplate" id="9">
166 <Anchors>
167 <Anchor point="LEFT" relativeTo="CT_ActionButton8" relativePoint="RIGHT">
168 <Offset>
169 <AbsDimension x="6" y="0"/>
170 </Offset>
171 </Anchor>
172 </Anchors>
173 </CheckButton>
174 <CheckButton name="CT_ActionButton10" inherits="CT_ActionBarButtonTemplate" id="10">
175 <Anchors>
176 <Anchor point="LEFT" relativeTo="CT_ActionButton9" relativePoint="RIGHT">
177 <Offset>
178 <AbsDimension x="6" y="0"/>
179 </Offset>
180 </Anchor>
181 </Anchors>
182 </CheckButton>
183 <CheckButton name="CT_ActionButton11" inherits="CT_ActionBarButtonTemplate" id="11">
184 <Anchors>
185 <Anchor point="LEFT" relativeTo="CT_ActionButton10" relativePoint="RIGHT">
186 <Offset>
187 <AbsDimension x="6" y="0"/>
188 </Offset>
189 </Anchor>
190 </Anchors>
191 </CheckButton>
192 <CheckButton name="CT_ActionButton12" inherits="CT_ActionBarButtonTemplate" id="12">
193 <Anchors>
194 <Anchor point="LEFT" relativeTo="CT_ActionButton11" relativePoint="RIGHT">
195 <Offset>
196 <AbsDimension x="6" y="0"/>
197 </Offset>
198 </Anchor>
199 </Anchors>
200 </CheckButton>
201 </Frames>
202 </Frame>
203 <Button name="CT_HotbarLeft_Drag" toplevel="true" inherits="CT_DragTemplate" frameStrata="MEDIUM" parent="CT_HotbarLeft">
204 <Size>
205 <AbsDimension x="16" y="16"/>
206 </Size>
207 <Anchors>
208 <Anchor point="BOTTOM" relativeTo="UIParent" relativePoint="BOTTOM">
209 <Offset>
210 <AbsDimension x="-490" y="98"/>
211 </Offset>
212 </Anchor>
213 </Anchors>
214 <Scripts>
215 <OnLoad>
216 CT_LinkFrameDrag(CT_ActionButton1, this, "TOP", "BOTTOM", 0, -6);
217 </OnLoad>
218 </Scripts>
219 </Button>
220 <Frame name="CT_HotbarRight" id="2" toplevel="true" frameStrata="MEDIUM" parent="UIParent" hidden="true">
221 <Frames>
222 <CheckButton name="CT2_ActionButton1" inherits="CT_ActionBarButtonTemplate" id="1">
223 <Anchors>
224 <Anchor point="LEFT" relativeTo="CT_ActionButton12" relativePoint="RIGHT">
225 <Offset>
226 <AbsDimension x="6" y="0"/>
227 </Offset>
228 </Anchor>
229 </Anchors>
230 </CheckButton>
231 <CheckButton name="CT2_ActionButton2" inherits="CT_ActionBarButtonTemplate" id="2">
232 <Anchors>
233 <Anchor point="LEFT" relativeTo="CT2_ActionButton1" relativePoint="RIGHT">
234 <Offset>
235 <AbsDimension x="6" y="0"/>
236 </Offset>
237 </Anchor>
238 </Anchors>
239 </CheckButton>
240 <CheckButton name="CT2_ActionButton3" inherits="CT_ActionBarButtonTemplate" id="3">
241 <Anchors>
242 <Anchor point="LEFT" relativeTo="CT2_ActionButton2" relativePoint="RIGHT">
243 <Offset>
244 <AbsDimension x="6" y="0"/>
245 </Offset>
246 </Anchor>
247 </Anchors>
248 </CheckButton>
249 <CheckButton name="CT2_ActionButton4" inherits="CT_ActionBarButtonTemplate" id="4">
250 <Anchors>
251 <Anchor point="LEFT" relativeTo="CT2_ActionButton3" relativePoint="RIGHT">
252 <Offset>
253 <AbsDimension x="6" y="0"/>
254 </Offset>
255 </Anchor>
256 </Anchors>
257 </CheckButton>
258 <CheckButton name="CT2_ActionButton5" inherits="CT_ActionBarButtonTemplate" id="5">
259 <Anchors>
260 <Anchor point="LEFT" relativeTo="CT2_ActionButton4" relativePoint="RIGHT">
261 <Offset>
262 <AbsDimension x="6" y="0"/>
263 </Offset>
264 </Anchor>
265 </Anchors>
266 </CheckButton>
267 <CheckButton name="CT2_ActionButton6" inherits="CT_ActionBarButtonTemplate" id="6">
268 <Anchors>
269 <Anchor point="LEFT" relativeTo="CT2_ActionButton5" relativePoint="RIGHT">
270 <Offset>
271 <AbsDimension x="6" y="0"/>
272 </Offset>
273 </Anchor>
274 </Anchors>
275 </CheckButton>
276 <CheckButton name="CT2_ActionButton7" inherits="CT_ActionBarButtonTemplate" id="7">
277 <Anchors>
278 <Anchor point="LEFT" relativeTo="CT2_ActionButton6" relativePoint="RIGHT">
279 <Offset>
280 <AbsDimension x="6" y="0"/>
281 </Offset>
282 </Anchor>
283 </Anchors>
284 </CheckButton>
285 <CheckButton name="CT2_ActionButton8" inherits="CT_ActionBarButtonTemplate" id="8">
286 <Anchors>
287 <Anchor point="LEFT" relativeTo="CT2_ActionButton7" relativePoint="RIGHT">
288 <Offset>
289 <AbsDimension x="6" y="0"/>
290 </Offset>
291 </Anchor>
292 </Anchors>
293 </CheckButton>
294 <CheckButton name="CT2_ActionButton9" inherits="CT_ActionBarButtonTemplate" id="9">
295 <Anchors>
296 <Anchor point="LEFT" relativeTo="CT2_ActionButton8" relativePoint="RIGHT">
297 <Offset>
298 <AbsDimension x="6" y="0"/>
299 </Offset>
300 </Anchor>
301 </Anchors>
302 </CheckButton>
303 <CheckButton name="CT2_ActionButton10" inherits="CT_ActionBarButtonTemplate" id="10">
304 <Anchors>
305 <Anchor point="LEFT" relativeTo="CT2_ActionButton9" relativePoint="RIGHT">
306 <Offset>
307 <AbsDimension x="6" y="0"/>
308 </Offset>
309 </Anchor>
310 </Anchors>
311 </CheckButton>
312 <CheckButton name="CT2_ActionButton11" inherits="CT_ActionBarButtonTemplate" id="11">
313 <Anchors>
314 <Anchor point="LEFT" relativeTo="CT2_ActionButton10" relativePoint="RIGHT">
315 <Offset>
316 <AbsDimension x="6" y="0"/>
317 </Offset>
318 </Anchor>
319 </Anchors>
320 </CheckButton>
321 <CheckButton name="CT2_ActionButton12" inherits="CT_ActionBarButtonTemplate" id="12">
322 <Anchors>
323 <Anchor point="LEFT" relativeTo="CT2_ActionButton11" relativePoint="RIGHT">
324 <Offset>
325 <AbsDimension x="6" y="0"/>
326 </Offset>
327 </Anchor>
328 </Anchors>
329 </CheckButton>
330 </Frames>
331 </Frame>
332 <Button name="CT_HotbarRight_Drag" toplevel="true" inherits="CT_DragTemplate" frameStrata="MEDIUM" parent="CT_HotbarRight">
333 <Size>
334 <AbsDimension x="16" y="16"/>
335 </Size>
336 <Anchors>
337 <Anchor point="BOTTOM" relativeTo="UIParent" relativePoint="BOTTOM">
338 <Offset>
339 <AbsDimension x="14" y="98"/>
340 </Offset>
341 </Anchor>
342 </Anchors>
343 <Scripts>
344 <OnLoad>
345 CT_LinkFrameDrag(CT2_ActionButton1, this, "TOP", "BOTTOM", 0, -6);
346 </OnLoad>
347 </Scripts>
348 </Button>
349 <Frame name="CT_SidebarFrame" id="3" frameStrata="LOW" parent="UIParent" hidden="true">
350 <Frames>
351 <CheckButton name="CT3_ActionButton1" inherits="CT_ActionBarButtonTemplate" id="1">
352 <Anchors>
353 <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
354 <Offset>
355 <AbsDimension x="0" y="-128"/>
356 </Offset>
357 </Anchor>
358 </Anchors>
359 </CheckButton>
360 <CheckButton name="CT3_ActionButton2" inherits="CT_ActionBarButtonTemplate" id="2">
361 <Anchors>
362 <Anchor point="TOP" relativeTo="CT3_ActionButton1" relativePoint="BOTTOM">
363 <Offset>
364 <AbsDimension x="0" y="-6"/>
365 </Offset>
366 </Anchor>
367 </Anchors>
368 </CheckButton>
369 <CheckButton name="CT3_ActionButton3" inherits="CT_ActionBarButtonTemplate" id="3">
370 <Anchors>
371 <Anchor point="TOP" relativeTo="CT3_ActionButton2" relativePoint="BOTTOM">
372 <Offset>
373 <AbsDimension x="0" y="-6"/>
374 </Offset>
375 </Anchor>
376 </Anchors>
377 </CheckButton>
378 <CheckButton name="CT3_ActionButton4" inherits="CT_ActionBarButtonTemplate" id="4">
379 <Anchors>
380 <Anchor point="TOP" relativeTo="CT3_ActionButton3" relativePoint="BOTTOM">
381 <Offset>
382 <AbsDimension x="0" y="-6"/>
383 </Offset>
384 </Anchor>
385 </Anchors>
386 </CheckButton>
387 <CheckButton name="CT3_ActionButton5" inherits="CT_ActionBarButtonTemplate" id="5">
388 <Anchors>
389 <Anchor point="TOP" relativeTo="CT3_ActionButton4" relativePoint="BOTTOM">
390 <Offset>
391 <AbsDimension x="0" y="-6"/>
392 </Offset>
393 </Anchor>
394 </Anchors>
395 </CheckButton>
396 <CheckButton name="CT3_ActionButton6" inherits="CT_ActionBarButtonTemplate" id="6">
397 <Anchors>
398 <Anchor point="TOP" relativeTo="CT3_ActionButton5" relativePoint="BOTTOM">
399 <Offset>
400 <AbsDimension x="0" y="-6"/>
401 </Offset>
402 </Anchor>
403 </Anchors>
404 </CheckButton>
405 <CheckButton name="CT3_ActionButton7" inherits="CT_ActionBarButtonTemplate" id="7">
406 <Anchors>
407 <Anchor point="TOP" relativeTo="CT3_ActionButton6" relativePoint="BOTTOM">
408 <Offset>
409 <AbsDimension x="0" y="-6"/>
410 </Offset>
411 </Anchor>
412 </Anchors>
413 </CheckButton>
414 <CheckButton name="CT3_ActionButton8" inherits="CT_ActionBarButtonTemplate" id="8">
415 <Anchors>
416 <Anchor point="TOP" relativeTo="CT3_ActionButton7" relativePoint="BOTTOM">
417 <Offset>
418 <AbsDimension x="0" y="-6"/>
419 </Offset>
420 </Anchor>
421 </Anchors>
422 </CheckButton>
423 <CheckButton name="CT3_ActionButton9" inherits="CT_ActionBarButtonTemplate" id="9">
424 <Anchors>
425 <Anchor point="TOP" relativeTo="CT3_ActionButton8" relativePoint="BOTTOM">
426 <Offset>
427 <AbsDimension x="0" y="-6"/>
428 </Offset>
429 </Anchor>
430 </Anchors>
431 </CheckButton>
432 <CheckButton name="CT3_ActionButton10" inherits="CT_ActionBarButtonTemplate" id="10">
433 <Anchors>
434 <Anchor point="TOP" relativeTo="CT3_ActionButton9" relativePoint="BOTTOM">
435 <Offset>
436 <AbsDimension x="0" y="-6"/>
437 </Offset>
438 </Anchor>
439 </Anchors>
440 </CheckButton>
441 <CheckButton name="CT3_ActionButton11" inherits="CT_ActionBarButtonTemplate" id="11">
442 <Anchors>
443 <Anchor point="TOP" relativeTo="CT3_ActionButton10" relativePoint="BOTTOM">
444 <Offset>
445 <AbsDimension x="0" y="-6"/>
446 </Offset>
447 </Anchor>
448 </Anchors>
449 </CheckButton>
450 <CheckButton name="CT3_ActionButton12" inherits="CT_ActionBarButtonTemplate" id="12">
451 <Anchors>
452 <Anchor point="TOP" relativeTo="CT3_ActionButton11" relativePoint="BOTTOM">
453 <Offset>
454 <AbsDimension x="0" y="-6"/>
455 </Offset>
456 </Anchor>
457 </Anchors>
458 </CheckButton>
459 </Frames>
460 </Frame>
461 <Button name="CT_SidebarLeft_Drag" toplevel="true" inherits="CT_DragTemplate" frameStrata="LOW" parent="CT_SidebarFrame">
462 <Size>
463 <AbsDimension x="16" y="16"/>
464 </Size>
465 <Anchors>
466 <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
467 <Offset>
468 <AbsDimension x="15" y="-86"/>
469 </Offset>
470 </Anchor>
471 </Anchors>
472 <Scripts>
473 <OnLoad>
474 CT_LinkFrameDrag(CT3_ActionButton1, this, "TOP", "BOTTOM", 0, -6);
475 </OnLoad>
476 </Scripts>
477 </Button>
478 <Frame name="CT_SidebarFrame2" id="4" frameStrata="LOW" parent="UIParent" hidden="true">
479 <Frames>
480 <CheckButton name="CT4_ActionButton1" inherits="CT_ActionBarButtonTemplate" id="1">
481 <Anchors>
482 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT">
483 <Offset>
484 <AbsDimension x="-5" y="-170"/>
485 </Offset>
486 </Anchor>
487 </Anchors>
488 </CheckButton>
489 <CheckButton name="CT4_ActionButton2" inherits="CT_ActionBarButtonTemplate" id="2">
490 <Anchors>
491 <Anchor point="TOP" relativeTo="CT4_ActionButton1" relativePoint="BOTTOM">
492 <Offset>
493 <AbsDimension x="0" y="-6"/>
494 </Offset>
495 </Anchor>
496 </Anchors>
497 </CheckButton>
498 <CheckButton name="CT4_ActionButton3" inherits="CT_ActionBarButtonTemplate" id="3">
499 <Anchors>
500 <Anchor point="TOP" relativeTo="CT4_ActionButton2" relativePoint="BOTTOM">
501 <Offset>
502 <AbsDimension x="0" y="-6"/>
503 </Offset>
504 </Anchor>
505 </Anchors>
506 </CheckButton>
507 <CheckButton name="CT4_ActionButton4" inherits="CT_ActionBarButtonTemplate" id="4">
508 <Anchors>
509 <Anchor point="TOP" relativeTo="CT4_ActionButton3" relativePoint="BOTTOM">
510 <Offset>
511 <AbsDimension x="0" y="-6"/>
512 </Offset>
513 </Anchor>
514 </Anchors>
515 </CheckButton>
516 <CheckButton name="CT4_ActionButton5" inherits="CT_ActionBarButtonTemplate" id="5">
517 <Anchors>
518 <Anchor point="TOP" relativeTo="CT4_ActionButton4" relativePoint="BOTTOM">
519 <Offset>
520 <AbsDimension x="0" y="-6"/>
521 </Offset>
522 </Anchor>
523 </Anchors>
524 </CheckButton>
525 <CheckButton name="CT4_ActionButton6" inherits="CT_ActionBarButtonTemplate" id="6">
526 <Anchors>
527 <Anchor point="TOP" relativeTo="CT4_ActionButton5" relativePoint="BOTTOM">
528 <Offset>
529 <AbsDimension x="0" y="-6"/>
530 </Offset>
531 </Anchor>
532 </Anchors>
533 </CheckButton>
534 <CheckButton name="CT4_ActionButton7" inherits="CT_ActionBarButtonTemplate" id="7">
535 <Anchors>
536 <Anchor point="TOP" relativeTo="CT4_ActionButton6" relativePoint="BOTTOM">
537 <Offset>
538 <AbsDimension x="0" y="-6"/>
539 </Offset>
540 </Anchor>
541 </Anchors>
542 </CheckButton>
543 <CheckButton name="CT4_ActionButton8" inherits="CT_ActionBarButtonTemplate" id="8">
544 <Anchors>
545 <Anchor point="TOP" relativeTo="CT4_ActionButton7" relativePoint="BOTTOM">
546 <Offset>
547 <AbsDimension x="0" y="-6"/>
548 </Offset>
549 </Anchor>
550 </Anchors>
551 </CheckButton>
552 <CheckButton name="CT4_ActionButton9" inherits="CT_ActionBarButtonTemplate" id="9">
553 <Anchors>
554 <Anchor point="TOP" relativeTo="CT4_ActionButton8" relativePoint="BOTTOM">
555 <Offset>
556 <AbsDimension x="0" y="-6"/>
557 </Offset>
558 </Anchor>
559 </Anchors>
560 </CheckButton>
561 <CheckButton name="CT4_ActionButton10" inherits="CT_ActionBarButtonTemplate" id="10">
562 <Anchors>
563 <Anchor point="TOP" relativeTo="CT4_ActionButton9" relativePoint="BOTTOM">
564 <Offset>
565 <AbsDimension x="0" y="-6"/>
566 </Offset>
567 </Anchor>
568 </Anchors>
569 </CheckButton>
570 <CheckButton name="CT4_ActionButton11" inherits="CT_ActionBarButtonTemplate" id="11">
571 <Anchors>
572 <Anchor point="TOP" relativeTo="CT4_ActionButton10" relativePoint="BOTTOM">
573 <Offset>
574 <AbsDimension x="0" y="-6"/>
575 </Offset>
576 </Anchor>
577 </Anchors>
578 </CheckButton>
579 <CheckButton name="CT4_ActionButton12" inherits="CT_ActionBarButtonTemplate" id="12">
580 <Anchors>
581 <Anchor point="TOP" relativeTo="CT4_ActionButton11" relativePoint="BOTTOM">
582 <Offset>
583 <AbsDimension x="0" y="-6"/>
584 </Offset>
585 </Anchor>
586 </Anchors>
587 </CheckButton>
588 </Frames>
589 </Frame>
590 <Button name="CT_SidebarRight_Drag" toplevel="true" inherits="CT_DragTemplate" frameStrata="LOW" parent="CT_SidebarFrame2">
591 <Size>
592 <AbsDimension x="16" y="16"/>
593 </Size>
594 <Anchors>
595 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT">
596 <Offset>
597 <AbsDimension x="-15" y="-148"/>
598 </Offset>
599 </Anchor>
600 </Anchors>
601 <Scripts>
602 <OnLoad>
603 CT_LinkFrameDrag(CT4_ActionButton1, this, "TOP", "BOTTOM", 0, -6);
604 </OnLoad>
605 </Scripts>
606 </Button>
607 <Frame name="CT_HotbarTop" id="5" frameStrata="LOW" parent="UIParent" hidden="true">
608 <Frames>
609 <CheckButton name="CT5_ActionButton1" inherits="CT_ActionBarButtonTemplate" id="1">
610 <Anchors>
611 <Anchor point="BOTTOM" relativeTo="CT_ActionButton12" relativePoint="TOP">
612 <Offset>
613 <AbsDimension x="0" y="-6"/>
614 </Offset>
615 </Anchor>
616 </Anchors>
617 </CheckButton>
618 <CheckButton name="CT5_ActionButton2" inherits="CT_ActionBarButtonTemplate" id="2">
619 <Anchors>
620 <Anchor point="LEFT" relativeTo="CT5_ActionButton1" relativePoint="RIGHT">
621 <Offset>
622 <AbsDimension x="6" y="0"/>
623 </Offset>
624 </Anchor>
625 </Anchors>
626 </CheckButton>
627 <CheckButton name="CT5_ActionButton3" inherits="CT_ActionBarButtonTemplate" id="3">
628 <Anchors>
629 <Anchor point="LEFT" relativeTo="CT5_ActionButton2" relativePoint="RIGHT">
630 <Offset>
631 <AbsDimension x="6" y="0"/>
632 </Offset>
633 </Anchor>
634 </Anchors>
635 </CheckButton>
636 <CheckButton name="CT5_ActionButton4" inherits="CT_ActionBarButtonTemplate" id="4">
637 <Anchors>
638 <Anchor point="LEFT" relativeTo="CT5_ActionButton3" relativePoint="RIGHT">
639 <Offset>
640 <AbsDimension x="6" y="0"/>
641 </Offset>
642 </Anchor>
643 </Anchors>
644 </CheckButton>
645 <CheckButton name="CT5_ActionButton5" inherits="CT_ActionBarButtonTemplate" id="5">
646 <Anchors>
647 <Anchor point="LEFT" relativeTo="CT5_ActionButton4" relativePoint="RIGHT">
648 <Offset>
649 <AbsDimension x="6" y="0"/>
650 </Offset>
651 </Anchor>
652 </Anchors>
653 </CheckButton>
654 <CheckButton name="CT5_ActionButton6" inherits="CT_ActionBarButtonTemplate" id="6">
655 <Anchors>
656 <Anchor point="LEFT" relativeTo="CT5_ActionButton5" relativePoint="RIGHT">
657 <Offset>
658 <AbsDimension x="6" y="0"/>
659 </Offset>
660 </Anchor>
661 </Anchors>
662 </CheckButton>
663 <CheckButton name="CT5_ActionButton7" inherits="CT_ActionBarButtonTemplate" id="7">
664 <Anchors>
665 <Anchor point="LEFT" relativeTo="CT5_ActionButton6" relativePoint="RIGHT">
666 <Offset>
667 <AbsDimension x="6" y="0"/>
668 </Offset>
669 </Anchor>
670 </Anchors>
671 </CheckButton>
672 <CheckButton name="CT5_ActionButton8" inherits="CT_ActionBarButtonTemplate" id="8">
673 <Anchors>
674 <Anchor point="LEFT" relativeTo="CT5_ActionButton7" relativePoint="RIGHT">
675 <Offset>
676 <AbsDimension x="6" y="0"/>
677 </Offset>
678 </Anchor>
679 </Anchors>
680 </CheckButton>
681 <CheckButton name="CT5_ActionButton9" inherits="CT_ActionBarButtonTemplate" id="9">
682 <Anchors>
683 <Anchor point="LEFT" relativeTo="CT5_ActionButton8" relativePoint="RIGHT">
684 <Offset>
685 <AbsDimension x="6" y="0"/>
686 </Offset>
687 </Anchor>
688 </Anchors>
689 </CheckButton>
690 <CheckButton name="CT5_ActionButton10" inherits="CT_ActionBarButtonTemplate" id="10">
691 <Anchors>
692 <Anchor point="LEFT" relativeTo="CT5_ActionButton9" relativePoint="RIGHT">
693 <Offset>
694 <AbsDimension x="6" y="0"/>
695 </Offset>
696 </Anchor>
697 </Anchors>
698 </CheckButton>
699 <CheckButton name="CT5_ActionButton11" inherits="CT_ActionBarButtonTemplate" id="11">
700 <Anchors>
701 <Anchor point="LEFT" relativeTo="CT5_ActionButton10" relativePoint="RIGHT">
702 <Offset>
703 <AbsDimension x="6" y="0"/>
704 </Offset>
705 </Anchor>
706 </Anchors>
707 </CheckButton>
708 <CheckButton name="CT5_ActionButton12" inherits="CT_ActionBarButtonTemplate" id="12">
709 <Anchors>
710 <Anchor point="LEFT" relativeTo="CT5_ActionButton11" relativePoint="RIGHT">
711 <Offset>
712 <AbsDimension x="6" y="0"/>
713 </Offset>
714 </Anchor>
715 </Anchors>
716 </CheckButton>
717 </Frames>
718 </Frame>
719 <Button name="CT_HotbarTop_Drag" toplevel="true" inherits="CT_DragTemplate" frameStrata="LOW" parent="CT_HotbarTop">
720 <Size>
721 <AbsDimension x="16" y="16"/>
722 </Size>
723 <Anchors>
724 <Anchor point="BOTTOM" relativeTo="UIParent" relativePoint="BOTTOM">
725 <Offset>
726 <AbsDimension x="-28" y="140"/>
727 </Offset>
728 </Anchor>
729 </Anchors>
730 <Scripts>
731 <OnLoad>
732 CT_LinkFrameDrag(CT5_ActionButton1, this, "TOP", "BOTTOM", 0, -6);
733 </OnLoad>
734 </Scripts>
735 </Button>
736 <Frame name="CT_BarMod_GlobalFrame" parent="UIParent" hidden="false">
737 <Scripts>
738 <OnUpdate>
739 CT_GlobalFrame_OnUpdate(arg1);
740 </OnUpdate>
741 <OnLoad>
742 this.updateCDC = 0;
743 this.elapsed = 0;
744 this.update = 0;
745 this:RegisterEvent("UNIT_PET");
746 this:RegisterEvent("PLAYER_ENTERING_WORLD");
747 this:RegisterEvent("VARIABLES_LOADED");
748 this:RegisterEvent("PARTY_MEMBERS_CHANGED");
749 for i = 1, 12, 1 do
750 getglobal("ActionButton" .. i).showgrid = 2;
751 end
752 </OnLoad>
753 <OnEvent>
754 if ( event == "PARTY_MEMBERS_CHANGED" or ( event == "UNIT_PET" and arg1 == "player" ) ) then
755 CT_CheckPartyMove();
756 elseif ( event == "PLAYER_ENTERING_WORLD" ) then
757 CT_BarMod_EnteredWorld = 1;
758 if ( CT_BarMod_RequiresScalingUpdate ) then
759 CT_BarMod_SetCCScaling(CT_BarMod_RequiresScalingUpdate);
760 end
761 CT_BarMod_UpdateAllHotkeys();
762 else
763 CT_BarMod_CheckRotations();
764 end
765 </OnEvent>
766 </Scripts>
767 </Frame>
768 <GameTooltip name="CTTooltip" inherits="GameTooltipTemplate">
769 <Scripts>
770 <OnLoad>
771 this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
772 this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
773 this:SetOwner(WorldFrame, "ANCHOR_NONE");
774 </OnLoad>
775 </Scripts>
776 </GameTooltip>
777 <Button name="CT_PetBar_Drag" frameStrata="MEDIUM" parent="UIParent" hidden="true" movable="true" toplevel="true">
778 <Size>
779 <AbsDimension x="16" y="16"/>
780 </Size>
781 <Anchors>
782 <Anchor point="BOTTOMLEFT" relativeTo="UIParent" relativePoint="BOTTOM">
783 <Offset>
784 <AbsDimension x="-453" y="82"/>
785 </Offset>
786 </Anchor>
787 </Anchors>
788 <Scripts>
789 <OnEnter>
790 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
791 GameTooltip:SetText("Left-click to drag.\nRight-click to change orientation.");
792 </OnEnter>
793 <OnLeave>
794 GameTooltip:Hide();
795 </OnLeave>
796 <OnMouseDown>
797 CT_Bar_DragFrame_OnMD();
798 </OnMouseDown>
799 <OnMouseUp>
800 this:StopMovingOrSizing();
801 </OnMouseUp>
802 <OnEvent>
803 if ( event == "VARIABLES_LOADED" and CT_PetBar_DragFrame_Orientation == "V" ) then
804 CT_Bar_DragFrame_OnMD(1);
805 end
806 this:SetFrameLevel(4);
807 </OnEvent>
808 <OnLoad>
809 this:SetFrameLevel(4);
810 this:RegisterEvent("VARIABLES_LOADED");
811 CT_LinkFrameDrag(PetActionButton1, this, "TOPLEFT", "BOTTOMRIGHT", 2, 2);
812 </OnLoad>
813 </Scripts>
814 <NormalTexture file="Interface\AddOns\CT_MasterMod\Images\DragButton"/>
815 </Button>
816 <Button name="CT_BABar_Drag" frameStrata="LOW" parent="UIParent" hidden="true" movable="true" toplevel="true">
817 <Size>
818 <AbsDimension x="16" y="16"/>
819 </Size>
820 <Anchors>
821 <Anchor point="BOTTOMLEFT" relativeTo="UIParent" relativePoint="BOTTOM">
822 <Offset>
823 <AbsDimension x="-461" y="88"/>
824 </Offset>
825 </Anchor>
826 </Anchors>
827 <Scripts>
828 <OnEnter>
829 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
830 GameTooltip:SetText("Left-click to drag.\nRight-click to change orientation.");
831 </OnEnter>
832 <OnLeave>
833 GameTooltip:Hide();
834 </OnLeave>
835 <OnMouseDown>
836 CT_Bar_DragFrame_OnMD();
837 </OnMouseDown>
838 <OnMouseUp>
839 this:StopMovingOrSizing();
840 </OnMouseUp>
841 <OnEvent>
842 if ( event == "VARIABLES_LOADED" and CT_BABar_DragFrame_Orientation == "V" ) then
843 CT_Bar_DragFrame_OnMD(1);
844 end
845  
846 </OnEvent>
847 <OnLoad>
848 this:SetFrameLevel(4);
849 this:RegisterEvent("VARIABLES_LOADED");
850 CT_LinkFrameDrag(ShapeshiftButton1, this, "TOPLEFT", "TOPLEFT", 15, -15);
851 </OnLoad>
852 </Scripts>
853 <NormalTexture file="Interface\AddOns\CT_MasterMod\Images\DragButton"/>
854 </Button>
855 <Frame name="CT_CooldownCountTemplate" virtual="true">
856 <Anchors>
857 <Anchor point="TOPLEFT"/>
858 <Anchor point="BOTTOMRIGHT"/>
859 </Anchors>
860 <Layers>
861 <Layer level="OVERLAY">
862 <FontString name="$parentCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER" justifyV="CENTER">
863 <Size>
864 <AbsDimension x="48" y="32"/>
865 </Size>
866 <Anchors>
867 <Anchor point="CENTER"/>
868 </Anchors>
869 </FontString>
870 </Layer>
871 </Layers>
872 <Scripts>
873 <OnShow>
874 if ( this.scale ) then
875 this:SetScale(this.scale);
876 end
877 </OnShow>
878 </Scripts>
879 </Frame>
880 <Frame name="ActionButton1CD" inherits="CT_CooldownCountTemplate" parent="ActionButton1"/>
881 <Frame name="ActionButton2CD" inherits="CT_CooldownCountTemplate" parent="ActionButton2"/>
882 <Frame name="ActionButton3CD" inherits="CT_CooldownCountTemplate" parent="ActionButton3"/>
883 <Frame name="ActionButton4CD" inherits="CT_CooldownCountTemplate" parent="ActionButton4"/>
884 <Frame name="ActionButton5CD" inherits="CT_CooldownCountTemplate" parent="ActionButton5"/>
885 <Frame name="ActionButton6CD" inherits="CT_CooldownCountTemplate" parent="ActionButton6"/>
886 <Frame name="ActionButton7CD" inherits="CT_CooldownCountTemplate" parent="ActionButton7"/>
887 <Frame name="ActionButton8CD" inherits="CT_CooldownCountTemplate" parent="ActionButton8"/>
888 <Frame name="ActionButton9CD" inherits="CT_CooldownCountTemplate" parent="ActionButton9"/>
889 <Frame name="ActionButton10CD" inherits="CT_CooldownCountTemplate" parent="ActionButton10"/>
890 <Frame name="ActionButton11CD" inherits="CT_CooldownCountTemplate" parent="ActionButton11"/>
891 <Frame name="ActionButton12CD" inherits="CT_CooldownCountTemplate" parent="ActionButton12"/>
892 <Frame name="BonusActionButton1CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton1"/>
893 <Frame name="BonusActionButton2CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton2"/>
894 <Frame name="BonusActionButton3CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton3"/>
895 <Frame name="BonusActionButton4CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton4"/>
896 <Frame name="BonusActionButton5CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton5"/>
897 <Frame name="BonusActionButton6CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton6"/>
898 <Frame name="BonusActionButton7CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton7"/>
899 <Frame name="BonusActionButton8CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton8"/>
900 <Frame name="BonusActionButton9CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton9"/>
901 <Frame name="BonusActionButton10CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton10"/>
902 <Frame name="BonusActionButton11CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton11"/>
903 <Frame name="BonusActionButton12CD" inherits="CT_CooldownCountTemplate" parent="BonusActionButton12"/>
904 <Frame name="CT_CDCFrame" hidden="true" movable="true" parent="UIParent">
905 <Size>
906 <AbsDimension x="450" y="275"/>
907 </Size>
908  
909 <Anchors>
910 <Anchor point="CENTER"/>
911 </Anchors>
912  
913 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
914 <EdgeSize>
915 <AbsValue val="16"/>
916 </EdgeSize>
917 <TileSize>
918 <AbsValue val="16"/>
919 </TileSize>
920 <BackgroundInsets>
921 <AbsInset left="5" right="5" top="5" bottom="5"/>
922 </BackgroundInsets>
923 </Backdrop>
924  
925 <Layers>
926 <Layer level="ARTWORK">
927 <FontString name="$parentTitle" text="Cooldowns" inherits="GameFontNormal">
928 <Anchors>
929 <Anchor point="TOP">
930 <Offset>
931 <AbsDimension x="0" y="-5"/>
932 </Offset>
933 </Anchor>
934 </Anchors>
935 </FontString>
936 <FontString name="$parentText" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormal">
937 <Anchors>
938 <Anchor point="TOPLEFT">
939 <Offset>
940 <AbsDimension x="5" y="-20"/>
941 </Offset>
942 </Anchor>
943 </Anchors>
944 </FontString>
945 </Layer>
946 </Layers>
947 <Scripts>
948 <OnLoad>
949 this:SetBackdropColor(0, 0, 1, 0.3);
950 this:SetBackdropBorderColor(0, 0, 1, 0.3);
951 </OnLoad>
952 </Scripts>
953 </Frame>
954 </Ui>