vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui> |
2 | <!-- template for the grey buttons at bottom of window --> |
||
3 | <Button name="CliqueButtonTemplate" inherits="UIPanelButtonGrayTemplate" virtual="true"> |
||
4 | <Size> |
||
5 | <AbsDimension x="55" y="28"/> |
||
6 | </Size> |
||
7 | <Scripts> |
||
8 | <OnClick> |
||
9 | Clique:ButtonOnClick() |
||
10 | </OnClick> |
||
11 | </Scripts> |
||
12 | </Button> |
||
13 | |||
14 | <!-- template, used in list and edit, for the icon + name + rank + mouse binding --> |
||
15 | <Button name="CliqueEntryTemplate" virtual="true"> |
||
16 | <Size> |
||
17 | <AbsDimension x="350" y="48"/> |
||
18 | </Size> |
||
19 | <Layers> |
||
20 | <Layer level="ARTWORK"> |
||
21 | <Texture name="$parentIcon"> |
||
22 | <Size> |
||
23 | <AbsDimension x="32" y="32"/> |
||
24 | </Size> |
||
25 | <Anchors> |
||
26 | <Anchor point="LEFT"> |
||
27 | <Offset> |
||
28 | <AbsDimension x="2" y="0"/> |
||
29 | </Offset> |
||
30 | </Anchor> |
||
31 | </Anchors> |
||
32 | </Texture> |
||
33 | <FontString name="$parentName" font="GameFontNormal" justifyH="LEFT"> |
||
34 | <Size> |
||
35 | <AbsDimension x="110" y="32"/> |
||
36 | </Size> |
||
37 | <Anchors> |
||
38 | <Anchor point="TOPLEFT"> |
||
39 | <Offset> |
||
40 | <AbsDimension x="40" y="-2"/> |
||
41 | </Offset> |
||
42 | </Anchor> |
||
43 | </Anchors> |
||
44 | </FontString> |
||
45 | <FontString name="$parentBinding" font="QuestFontNormalSmall" justifyH="LEFT"> |
||
46 | <Color r="0.1" g="0.05" b="0"/> |
||
47 | <Size> |
||
48 | <AbsDimension x="178" y="16"/> |
||
49 | </Size> |
||
50 | <Anchors> |
||
51 | <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT"> |
||
52 | <Offset> |
||
53 | <AbsDimension x="0" y="4"/> |
||
54 | </Offset> |
||
55 | </Anchor> |
||
56 | </Anchors> |
||
57 | </FontString> |
||
58 | <FontString name="$parentRank" font="QuestFontNormalSmall" justifyH="RIGHT"> |
||
59 | <Color r=".1" g="0.05" b="0"/> |
||
60 | <Size> |
||
61 | <AbsDimension x="68" y="16"/> |
||
62 | </Size> |
||
63 | <Anchors> |
||
64 | <Anchor point="TOPRIGHT"> |
||
65 | <Offset> |
||
66 | <AbsDimension x="-15" y="-8"/> |
||
67 | </Offset> |
||
68 | </Anchor> |
||
69 | </Anchors> |
||
70 | </FontString> |
||
71 | </Layer> |
||
72 | <Layer level="BACKGROUND"> |
||
73 | <!-- HighlightTextures show over buttons, instead of creating a new frame, a custom texture is used underneath --> |
||
74 | <Texture name="$parentHighlight" file="Interface\ChatFrame\ChatFrameBackground" hidden="true"> |
||
75 | <Gradient orientation="VERTICAL"> |
||
76 | <MaxColor r=".15" g=".15" b=".15" a=".75"/> |
||
77 | <MinColor r=".85" g=".85" b=".85" a=".5"/> |
||
78 | </Gradient> |
||
79 | </Texture> |
||
80 | </Layer> |
||
81 | </Layers> |
||
82 | <Scripts> |
||
83 | <OnEnter> |
||
84 | getglobal(this:GetName().."Highlight"):Show() |
||
85 | </OnEnter> |
||
86 | <OnLeave> |
||
87 | if not this.lockedHighlight then |
||
88 | getglobal(this:GetName().."Highlight"):Hide() |
||
89 | end |
||
90 | </OnLeave> |
||
91 | </Scripts> |
||
92 | </Button> |
||
93 | |||
94 | <!-- CliqueListFrame-specific use of CliqueEntryTemplate --> |
||
95 | <Button name="CliqueListTemplate" inherits="CliqueEntryTemplate" virtual="true"> |
||
96 | <Scripts> |
||
97 | <OnClick> |
||
98 | Clique:ListOnClick() |
||
99 | </OnClick> |
||
100 | <OnDoubleClick> |
||
101 | Clique:ListOnDoubleClick() |
||
102 | </OnDoubleClick> |
||
103 | </Scripts> |
||
104 | </Button> |
||
105 | |||
106 | <CheckButton name="CliqueIconTemplate" virtual="true"> |
||
107 | <Size> |
||
108 | <AbsDimension x="36" y="36"/> |
||
109 | </Size> |
||
110 | <Layers> |
||
111 | <Layer level="BACKGROUND"> |
||
112 | <Texture file="Interface\Buttons\UI-EmptySlot-Disabled"> |
||
113 | <Size> |
||
114 | <AbsDimension x="64" y="64"/> |
||
115 | </Size> |
||
116 | <Anchors> |
||
117 | <Anchor point="CENTER"> |
||
118 | <Offset> |
||
119 | <AbsDimension x="0" y="-1"/> |
||
120 | </Offset> |
||
121 | </Anchor> |
||
122 | </Anchors> |
||
123 | </Texture> |
||
124 | </Layer> |
||
125 | </Layers> |
||
126 | <NormalTexture name="$parentIcon"> |
||
127 | <Size> |
||
128 | <AbsDimension x="36" y="36"/> |
||
129 | </Size> |
||
130 | <Anchors> |
||
131 | <Anchor point="CENTER"> |
||
132 | <Offset> |
||
133 | <AbsDimension x="0" y="-1"/> |
||
134 | </Offset> |
||
135 | </Anchor> |
||
136 | </Anchors> |
||
137 | </NormalTexture> |
||
138 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
139 | <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/> |
||
140 | <Scripts> |
||
141 | <OnClick> |
||
142 | Clique:ClickSpellIcon() |
||
143 | </OnClick> |
||
144 | </Scripts> |
||
145 | </CheckButton> |
||
146 | |||
147 | <!-- Parent frame. Contains only background and three sub-frames: CliqueHelpFrame, CliqueListFrame and CliqueEditFrame --> |
||
148 | <Frame name="CliqueFrame" parent="SpellBookFrame" hidden="true"> |
||
149 | <Size> |
||
150 | <AbsDimension x="425" y="375"/> |
||
151 | </Size> |
||
152 | <Anchors> |
||
153 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
154 | <Offset> |
||
155 | <AbsDimension x="15" y="-7"/> |
||
156 | </Offset> |
||
157 | </Anchor> |
||
158 | </Anchors> |
||
159 | <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
||
160 | <BackgroundInsets> |
||
161 | <AbsInset left="4" right="4" top="4" bottom="4" /> |
||
162 | </BackgroundInsets> |
||
163 | <EdgeSize> |
||
164 | <AbsValue val="16" /> |
||
165 | </EdgeSize> |
||
166 | </Backdrop> |
||
167 | <Layers> |
||
168 | <Layer level="BACKGROUND"> |
||
169 | <Texture name="CliqueBackdropLeft" file="Interface\Stationery\StationeryTest1"> |
||
170 | <Size> |
||
171 | <AbsDimension x="383" y="365"/> |
||
172 | </Size> |
||
173 | <Anchors> |
||
174 | <Anchor point="TOPLEFT"> |
||
175 | <Offset> |
||
176 | <AbsDimension x="4" y="-6"/> |
||
177 | </Offset> |
||
178 | </Anchor> |
||
179 | </Anchors> |
||
180 | </Texture> |
||
181 | <Texture name="CliqueBackdropRight" file="Interface\Stationery\StationeryTest2"> |
||
182 | <Size> |
||
183 | <AbsDimension x="48" y="365"/> |
||
184 | </Size> |
||
185 | <Anchors> |
||
186 | <Anchor point="TOPLEFT" relativeTo="CliqueBackdropLeft" relativePoint="TOPRIGHT"/> |
||
187 | </Anchors> |
||
188 | </Texture> |
||
189 | </Layer> |
||
190 | </Layers> |
||
191 | <Frames> |
||
192 | |||
193 | <!-- CliqueListFrame is the sub-frame that lists the clique spells with delete/new/edit/ok buttons --> |
||
194 | <Frame name="CliqueListFrame"> |
||
195 | <Size> |
||
196 | <AbsDimension x="351" y="330"/> |
||
197 | </Size> |
||
198 | <Anchors> |
||
199 | <Anchor point="CENTER"> |
||
200 | <Offset> |
||
201 | <AbsDimension x="0" y="-10"/> |
||
202 | </Offset> |
||
203 | </Anchor> |
||
204 | </Anchors> |
||
205 | <Frames> |
||
206 | <Frame name="CliqueDropDown" inherits="UIDropDownMenuTemplate" id="1"> |
||
207 | <Anchors> |
||
208 | <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT"> |
||
209 | <Offset> |
||
210 | <AbsDimension x="-85" y="28"/> |
||
211 | </Offset> |
||
212 | </Anchor> |
||
213 | </Anchors> |
||
214 | <Layers> |
||
215 | <Layer level="OVERLAY"> |
||
216 | <FontString inherits="GameFontHighlightSmall" text="Click Set:"> |
||
217 | <Anchors> |
||
218 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
219 | <Offset> |
||
220 | <AbsDimension x="5" y="3"/> |
||
221 | </Offset> |
||
222 | </Anchor> |
||
223 | </Anchors> |
||
224 | </FontString> |
||
225 | </Layer> |
||
226 | </Layers> |
||
227 | <Scripts> |
||
228 | <OnLoad> |
||
229 | --Clique:DropDown_OnLoad(); |
||
230 | </OnLoad> |
||
231 | <OnShow> |
||
232 | Clique:DropDown_OnShow(); |
||
233 | </OnShow> |
||
234 | </Scripts> |
||
235 | </Frame> |
||
236 | <Button name="CliqueList1" inherits="CliqueListTemplate" id="1"> |
||
237 | <Anchors> |
||
238 | <Anchor point="TOPLEFT"> |
||
239 | <Offset> |
||
240 | <AbsDimension x="0" y="-4"/> |
||
241 | </Offset> |
||
242 | </Anchor> |
||
243 | </Anchors> |
||
244 | </Button> |
||
245 | <Button name="CliqueList2" inherits="CliqueListTemplate" id="2"> |
||
246 | <Anchors> |
||
247 | <Anchor point="TOPLEFT" relativeTo="CliqueList1" relativePoint="BOTTOMLEFT"/> |
||
248 | </Anchors> |
||
249 | </Button> |
||
250 | <Button name="CliqueList3" inherits="CliqueListTemplate" id="3"> |
||
251 | <Anchors> |
||
252 | <Anchor point="TOPLEFT" relativeTo="CliqueList2" relativePoint="BOTTOMLEFT"/> |
||
253 | </Anchors> |
||
254 | </Button> |
||
255 | <Button name="CliqueList4" inherits="CliqueListTemplate" id="4"> |
||
256 | <Anchors> |
||
257 | <Anchor point="TOPLEFT" relativeTo="CliqueList3" relativePoint="BOTTOMLEFT"/> |
||
258 | </Anchors> |
||
259 | </Button> |
||
260 | <Button name="CliqueList5" inherits="CliqueListTemplate" id="5"> |
||
261 | <Anchors> |
||
262 | <Anchor point="TOPLEFT" relativeTo="CliqueList4" relativePoint="BOTTOMLEFT"/> |
||
263 | </Anchors> |
||
264 | </Button> |
||
265 | <Button name="CliqueList6" inherits="CliqueListTemplate" id="6"> |
||
266 | <Anchors> |
||
267 | <Anchor point="TOPLEFT" relativeTo="CliqueList5" relativePoint="BOTTOMLEFT"/> |
||
268 | </Anchors> |
||
269 | </Button> |
||
270 | <ScrollFrame name="CliqueListScroll" inherits="FauxScrollFrameTemplate"> |
||
271 | <Anchors> |
||
272 | <Anchor point="TOPLEFT" relativeTo="CliqueList1" relativePoint="TOPLEFT"/> |
||
273 | <Anchor point="BOTTOMRIGHT" relativeTo="CliqueList6" relativePoint="BOTTOMRIGHT"/> |
||
274 | </Anchors> |
||
275 | <Layers> |
||
276 | <Layer level="BACKGROUND"> |
||
277 | <Texture file="Interface\ChatFrame\ChatFrameBackground"> |
||
278 | <Anchors> |
||
279 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
280 | <Offset> |
||
281 | <AbsDimension x="14" y="0"/> |
||
282 | </Offset> |
||
283 | </Anchor> |
||
284 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
285 | <Offset> |
||
286 | <AbsDimension x="23" y="0"/> |
||
287 | </Offset> |
||
288 | </Anchor> |
||
289 | </Anchors> |
||
290 | <Gradient> |
||
291 | <MaxColor r="0.15" g="0.15" b="0.15" a="1"/> |
||
292 | <MinColor r="0.5" g="0.25" b="0.05" a="0"/> |
||
293 | </Gradient> |
||
294 | </Texture> |
||
295 | <Texture file="Interface\ChatFrame\ChatFrameBackground"> |
||
296 | <Anchors> |
||
297 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
298 | <Offset> |
||
299 | <AbsDimension x="4" y="0"/> |
||
300 | </Offset> |
||
301 | </Anchor> |
||
302 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
303 | <Offset> |
||
304 | <AbsDimension x="14" y="0"/> |
||
305 | </Offset> |
||
306 | </Anchor> |
||
307 | </Anchors> |
||
308 | <Gradient> |
||
309 | <MinColor r="0.15" g="0.15" b="0.15" a="1"/> |
||
310 | <MaxColor r="0.5" g="0.25" b="0.05" a="0"/> |
||
311 | </Gradient> |
||
312 | </Texture> |
||
313 | </Layer> |
||
314 | </Layers> |
||
315 | <Scripts> |
||
316 | <OnVerticalScroll> |
||
317 | FauxScrollFrame_OnVerticalScroll(48, Clique.ListScrollUpdate) |
||
318 | </OnVerticalScroll> |
||
319 | <OnShow> |
||
320 | Clique.ListScrollUpdate() |
||
321 | </OnShow> |
||
322 | </Scripts> |
||
323 | </ScrollFrame> |
||
324 | <Button name="CliqueButtonDelete" inherits="CliqueButtonTemplate" text="Delete"> |
||
325 | <Anchors> |
||
326 | <Anchor point="BOTTOMLEFT"> |
||
327 | <Offset> |
||
328 | <AbsDimension x="67" y="0"/> |
||
329 | </Offset> |
||
330 | </Anchor> |
||
331 | </Anchors> |
||
332 | </Button> |
||
333 | <Button name="CliqueButtonMax" inherits="CliqueButtonTemplate" text="Max"> |
||
334 | <Anchors> |
||
335 | <Anchor point="TOPRIGHT" relativeTo="CliqueButtonDelete" relativePoint="TOPLEFT"> |
||
336 | <Offset> |
||
337 | <AbsDimension x="-4" y="0"/> |
||
338 | </Offset> |
||
339 | </Anchor> |
||
340 | </Anchors> |
||
341 | </Button> |
||
342 | <Button name="CliqueButtonNew" inherits="CliqueButtonTemplate" text="New"> |
||
343 | <Anchors> |
||
344 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonDelete" relativePoint="TOPRIGHT"> |
||
345 | <Offset> |
||
346 | <AbsDimension x="4" y="0"/> |
||
347 | </Offset> |
||
348 | </Anchor> |
||
349 | </Anchors> |
||
350 | </Button> |
||
351 | <Button name="CliqueButtonEdit" inherits="CliqueButtonTemplate" text="Edit"> |
||
352 | <Anchors> |
||
353 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonNew" relativePoint="TOPRIGHT"> |
||
354 | <Offset> |
||
355 | <AbsDimension x="4" y="0"/> |
||
356 | </Offset> |
||
357 | </Anchor> |
||
358 | </Anchors> |
||
359 | </Button> |
||
360 | <Button name="CliqueButtonOk" inherits="CliqueButtonTemplate" text="Ok"> |
||
361 | <Anchors> |
||
362 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonEdit" relativePoint="TOPRIGHT"> |
||
363 | <Offset> |
||
364 | <AbsDimension x="4" y="0"/> |
||
365 | </Offset> |
||
366 | </Anchor> |
||
367 | </Anchors> |
||
368 | </Button> |
||
369 | <Button name="CliqueButtonHelp" inherits="CliqueButtonTemplate" text="Help"> |
||
370 | <Anchors> |
||
371 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonOk" relativePoint="TOPRIGHT"> |
||
372 | <Offset> |
||
373 | <AbsDimension x="4" y="0"/> |
||
374 | </Offset> |
||
375 | </Anchor> |
||
376 | </Anchors> |
||
377 | </Button> |
||
378 | </Frames> |
||
379 | </Frame> |
||
380 | |||
381 | <!-- CliqueEditFrame is the sub-frame that has the multiline editbox to edit the script --> |
||
382 | <Frame name="CliqueEditFrame" hidden="true"> |
||
383 | <Size> |
||
384 | <AbsDimension x="351" y="330"/> |
||
385 | </Size> |
||
386 | <Anchors> |
||
387 | <Anchor point="CENTER"/> |
||
388 | </Anchors> |
||
389 | <Layers> |
||
390 | <Layer level="ARTWORK"> |
||
391 | <FontString name="CliqueEditHint" inherits="SubSpellFont" text="Use a click combo above to change its click cast."> |
||
392 | <Size> |
||
393 | <AbsDimension x="351" y="16"/> |
||
394 | </Size> |
||
395 | <Color r="0" g="0" b="0"/> |
||
396 | <Anchors> |
||
397 | <Anchor point="TOP"> |
||
398 | <Offset> |
||
399 | <AbsDimension x="0" y="-60"/> |
||
400 | </Offset> |
||
401 | </Anchor> |
||
402 | </Anchors> |
||
403 | </FontString> |
||
404 | </Layer> |
||
405 | </Layers> |
||
406 | <Frames> |
||
407 | <Button name="CliqueEditIcon"> |
||
408 | <Size> |
||
409 | <AbsDimension x="46" y="46"/> |
||
410 | </Size> |
||
411 | <Anchors> |
||
412 | <Anchor point="TOP"> |
||
413 | <Offset> |
||
414 | <AbsDimension x="-110" y="-8"/> |
||
415 | </Offset> |
||
416 | </Anchor> |
||
417 | </Anchors> |
||
418 | <Layers> |
||
419 | <Layer level="ARTWORK"> |
||
420 | <Texture name="$parentTexture"> |
||
421 | <Size> |
||
422 | <AbsDimension x="46" y="46"/> |
||
423 | </Size> |
||
424 | <Anchors> |
||
425 | <Anchor point="CENTER"/> |
||
426 | </Anchors> |
||
427 | </Texture> |
||
428 | </Layer> |
||
429 | </Layers> |
||
430 | <Scripts> |
||
431 | <OnMouseDown> |
||
432 | CliqueTextEditBox:Hide() |
||
433 | CliqueIconSelectFrame:Show() |
||
434 | </OnMouseDown> |
||
435 | </Scripts> |
||
436 | <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/> |
||
437 | </Button> |
||
438 | |||
439 | <Button name="CliqueEditBinding"> |
||
440 | <Size> |
||
441 | <AbsDimension x="225" y="32"/> |
||
442 | </Size> |
||
443 | <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
||
444 | <BackgroundInsets> |
||
445 | <AbsInset left="4" right="4" top="4" bottom="4" /> |
||
446 | </BackgroundInsets> |
||
447 | <EdgeSize> |
||
448 | <AbsValue val="16" /> |
||
449 | </EdgeSize> |
||
450 | </Backdrop> |
||
451 | <Anchors> |
||
452 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CliqueEditIcon"> |
||
453 | <Offset> |
||
454 | <AbsDimension x="15" y="0"/> |
||
455 | </Offset> |
||
456 | </Anchor> |
||
457 | </Anchors> |
||
458 | <Layers> |
||
459 | <Layer level="ARTWORK"> |
||
460 | <FontString name="$parentName" font="GameFontNormal" justifyH="CENTER" text="Alt+Control+Shift+LeftButton"> |
||
461 | <Size> |
||
462 | <AbsDimension x="225" y="32"/> |
||
463 | </Size> |
||
464 | <Anchors> |
||
465 | <Anchor point="CENTER"> |
||
466 | <Offset> |
||
467 | <AbsDimension x="0" y="0"/> |
||
468 | </Offset> |
||
469 | </Anchor> |
||
470 | </Anchors> |
||
471 | </FontString> |
||
472 | </Layer> |
||
473 | <Layer level="BACKGROUND"> |
||
474 | <!-- HighlightTextures show over buttons, instead of creating a new frame, a custom texture is used underneath --> |
||
475 | <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" hidden="true"> |
||
476 | <Anchors> |
||
477 | <Anchor point="TOPLEFT"> |
||
478 | <Offset> |
||
479 | <AbsDimension x="7" y="-7"/> |
||
480 | </Offset> |
||
481 | </Anchor> |
||
482 | <Anchor point="BOTTOMRIGHT"> |
||
483 | <Offset> |
||
484 | <AbsDimension x="-7" y="7"/> |
||
485 | </Offset> |
||
486 | </Anchor> |
||
487 | </Anchors> |
||
488 | </Texture> |
||
489 | </Layer> |
||
490 | </Layers> |
||
491 | <Scripts> |
||
492 | <OnLoad> |
||
493 | this:SetBackdropBorderColor(.5,.5,.5,1) |
||
494 | </OnLoad> |
||
495 | <OnEnter> |
||
496 | getglobal(this:GetName().."Highlight"):Show() |
||
497 | </OnEnter> |
||
498 | <OnLeave> |
||
499 | getglobal(this:GetName().."Highlight"):Hide() |
||
500 | </OnLeave> |
||
501 | <OnMouseDown> |
||
502 | Clique:EditSelectedBinding() |
||
503 | </OnMouseDown> |
||
504 | </Scripts> |
||
505 | </Button> |
||
506 | |||
507 | <!-- The entry we're editing --> |
||
508 | <!-- |
||
509 | <Button name="CliqueEditEntry" inherits="CliqueEntryTemplate"> |
||
510 | <Anchors> |
||
511 | <Anchor point="TOP"> |
||
512 | <Offset> |
||
513 | <AbsDimension x="0" y="-8"/> |
||
514 | </Offset> |
||
515 | </Anchor> |
||
516 | </Anchors> |
||
517 | <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
||
518 | <BackgroundInsets> |
||
519 | <AbsInset left="4" right="4" top="4" bottom="4" /> |
||
520 | </BackgroundInsets> |
||
521 | <EdgeSize> |
||
522 | <AbsValue val="16" /> |
||
523 | </EdgeSize> |
||
524 | </Backdrop> |
||
525 | <Scripts> |
||
526 | <OnMouseDown> |
||
527 | Clique:EditSelectedBinding() |
||
528 | </OnMouseDown> |
||
529 | </Scripts> |
||
530 | </Button> |
||
531 | --> |
||
532 | |||
533 | <EditBox name="CliqueNameEditBox" letters="150" historyLines="0" autoFocus="false"> |
||
534 | <Size> |
||
535 | <AbsDimension x="300" y="20"/> |
||
536 | </Size> |
||
537 | <Anchors> |
||
538 | <Anchor point="TOPLEFT" relativeTo="CliqueEditHint" relativePoint="BOTTOMLEFT"> |
||
539 | <Offset> |
||
540 | <AbsDimension x="55" y="0"/> |
||
541 | </Offset> |
||
542 | </Anchor> |
||
543 | </Anchors> |
||
544 | <Scripts> |
||
545 | <OnEditFocusGained> |
||
546 | if this.readOnly then |
||
547 | this:ClearFocus() |
||
548 | end |
||
549 | </OnEditFocusGained> |
||
550 | <OnEscapePressed> |
||
551 | Clique:EditCancel() |
||
552 | </OnEscapePressed> |
||
553 | <OnTabPressed> |
||
554 | CliqueEditBox:SetFocus() |
||
555 | </OnTabPressed> |
||
556 | </Scripts> |
||
557 | <Layers> |
||
558 | <Layer level="BACKGROUND"> |
||
559 | <FontString name="CliqueNameLabel" inherits="GameFontNormal" justifyH="LEFT" text="Name:"> |
||
560 | <Anchors> |
||
561 | <Anchor point="LEFT"> |
||
562 | <Offset> |
||
563 | <AbsDimension x="-50" y="0"/> |
||
564 | </Offset> |
||
565 | </Anchor> |
||
566 | </Anchors> |
||
567 | </FontString> |
||
568 | <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border"> |
||
569 | <Size> |
||
570 | <AbsDimension x="8" y="20"/> |
||
571 | </Size> |
||
572 | <Anchors> |
||
573 | <Anchor point="TOPLEFT"> |
||
574 | <Offset><AbsDimension x="-5" y="0"/></Offset> |
||
575 | </Anchor> |
||
576 | </Anchors> |
||
577 | <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/> |
||
578 | </Texture> |
||
579 | <Texture name="$parentRight" file="Interface\Common\Common-Input-Border"> |
||
580 | <Size> |
||
581 | <AbsDimension x="8" y="20"/> |
||
582 | </Size> |
||
583 | <Anchors> |
||
584 | <Anchor point="RIGHT"> |
||
585 | <Offset><AbsDimension x="-10" y="0"/></Offset> |
||
586 | </Anchor> |
||
587 | </Anchors> |
||
588 | <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/> |
||
589 | </Texture> |
||
590 | <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border"> |
||
591 | <Size> |
||
592 | <AbsDimension x="10" y="20"/> |
||
593 | </Size> |
||
594 | <Anchors> |
||
595 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
596 | <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/> |
||
597 | </Anchors> |
||
598 | <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/> |
||
599 | </Texture> |
||
600 | </Layer> |
||
601 | </Layers> |
||
602 | <FontString inherits="GameFontHighlight"/> |
||
603 | <TextInsets left="2" right="10" top="0" bottom="2"/> |
||
604 | </EditBox> |
||
605 | |||
606 | <Button name="CliqueButtonSave" inherits="CliqueButtonTemplate" text="Save"> |
||
607 | <Anchors> |
||
608 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonDelete" relativePoint="TOPRIGHT"> |
||
609 | <Offset> |
||
610 | <AbsDimension x="4" y="0"/> |
||
611 | </Offset> |
||
612 | </Anchor> |
||
613 | </Anchors> |
||
614 | </Button> |
||
615 | <Button name="CliqueButtonCancel" inherits="CliqueButtonTemplate" text="Cancel"> |
||
616 | <Anchors> |
||
617 | <Anchor point="TOPLEFT" relativeTo="CliqueButtonSave" relativePoint="TOPRIGHT"> |
||
618 | <Offset> |
||
619 | <AbsDimension x="4" y="0"/> |
||
620 | </Offset> |
||
621 | </Anchor> |
||
622 | </Anchors> |
||
623 | </Button> |
||
624 | |||
625 | <Frame name="CliqueTextEditBox"> <!-- anonymous frame for layering editbox --> |
||
626 | <Size> |
||
627 | <AbsDimension x="348" y="205"/> |
||
628 | </Size> |
||
629 | <Anchors> |
||
630 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="CliqueNameLabel"> |
||
631 | <Offset> |
||
632 | <AbsDimension x="0" y="-10"/> |
||
633 | </Offset> |
||
634 | </Anchor> |
||
635 | </Anchors> |
||
636 | |||
637 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
638 | <BackgroundInsets> |
||
639 | <AbsInset left="4" right="4" top="4" bottom="4" /> |
||
640 | </BackgroundInsets> |
||
641 | <TileSize> |
||
642 | <AbsValue val="16" /> |
||
643 | </TileSize> |
||
644 | <EdgeSize> |
||
645 | <AbsValue val="16" /> |
||
646 | </EdgeSize> |
||
647 | </Backdrop> |
||
648 | |||
649 | <Frames> |
||
650 | <!-- The multi-line editbox --> |
||
651 | <ScrollFrame name="CliqueEditScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
652 | <Size> |
||
653 | <AbsDimension x="310" y="190"/> |
||
654 | </Size> |
||
655 | <Anchors> |
||
656 | <Anchor point="TOPLEFT"> |
||
657 | <Offset> |
||
658 | <AbsDimension x="8" y="-8"/> |
||
659 | </Offset> |
||
660 | </Anchor> |
||
661 | </Anchors> |
||
662 | |||
663 | <!-- Entire purpose of this layer is to do a gradient for the gutter --> |
||
664 | <Layers> |
||
665 | <Layer level="BACKGROUND"> |
||
666 | <Texture file="Interface\ChatFrame\ChatFrameBackground"> |
||
667 | <Anchors> |
||
668 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
669 | <Offset> |
||
670 | <AbsDimension x="4" y="0"/> |
||
671 | </Offset> |
||
672 | </Anchor> |
||
673 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
674 | <Offset> |
||
675 | <AbsDimension x="23" y="0"/> |
||
676 | </Offset> |
||
677 | </Anchor> |
||
678 | </Anchors> |
||
679 | <Gradient> |
||
680 | <MaxColor r="0.15" g="0.15" b="0.15" a="1"/> |
||
681 | <MinColor r="0.15" g="0.15" b="0.15" a="0"/> |
||
682 | </Gradient> |
||
683 | </Texture> |
||
684 | </Layer> |
||
685 | </Layers> |
||
686 | <!-- Basically copy/pasted from MacroFrame --> |
||
687 | <ScrollChild> |
||
688 | <EditBox name="CliqueEditBox" multiLine="true" maxLines="9" letters="4096" nonspacewrap="false" spacing="1" autoFocus="true"> |
||
689 | <Size> |
||
690 | <AbsDimension x="310" y="190"/> |
||
691 | </Size> |
||
692 | <Anchors> |
||
693 | <Anchor point="TOPLEFT"/> |
||
694 | <Anchor point="BOTTOMRIGHT"/> |
||
695 | </Anchors> |
||
696 | <Scripts> |
||
697 | <OnTextChanged> |
||
698 | local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar") |
||
699 | this:GetParent():UpdateScrollChildRect(); |
||
700 | local min; |
||
701 | local max; |
||
702 | min, max = scrollBar:GetMinMaxValues(); |
||
703 | if ( max > 0 and (this.max ~= max) ) then |
||
704 | this.max = max; |
||
705 | scrollBar:SetValue(max); |
||
706 | end |
||
707 | </OnTextChanged> |
||
708 | <OnEscapePressed> |
||
709 | Clique:EditCancel() |
||
710 | </OnEscapePressed> |
||
711 | <OnTabPressed> |
||
712 | CliqueNameEditBox:SetFocus() |
||
713 | </OnTabPressed> |
||
714 | <OnMouseDown> |
||
715 | if arg1 == "RightButton" then |
||
716 | Clique:DropMenu() |
||
717 | end |
||
718 | </OnMouseDown> |
||
719 | </Scripts> |
||
720 | <FontString inherits="GameFontHighlight"/> |
||
721 | </EditBox> |
||
722 | </ScrollChild> |
||
723 | </ScrollFrame> |
||
724 | </Frames> |
||
725 | <Scripts> |
||
726 | <OnLoad> |
||
727 | this:SetBackdropBorderColor(.5,.5,.5) |
||
728 | </OnLoad> |
||
729 | </Scripts> |
||
730 | </Frame> |
||
731 | </Frames> |
||
732 | </Frame> |
||
733 | |||
734 | <!-- FocusGrabber is just an overlay to set focus since multiline EditBoxes vary in size --> |
||
735 | <Button name="CliqueFocusGrabber"> |
||
736 | <Anchors> |
||
737 | <Anchor point="TOPLEFT" relativeTo="CliqueTextEditBox" relativePoint="TOPLEFT"> |
||
738 | <Offset> |
||
739 | <AbsDimension x="8" y="-8"/> |
||
740 | </Offset> |
||
741 | </Anchor> |
||
742 | <Anchor point="BOTTOMRIGHT" relativeTo="CliqueTextEditBox" relativePoint="BOTTOMRIGHT"> |
||
743 | <Offset> |
||
744 | <AbsDimension x="-8" y="8"/> |
||
745 | </Offset> |
||
746 | </Anchor> |
||
747 | </Anchors> |
||
748 | <Scripts> |
||
749 | <OnLoad> |
||
750 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp") |
||
751 | </OnLoad> |
||
752 | <OnClick> |
||
753 | if arg1 == "LeftButton" then |
||
754 | CliqueEditBox:SetFocus() |
||
755 | elseif arg1 == "RightButton" then |
||
756 | Clique:DropMenu(this) |
||
757 | end |
||
758 | </OnClick> |
||
759 | </Scripts> |
||
760 | </Button> |
||
761 | |||
762 | <Frame name="CliqueIconSelectFrame" hidden="true"> |
||
763 | <Size> |
||
764 | <AbsDimension x="351" y="330"/> |
||
765 | </Size> |
||
766 | <Anchors> |
||
767 | <Anchor point="CENTER"/> |
||
768 | </Anchors> |
||
769 | <Layers> |
||
770 | <Layer level="ARTWORK"> |
||
771 | <FontString name="CliqueEditHint" inherits="SubSpellFont" text="Use a click combo above to change its click cast."> |
||
772 | <Size> |
||
773 | <AbsDimension x="351" y="16"/> |
||
774 | </Size> |
||
775 | <Color r="0" g="0" b="0"/> |
||
776 | <Anchors> |
||
777 | <Anchor point="TOP"> |
||
778 | <Offset> |
||
779 | <AbsDimension x="0" y="-60"/> |
||
780 | </Offset> |
||
781 | </Anchor> |
||
782 | </Anchors> |
||
783 | </FontString> |
||
784 | </Layer> |
||
785 | </Layers> |
||
786 | <Frames> |
||
787 | |||
788 | <ScrollFrame name="CliqueIconScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
789 | <Size> |
||
790 | <AbsDimension x="296" y="195"/> |
||
791 | </Size> |
||
792 | <Anchors> |
||
793 | <Anchor point="CENTER" relativeTo="CliqueIconSelectFrame" relativePoint="CENTER"> |
||
794 | <Offset> |
||
795 | <AbsDimension x="-15" y="-40"/> |
||
796 | </Offset> |
||
797 | </Anchor> |
||
798 | </Anchors> |
||
799 | <Layers> |
||
800 | <Layer level="BACKGROUND"> |
||
801 | <Texture file="Interface\ChatFrame\ChatFrameBackground"> |
||
802 | <Anchors> |
||
803 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
804 | <Offset> |
||
805 | <AbsDimension x="14" y="0"/> |
||
806 | </Offset> |
||
807 | </Anchor> |
||
808 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
809 | <Offset> |
||
810 | <AbsDimension x="23" y="0"/> |
||
811 | </Offset> |
||
812 | </Anchor> |
||
813 | </Anchors> |
||
814 | <Gradient> |
||
815 | <MaxColor r="0.15" g="0.15" b="0.15" a="1"/> |
||
816 | <MinColor r="0.5" g="0.25" b="0.05" a="0"/> |
||
817 | </Gradient> |
||
818 | </Texture> |
||
819 | <Texture file="Interface\ChatFrame\ChatFrameBackground"> |
||
820 | <Anchors> |
||
821 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
822 | <Offset> |
||
823 | <AbsDimension x="4" y="0"/> |
||
824 | </Offset> |
||
825 | </Anchor> |
||
826 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
827 | <Offset> |
||
828 | <AbsDimension x="14" y="0"/> |
||
829 | </Offset> |
||
830 | </Anchor> |
||
831 | </Anchors> |
||
832 | <Gradient> |
||
833 | <MinColor r="0.15" g="0.15" b="0.15" a="1"/> |
||
834 | <MaxColor r="0.5" g="0.25" b="0.05" a="0"/> |
||
835 | </Gradient> |
||
836 | </Texture> |
||
837 | </Layer> |
||
838 | </Layers> |
||
839 | <Scripts> |
||
840 | <OnVerticalScroll> |
||
841 | local MACRO_ICON_ROW_HEIGHT = 36 |
||
842 | FauxScrollFrame_OnVerticalScroll(MACRO_ICON_ROW_HEIGHT, function() Clique:UpdateIconFrame() end); |
||
843 | </OnVerticalScroll> |
||
844 | </Scripts> |
||
845 | </ScrollFrame> |
||
846 | |||
847 | <CheckButton name="CliqueIcon1" inherits="CliqueIconTemplate" id="1"> |
||
848 | <Anchors> |
||
849 | <Anchor point="TOPLEFT" relativeTo="CliqueIconScrollFrame" relativePoint="TOPLEFT"> |
||
850 | <Offset> |
||
851 | <AbsDimension x="25" y="-15"/> |
||
852 | </Offset> |
||
853 | </Anchor> |
||
854 | </Anchors> |
||
855 | </CheckButton> |
||
856 | <CheckButton name="CliqueIcon2" inherits="CliqueIconTemplate" id="2"> |
||
857 | <Anchors> |
||
858 | <Anchor point="LEFT" relativeTo="CliqueIcon1" relativePoint="RIGHT"> |
||
859 | <Offset> |
||
860 | <AbsDimension x="10" y="0"/> |
||
861 | </Offset> |
||
862 | </Anchor> |
||
863 | </Anchors> |
||
864 | </CheckButton> |
||
865 | <CheckButton name="CliqueIcon3" inherits="CliqueIconTemplate" id="3"> |
||
866 | <Anchors> |
||
867 | <Anchor point="LEFT" relativeTo="CliqueIcon2" relativePoint="RIGHT"> |
||
868 | <Offset> |
||
869 | <AbsDimension x="10" y="0"/> |
||
870 | </Offset> |
||
871 | </Anchor> |
||
872 | </Anchors> |
||
873 | </CheckButton> |
||
874 | <CheckButton name="CliqueIcon4" inherits="CliqueIconTemplate" id="4"> |
||
875 | <Anchors> |
||
876 | <Anchor point="LEFT" relativeTo="CliqueIcon3" relativePoint="RIGHT"> |
||
877 | <Offset> |
||
878 | <AbsDimension x="10" y="0"/> |
||
879 | </Offset> |
||
880 | </Anchor> |
||
881 | </Anchors> |
||
882 | </CheckButton> |
||
883 | <CheckButton name="CliqueIcon5" inherits="CliqueIconTemplate" id="5"> |
||
884 | <Anchors> |
||
885 | <Anchor point="LEFT" relativeTo="CliqueIcon4" relativePoint="RIGHT"> |
||
886 | <Offset> |
||
887 | <AbsDimension x="10" y="0"/> |
||
888 | </Offset> |
||
889 | </Anchor> |
||
890 | </Anchors> |
||
891 | </CheckButton> |
||
892 | <CheckButton name="CliqueIcon6" inherits="CliqueIconTemplate" id="6"> |
||
893 | <Anchors> |
||
894 | <Anchor point="TOPLEFT" relativeTo="CliqueIcon1" relativePoint="BOTTOMLEFT"> |
||
895 | <Offset> |
||
896 | <AbsDimension x="0" y="-8"/> |
||
897 | </Offset> |
||
898 | </Anchor> |
||
899 | </Anchors> |
||
900 | </CheckButton> |
||
901 | <CheckButton name="CliqueIcon7" inherits="CliqueIconTemplate" id="7"> |
||
902 | <Anchors> |
||
903 | <Anchor point="LEFT" relativeTo="CliqueIcon6" relativePoint="RIGHT"> |
||
904 | <Offset> |
||
905 | <AbsDimension x="10" y="0"/> |
||
906 | </Offset> |
||
907 | </Anchor> |
||
908 | </Anchors> |
||
909 | </CheckButton> |
||
910 | <CheckButton name="CliqueIcon8" inherits="CliqueIconTemplate" id="8"> |
||
911 | <Anchors> |
||
912 | <Anchor point="LEFT" relativeTo="CliqueIcon7" relativePoint="RIGHT"> |
||
913 | <Offset> |
||
914 | <AbsDimension x="10" y="0"/> |
||
915 | </Offset> |
||
916 | </Anchor> |
||
917 | </Anchors> |
||
918 | </CheckButton> |
||
919 | <CheckButton name="CliqueIcon9" inherits="CliqueIconTemplate" id="9"> |
||
920 | <Anchors> |
||
921 | <Anchor point="LEFT" relativeTo="CliqueIcon8" relativePoint="RIGHT"> |
||
922 | <Offset> |
||
923 | <AbsDimension x="10" y="0"/> |
||
924 | </Offset> |
||
925 | </Anchor> |
||
926 | </Anchors> |
||
927 | </CheckButton> |
||
928 | <CheckButton name="CliqueIcon10" inherits="CliqueIconTemplate" id="10"> |
||
929 | <Anchors> |
||
930 | <Anchor point="LEFT" relativeTo="CliqueIcon9" relativePoint="RIGHT"> |
||
931 | <Offset> |
||
932 | <AbsDimension x="10" y="0"/> |
||
933 | </Offset> |
||
934 | </Anchor> |
||
935 | </Anchors> |
||
936 | </CheckButton> |
||
937 | <CheckButton name="CliqueIcon11" inherits="CliqueIconTemplate" id="11"> |
||
938 | <Anchors> |
||
939 | <Anchor point="TOPLEFT" relativeTo="CliqueIcon6" relativePoint="BOTTOMLEFT"> |
||
940 | <Offset> |
||
941 | <AbsDimension x="0" y="-8"/> |
||
942 | </Offset> |
||
943 | </Anchor> |
||
944 | </Anchors> |
||
945 | </CheckButton> |
||
946 | <CheckButton name="CliqueIcon12" inherits="CliqueIconTemplate" id="12"> |
||
947 | <Anchors> |
||
948 | <Anchor point="LEFT" relativeTo="CliqueIcon11" relativePoint="RIGHT"> |
||
949 | <Offset> |
||
950 | <AbsDimension x="10" y="0"/> |
||
951 | </Offset> |
||
952 | </Anchor> |
||
953 | </Anchors> |
||
954 | </CheckButton> |
||
955 | <CheckButton name="CliqueIcon13" inherits="CliqueIconTemplate" id="13"> |
||
956 | <Anchors> |
||
957 | <Anchor point="LEFT" relativeTo="CliqueIcon12" relativePoint="RIGHT"> |
||
958 | <Offset> |
||
959 | <AbsDimension x="10" y="0"/> |
||
960 | </Offset> |
||
961 | </Anchor> |
||
962 | </Anchors> |
||
963 | </CheckButton> |
||
964 | <CheckButton name="CliqueIcon14" inherits="CliqueIconTemplate" id="14"> |
||
965 | <Anchors> |
||
966 | <Anchor point="LEFT" relativeTo="CliqueIcon13" relativePoint="RIGHT"> |
||
967 | <Offset> |
||
968 | <AbsDimension x="10" y="0"/> |
||
969 | </Offset> |
||
970 | </Anchor> |
||
971 | </Anchors> |
||
972 | </CheckButton> |
||
973 | <CheckButton name="CliqueIcon15" inherits="CliqueIconTemplate" id="15"> |
||
974 | <Anchors> |
||
975 | <Anchor point="LEFT" relativeTo="CliqueIcon14" relativePoint="RIGHT"> |
||
976 | <Offset> |
||
977 | <AbsDimension x="10" y="0"/> |
||
978 | </Offset> |
||
979 | </Anchor> |
||
980 | </Anchors> |
||
981 | </CheckButton> |
||
982 | <CheckButton name="CliqueIcon16" inherits="CliqueIconTemplate" id="16"> |
||
983 | <Anchors> |
||
984 | <Anchor point="TOPLEFT" relativeTo="CliqueIcon11" relativePoint="BOTTOMLEFT"> |
||
985 | <Offset> |
||
986 | <AbsDimension x="0" y="-8"/> |
||
987 | </Offset> |
||
988 | </Anchor> |
||
989 | </Anchors> |
||
990 | </CheckButton> |
||
991 | <CheckButton name="CliqueIcon17" inherits="CliqueIconTemplate" id="17"> |
||
992 | <Anchors> |
||
993 | <Anchor point="LEFT" relativeTo="CliqueIcon16" relativePoint="RIGHT"> |
||
994 | <Offset> |
||
995 | <AbsDimension x="10" y="0"/> |
||
996 | </Offset> |
||
997 | </Anchor> |
||
998 | </Anchors> |
||
999 | </CheckButton> |
||
1000 | <CheckButton name="CliqueIcon18" inherits="CliqueIconTemplate" id="18"> |
||
1001 | <Anchors> |
||
1002 | <Anchor point="LEFT" relativeTo="CliqueIcon17" relativePoint="RIGHT"> |
||
1003 | <Offset> |
||
1004 | <AbsDimension x="10" y="0"/> |
||
1005 | </Offset> |
||
1006 | </Anchor> |
||
1007 | </Anchors> |
||
1008 | </CheckButton> |
||
1009 | <CheckButton name="CliqueIcon19" inherits="CliqueIconTemplate" id="19"> |
||
1010 | <Anchors> |
||
1011 | <Anchor point="LEFT" relativeTo="CliqueIcon18" relativePoint="RIGHT"> |
||
1012 | <Offset> |
||
1013 | <AbsDimension x="10" y="0"/> |
||
1014 | </Offset> |
||
1015 | </Anchor> |
||
1016 | </Anchors> |
||
1017 | </CheckButton> |
||
1018 | <CheckButton name="CliqueIcon20" inherits="CliqueIconTemplate" id="20"> |
||
1019 | <Anchors> |
||
1020 | <Anchor point="LEFT" relativeTo="CliqueIcon19" relativePoint="RIGHT"> |
||
1021 | <Offset> |
||
1022 | <AbsDimension x="10" y="0"/> |
||
1023 | </Offset> |
||
1024 | </Anchor> |
||
1025 | </Anchors> |
||
1026 | </CheckButton> |
||
1027 | |||
1028 | </Frames> |
||
1029 | <Scripts> |
||
1030 | <OnShow> |
||
1031 | Clique:UpdateIconFrame() |
||
1032 | </OnShow> |
||
1033 | </Scripts> |
||
1034 | </Frame> |
||
1035 | </Frames> |
||
1036 | <Scripts> |
||
1037 | <OnLoad> |
||
1038 | CliqueBackdropLeft:SetVertexColor(.7,.7,.7,1) |
||
1039 | CliqueBackdropRight:SetVertexColor(.7,.7,.7,1) |
||
1040 | CliqueFrame:SetBackdropBorderColor(.5,.5,.5,1) |
||
1041 | </OnLoad> |
||
1042 | <OnHide> |
||
1043 | Clique:ButtonOnClick(CliqueButtonCancel) |
||
1044 | </OnHide> |
||
1045 | </Scripts> |
||
1046 | </Frame> |
||
1047 | |||
1048 | <!-- this is the pullout tab attached to the spellbook (little pixelated mouse with a wizard hat) --> |
||
1049 | <CheckButton name="CliquePulloutTab" parent="SpellBookFrame" inherits="SpellBookSkillLineTabTemplate" hidden="false"> |
||
1050 | <Scripts> |
||
1051 | <OnClick> |
||
1052 | Clique:Toggle() |
||
1053 | </OnClick> |
||
1054 | <OnLoad> |
||
1055 | this:SetNormalTexture("Interface\\AddOns\\Clique\\Images\\CliqueIcon") |
||
1056 | </OnLoad> |
||
1057 | <OnEnter> |
||
1058 | -- do nothing, maybe show tooltip (commented to kill template's OnEnter) |
||
1059 | </OnEnter> |
||
1060 | </Scripts> |
||
1061 | </CheckButton> |
||
1062 | |||
1063 | <Frame name="CliqueTutorial" parent="CliqueFrame"> |
||
1064 | <Size> |
||
1065 | <AbsDimension x="425" y="100"/> |
||
1066 | </Size> |
||
1067 | <Anchors> |
||
1068 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="CliqueFrame"> |
||
1069 | <Offset> |
||
1070 | <AbsDimension x="0" y="0"/> |
||
1071 | </Offset> |
||
1072 | </Anchor> |
||
1073 | </Anchors> |
||
1074 | |||
1075 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
1076 | <BackgroundInsets> |
||
1077 | <AbsInset left="4" right="4" top="4" bottom="4" /> |
||
1078 | </BackgroundInsets> |
||
1079 | <TileSize> |
||
1080 | <AbsValue val="16" /> |
||
1081 | </TileSize> |
||
1082 | <EdgeSize> |
||
1083 | <AbsValue val="16" /> |
||
1084 | </EdgeSize> |
||
1085 | </Backdrop> |
||
1086 | |||
1087 | <Layers> |
||
1088 | <Layer level="BACKGROUND"> |
||
1089 | <FontString name="CliqueTutorialText" inherits="GameFontNormal" justifyH="LEFT" text=""> |
||
1090 | <Anchors> |
||
1091 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> |
||
1092 | <Offset> |
||
1093 | <AbsDimension x="10" y="-5"/> |
||
1094 | </Offset> |
||
1095 | </Anchor> |
||
1096 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
1097 | <Offset> |
||
1098 | <AbsDimension x="-10" y="5 "/> |
||
1099 | </Offset> |
||
1100 | </Anchor> |
||
1101 | </Anchors> |
||
1102 | </FontString> |
||
1103 | </Layer> |
||
1104 | </Layers> |
||
1105 | </Frame> |
||
1106 | </Ui> |