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  
3 <CheckButton name="DART_TextureBrowser_TabTemplate" inherits="DiscordLib_PlainBackgroundTemplate" frameStrata="DIALOG" virtual="true">
4 <Size><AbsDimension x="80" y="20"/></Size>
5 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
6 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
7 <Layers>
8 <Layer level="OVERLAY">
9 <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="DART_TEXTUREBROWSERHEADER">
10 <Color r="1" g="1" b="1"/>
11 <Anchors>
12 <Anchor point="CENTER"/>
13 </Anchors>
14 </FontString>
15 </Layer>
16 </Layers>
17 </CheckButton>
18  
19 <CheckButton name="DART_TextureBrowser_ButtonTemplate" virtual="true">
20 <Size><AbsDimension x="36" y="36"/></Size>
21 <Layers>
22 <Layer level="BACKGROUND">
23 <Texture>
24 <Size><AbsDimension x="64" y="64"/></Size>
25 <Anchors>
26 <Anchor point="CENTER">
27 <Offset><AbsDimension x="0" y="-1"/></Offset>
28 </Anchor>
29 </Anchors>
30 </Texture>
31 </Layer>
32 </Layers>
33 <NormalTexture name="$parentIcon">
34 <Size><AbsDimension x="36" y="36"/></Size>
35 <Anchors>
36 <Anchor point="CENTER">
37 <Offset><AbsDimension x="0" y="-1"/></Offset>
38 </Anchor>
39 </Anchors>
40 </NormalTexture>
41 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
42 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
43 <Scripts>
44 <OnLoad>
45 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
46 </OnLoad>
47 <OnClick>
48 DART_TextureBrowser_OnClick(arg1);
49 </OnClick>
50 <OnEnter>
51 DART_TextureBrowser_OnEnter();
52 </OnEnter>
53 <OnLeave>
54 DART_TextureBrowser_OnLeave();
55 </OnLeave>
56 </Scripts>
57 </CheckButton>
58  
59 <EditBox name="DART_TBEditBoxTemplate" inherits="DiscordLib_EditBoxTemplate" virtual="true">
60 <Scripts>
61 <OnEnterPressed>
62 this:ClearFocus();
63 DART_STICKY_TEXTURE[this.index] = this:GetText();
64 DART_TextureBrowser_UpdatePreview();
65 </OnEnterPressed>
66 </Scripts>
67 </EditBox>
68  
69 <Button name="DART_PlusMinusButton" inherits="UIPanelButtonTemplate" virtual="true" hidden="false">
70 <Size><AbsDimension x="15" y="15"/></Size>
71 <Scripts>
72 <OnLoad>
73 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
74 </OnLoad>
75 <OnClick>
76 DART_TextureBrowser_AdjustCoord(arg1);
77 </OnClick>
78 </Scripts>
79 </Button>
80  
81  
82 <Button name="DART_TextureBrowser" inherits="DiscordLib_DialogueBackdropTemplate" toplevel="true" parent="DART_Options" movable="true" hidden="true" frameStrata="HIGH">
83 <Size><AbsDimension x="297" y="435"/></Size>
84 <Anchors>
85 <Anchor point="RIGHT" relativePoint="LEFT"/>
86 </Anchors>
87 <Frames>
88 <CheckButton name="DART_TextureBrowser_DefaultTab" inherits="DART_TextureBrowser_TabTemplate">
89 <Anchors>
90 <Anchor point="TOPLEFT">
91 <Offset><AbsDimension x="17" y="-30"/></Offset>
92 </Anchor>
93 </Anchors>
94 <Scripts>
95 <OnLoad>
96 DART_TextureBrowser_DefaultTab_Text:SetText(DART_TEXT.DefaultUI);
97 this:SetBackdropColor(0,0,0);
98 this:SetBackdropBorderColor(.5, 0, 0);
99 this:SetChecked(1);
100 </OnLoad>
101 <OnClick>
102 DART_TEXTURES = DART_DEFAULT_TEXTURES;
103 DART_TextureBrowser_Update();
104 this:SetChecked(1);
105 DART_TextureBrowser_MacroTab:SetChecked();
106 DART_TextureBrowser_CustomTab:SetChecked();
107 </OnClick>
108 </Scripts>
109 </CheckButton>
110 <CheckButton name="DART_TextureBrowser_MacroTab" inherits="DART_TextureBrowser_TabTemplate">
111 <Anchors>
112 <Anchor point="LEFT" relativeTo="DART_TextureBrowser_DefaultTab" relativePoint="RIGHT"/>
113 </Anchors>
114 <Scripts>
115 <OnLoad>
116 DART_TextureBrowser_MacroTab_Text:SetText(DART_TEXT.MacroIcons);
117 this:SetBackdropColor(0,0,0);
118 this:SetBackdropBorderColor(.5, 0, 0);
119 </OnLoad>
120 <OnClick>
121 DART_TEXTURES = DART_MACRO_TEXTURES;
122 DART_TextureBrowser_Update();
123 this:SetChecked(1);
124 DART_TextureBrowser_DefaultTab:SetChecked();
125 DART_TextureBrowser_CustomTab:SetChecked();
126 </OnClick>
127 </Scripts>
128 </CheckButton>
129 <CheckButton name="DART_TextureBrowser_CustomTab" inherits="DART_TextureBrowser_TabTemplate">
130 <Anchors>
131 <Anchor point="LEFT" relativeTo="DART_TextureBrowser_MacroTab" relativePoint="RIGHT"/>
132 </Anchors>
133 <Scripts>
134 <OnLoad>
135 DART_TextureBrowser_CustomTab_Text:SetText(DART_TEXT.Custom);
136 this:SetBackdropColor(0,0,0);
137 this:SetBackdropBorderColor(.5, 0, 0);
138 </OnLoad>
139 <OnClick>
140 DART_TEXTURES = {};
141 DL_Copy_Table(DART_Settings.CustomTextures, DART_TEXTURES);
142 DART_TextureBrowser_Update();
143 this:SetChecked(1);
144 DART_TextureBrowser_DefaultTab:SetChecked();
145 DART_TextureBrowser_MacroTab:SetChecked();
146 </OnClick>
147 </Scripts>
148 </CheckButton>
149  
150 <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate">
151 <Scripts>
152 <OnClick>
153 DART_TextureBrowser:Hide();
154 </OnClick>
155 </Scripts>
156 </Button>
157 <ScrollFrame name="$parent_ScrollFrame" inherits="FauxScrollFrameTemplate">
158 <Size><AbsDimension x="296" y="195"/></Size>
159 <Anchors>
160 <Anchor point="TOPRIGHT">
161 <Offset><AbsDimension x="-39" y="-40"/></Offset>
162 </Anchor>
163 </Anchors>
164 <Scripts>
165 <OnVerticalScroll>
166 FauxScrollFrame_OnVerticalScroll(36, DART_TextureBrowser_Update);
167 </OnVerticalScroll>
168 </Scripts>
169 </ScrollFrame>
170 <CheckButton name="$parent_Button1" inherits="DART_TextureBrowser_ButtonTemplate" id="1">
171 <Anchors>
172 <Anchor point="TOPLEFT">
173 <Offset>
174 <AbsDimension x="24" y="-53"/>
175 </Offset>
176 </Anchor>
177 </Anchors>
178 </CheckButton>
179 <CheckButton name="$parent_Button2" inherits="DART_TextureBrowser_ButtonTemplate" id="2">
180 <Anchors>
181 <Anchor point="LEFT" relativeTo="$parent_Button1" relativePoint="RIGHT">
182 <Offset>
183 <AbsDimension x="10" y="0"/>
184 </Offset>
185 </Anchor>
186 </Anchors>
187 </CheckButton>
188 <CheckButton name="$parent_Button3" inherits="DART_TextureBrowser_ButtonTemplate" id="3">
189 <Anchors>
190 <Anchor point="LEFT" relativeTo="$parent_Button2" relativePoint="RIGHT">
191 <Offset>
192 <AbsDimension x="10" y="0"/>
193 </Offset>
194 </Anchor>
195 </Anchors>
196 </CheckButton>
197 <CheckButton name="$parent_Button4" inherits="DART_TextureBrowser_ButtonTemplate" id="4">
198 <Anchors>
199 <Anchor point="LEFT" relativeTo="$parent_Button3" relativePoint="RIGHT">
200 <Offset>
201 <AbsDimension x="10" y="0"/>
202 </Offset>
203 </Anchor>
204 </Anchors>
205 </CheckButton>
206 <CheckButton name="$parent_Button5" inherits="DART_TextureBrowser_ButtonTemplate" id="5">
207 <Anchors>
208 <Anchor point="LEFT" relativeTo="$parent_Button4" relativePoint="RIGHT">
209 <Offset>
210 <AbsDimension x="10" y="0"/>
211 </Offset>
212 </Anchor>
213 </Anchors>
214 </CheckButton>
215 <CheckButton name="$parent_Button6" inherits="DART_TextureBrowser_ButtonTemplate" id="6">
216 <Anchors>
217 <Anchor point="TOPLEFT" relativeTo="$parent_Button1" relativePoint="BOTTOMLEFT">
218 <Offset>
219 <AbsDimension x="0" y="-8"/>
220 </Offset>
221 </Anchor>
222 </Anchors>
223 </CheckButton>
224 <CheckButton name="$parent_Button7" inherits="DART_TextureBrowser_ButtonTemplate" id="7">
225 <Anchors>
226 <Anchor point="LEFT" relativeTo="$parent_Button6" relativePoint="RIGHT">
227 <Offset>
228 <AbsDimension x="10" y="0"/>
229 </Offset>
230 </Anchor>
231 </Anchors>
232 </CheckButton>
233 <CheckButton name="$parent_Button8" inherits="DART_TextureBrowser_ButtonTemplate" id="8">
234 <Anchors>
235 <Anchor point="LEFT" relativeTo="$parent_Button7" relativePoint="RIGHT">
236 <Offset>
237 <AbsDimension x="10" y="0"/>
238 </Offset>
239 </Anchor>
240 </Anchors>
241 </CheckButton>
242 <CheckButton name="$parent_Button9" inherits="DART_TextureBrowser_ButtonTemplate" id="9">
243 <Anchors>
244 <Anchor point="LEFT" relativeTo="$parent_Button8" relativePoint="RIGHT">
245 <Offset>
246 <AbsDimension x="10" y="0"/>
247 </Offset>
248 </Anchor>
249 </Anchors>
250 </CheckButton>
251 <CheckButton name="$parent_Button10" inherits="DART_TextureBrowser_ButtonTemplate" id="10">
252 <Anchors>
253 <Anchor point="LEFT" relativeTo="$parent_Button9" relativePoint="RIGHT">
254 <Offset>
255 <AbsDimension x="10" y="0"/>
256 </Offset>
257 </Anchor>
258 </Anchors>
259 </CheckButton>
260 <CheckButton name="$parent_Button11" inherits="DART_TextureBrowser_ButtonTemplate" id="11">
261 <Anchors>
262 <Anchor point="TOPLEFT" relativeTo="$parent_Button6" relativePoint="BOTTOMLEFT">
263 <Offset>
264 <AbsDimension x="0" y="-8"/>
265 </Offset>
266 </Anchor>
267 </Anchors>
268 </CheckButton>
269 <CheckButton name="$parent_Button12" inherits="DART_TextureBrowser_ButtonTemplate" id="12">
270 <Anchors>
271 <Anchor point="LEFT" relativeTo="$parent_Button11" relativePoint="RIGHT">
272 <Offset>
273 <AbsDimension x="10" y="0"/>
274 </Offset>
275 </Anchor>
276 </Anchors>
277 </CheckButton>
278 <CheckButton name="$parent_Button13" inherits="DART_TextureBrowser_ButtonTemplate" id="13">
279 <Anchors>
280 <Anchor point="LEFT" relativeTo="$parent_Button12" relativePoint="RIGHT">
281 <Offset>
282 <AbsDimension x="10" y="0"/>
283 </Offset>
284 </Anchor>
285 </Anchors>
286 </CheckButton>
287 <CheckButton name="$parent_Button14" inherits="DART_TextureBrowser_ButtonTemplate" id="14">
288 <Anchors>
289 <Anchor point="LEFT" relativeTo="$parent_Button13" relativePoint="RIGHT">
290 <Offset>
291 <AbsDimension x="10" y="0"/>
292 </Offset>
293 </Anchor>
294 </Anchors>
295 </CheckButton>
296 <CheckButton name="$parent_Button15" inherits="DART_TextureBrowser_ButtonTemplate" id="15">
297 <Anchors>
298 <Anchor point="LEFT" relativeTo="$parent_Button14" relativePoint="RIGHT">
299 <Offset>
300 <AbsDimension x="10" y="0"/>
301 </Offset>
302 </Anchor>
303 </Anchors>
304 </CheckButton>
305 <CheckButton name="$parent_Button16" inherits="DART_TextureBrowser_ButtonTemplate" id="16">
306 <Anchors>
307 <Anchor point="TOPLEFT" relativeTo="$parent_Button11" relativePoint="BOTTOMLEFT">
308 <Offset>
309 <AbsDimension x="0" y="-8"/>
310 </Offset>
311 </Anchor>
312 </Anchors>
313 </CheckButton>
314 <CheckButton name="$parent_Button17" inherits="DART_TextureBrowser_ButtonTemplate" id="17">
315 <Anchors>
316 <Anchor point="LEFT" relativeTo="$parent_Button16" relativePoint="RIGHT">
317 <Offset>
318 <AbsDimension x="10" y="0"/>
319 </Offset>
320 </Anchor>
321 </Anchors>
322 </CheckButton>
323 <CheckButton name="$parent_Button18" inherits="DART_TextureBrowser_ButtonTemplate" id="18">
324 <Anchors>
325 <Anchor point="LEFT" relativeTo="$parent_Button17" relativePoint="RIGHT">
326 <Offset>
327 <AbsDimension x="10" y="0"/>
328 </Offset>
329 </Anchor>
330 </Anchors>
331 </CheckButton>
332 <CheckButton name="$parent_Button19" inherits="DART_TextureBrowser_ButtonTemplate" id="19">
333 <Anchors>
334 <Anchor point="LEFT" relativeTo="$parent_Button18" relativePoint="RIGHT">
335 <Offset>
336 <AbsDimension x="10" y="0"/>
337 </Offset>
338 </Anchor>
339 </Anchors>
340 </CheckButton>
341 <CheckButton name="$parent_Button20" inherits="DART_TextureBrowser_ButtonTemplate" id="20">
342 <Anchors>
343 <Anchor point="LEFT" relativeTo="$parent_Button19" relativePoint="RIGHT">
344 <Offset>
345 <AbsDimension x="10" y="0"/>
346 </Offset>
347 </Anchor>
348 </Anchors>
349 </CheckButton>
350  
351 <EditBox name="$parent_File" inherits="DART_TBEditBoxTemplate" id="file">
352 <Size><AbsDimension x="235" y="20"/></Size>
353 <Scripts>
354 <OnLoad>
355 DL_Set_Label(DART_TEXT.File);
356 DL_Set_Anchor("_ScrollFrame", 54, -10);
357 this.index = "file";
358 </OnLoad>
359 </Scripts>
360 </EditBox>
361  
362 <Frame name="$parent_CoordsLabel" frameStrata="HIGH">
363 <Size><AbsDimension x="10" y="15"/></Size>
364 <Anchors>
365 <Anchor point="TOPLEFT" relativeTo="$parent_ScrollFrame" relativePoint="BOTTOMLEFT">
366 <Offset><AbsDimension x="54" y="-35"/></Offset>
367 </Anchor>
368 </Anchors>
369 <Layers>
370 <Layer level="OVERLAY">
371 <FontString name="$parent_Header" inherits="GameFontNormalSmall" text="DART_COORDSHEADER">
372 <Anchors>
373 <Anchor point="LEFT"/>
374 </Anchors>
375 </FontString>
376 </Layer>
377 </Layers>
378 </Frame>
379 <EditBox name="$parent_X1" inherits="DART_TBEditBoxTemplate" id="x1">
380 <Size><AbsDimension x="73" y="20"/></Size>
381 <Scripts>
382 <OnLoad>
383 DL_Set_Label(DART_TEXT.CoordX1);
384 DL_Set_Anchor("_CoordsLabel", 0, 0);
385 this.index = "x1";
386 </OnLoad>
387 </Scripts>
388 </EditBox>
389 <Button name="$parent_X1Minus" inherits="DART_PlusMinusButton" text="-" id="1">
390 <Anchors>
391 <Anchor point="LEFT" relativeTo="$parent_X1" relativePoint="RIGHT"/>
392 </Anchors>
393 </Button>
394 <Button name="$parent_X1Plus" inherits="DART_PlusMinusButton" text="+" id="2">
395 <Anchors>
396 <Anchor point="LEFT" relativeTo="$parent_X1Minus" relativePoint="RIGHT"/>
397 </Anchors>
398 </Button>
399 <EditBox name="$parent_X2" inherits="DART_TBEditBoxTemplate" id="x2">
400 <Size><AbsDimension x="73" y="20"/></Size>
401 <Anchors>
402 <Anchor point="TOP" relativeTo="$parent_X1" relativePoint="BOTTOM"/>
403 </Anchors>
404 <Scripts>
405 <OnLoad>
406 DL_Set_Label(DART_TEXT.CoordX2);
407 this.index = "x2";
408 </OnLoad>
409 </Scripts>
410 </EditBox>
411 <Button name="$parent_X2Minus" inherits="DART_PlusMinusButton" text="-" id="3">
412 <Anchors>
413 <Anchor point="LEFT" relativeTo="$parent_X2" relativePoint="RIGHT"/>
414 </Anchors>
415 </Button>
416 <Button name="$parent_X2Plus" inherits="DART_PlusMinusButton" text="+" id="4">
417 <Anchors>
418 <Anchor point="LEFT" relativeTo="$parent_X2Minus" relativePoint="RIGHT"/>
419 </Anchors>
420 </Button>
421 <EditBox name="$parent_Y1" inherits="DART_TBEditBoxTemplate" id="y1">
422 <Size><AbsDimension x="73" y="20"/></Size>
423 <Scripts>
424 <OnLoad>
425 DL_Set_Label(DART_TEXT.CoordY1);
426 DL_Set_Anchor("_X1", 40, 0, "LEFT", "RIGHT");
427 this.index = "y1";
428 </OnLoad>
429 </Scripts>
430 </EditBox>
431 <Button name="$parent_Y1Minus" inherits="DART_PlusMinusButton" text="-" id="5">
432 <Anchors>
433 <Anchor point="LEFT" relativeTo="$parent_Y1" relativePoint="RIGHT"/>
434 </Anchors>
435 </Button>
436 <Button name="$parent_Y1Plus" inherits="DART_PlusMinusButton" text="+" id="6">
437 <Anchors>
438 <Anchor point="LEFT" relativeTo="$parent_Y1Minus" relativePoint="RIGHT"/>
439 </Anchors>
440 </Button>
441 <EditBox name="$parent_Y2" inherits="DART_TBEditBoxTemplate" id="y2">
442 <Size><AbsDimension x="73" y="20"/></Size>
443 <Anchors>
444 <Anchor point="TOP" relativeTo="$parent_Y1" relativePoint="BOTTOM"/>
445 </Anchors>
446 <Scripts>
447 <OnLoad>
448 DL_Set_Label(DART_TEXT.CoordY2);
449 this.index = "y2";
450 </OnLoad>
451 </Scripts>
452 </EditBox>
453 <Button name="$parent_Y2Minus" inherits="DART_PlusMinusButton" text="-" id="7">
454 <Anchors>
455 <Anchor point="LEFT" relativeTo="$parent_Y2" relativePoint="RIGHT"/>
456 </Anchors>
457 </Button>
458 <Button name="$parent_Y2Plus" inherits="DART_PlusMinusButton" text="+" id="8">
459 <Anchors>
460 <Anchor point="LEFT" relativeTo="$parent_Y2Minus" relativePoint="RIGHT"/>
461 </Anchors>
462 </Button>
463 <EditBox name="$parent_Height" inherits="DART_TBEditBoxTemplate" id="height">
464 <Size><AbsDimension x="80" y="20"/></Size>
465 <Scripts>
466 <OnLoad>
467 DL_Set_Label(DART_TEXT.Height);
468 DL_Set_Anchor("_ScrollFrame", 54, -95);
469 this.index = "height";
470 </OnLoad>
471 </Scripts>
472 </EditBox>
473 <EditBox name="$parent_Width" inherits="DART_TBEditBoxTemplate" id="width">
474 <Size><AbsDimension x="80" y="20"/></Size>
475 <Scripts>
476 <OnLoad>
477 DL_Set_Label(DART_TEXT.Width);
478 DL_Set_Anchor("_Height", 10, 0, "LEFT", "RIGHT");
479 this.index = "width";
480 </OnLoad>
481 </Scripts>
482 </EditBox>
483  
484 <Frame name="$parent_Preview" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="HIGH">
485 <Size><AbsDimension x="40" y="40"/></Size>
486 <Anchors>
487 <Anchor point="BOTTOM">
488 <Offset><AbsDimension x="0" y="40"/></Offset>
489 </Anchor>
490 </Anchors>
491 <Layers>
492 <Layer level="OVERLAY">
493 <Texture name="$parentTexture">
494 <Anchors>
495 <Anchor point="TOPLEFT">
496 <Offset><AbsDimension x="5" y="-5"/></Offset>
497 </Anchor>
498 <Anchor point="BOTTOMRIGHT">
499 <Offset><AbsDimension x="-5" y="5"/></Offset>
500 </Anchor>
501 </Anchors>
502 </Texture>
503 </Layer>
504 </Layers>
505 <Scripts>
506 <OnLoad>
507 this:SetBackdropColor(0, 0, 0);
508 </OnLoad>
509 </Scripts>
510 </Frame>
511  
512 <Button name="$parent_AddTextureButton" inherits="DART_MainMenuButton">
513 <Anchors>
514 <Anchor point="BOTTOM">
515 <Offset><AbsDimension x="0" y="15"/></Offset>
516 </Anchor>
517 </Anchors>
518 <Scripts>
519 <OnLoad>
520 this:SetText(DART_TEXT.AddTexture);
521 </OnLoad>
522 <OnClick>
523 DART_Options_AddTexture();
524 </OnClick>
525 </Scripts>
526 </Button>
527 </Frames>
528 <Layers>
529 <Layer level="OVERLAY">
530 <FontString name="$parent_Header" inherits="GameFontNormalSmall" text="DART_TEXTUREBROWSERHEADER">
531 <Anchors>
532 <Anchor point="TOP">
533 <Offset><AbsDimension x="0" y="-15"/></Offset>
534 </Anchor>
535 </Anchors>
536 </FontString>
537 </Layer>
538 </Layers>
539 <Scripts>
540 <OnLoad>
541 this:SetBackdropBorderColor(1, 0, 0);
542 this:SetBackdropColor(0, 0, 0, 1);
543 this:RegisterForDrag("LeftButton", "RightButton");
544 </OnLoad>
545 <OnShow>
546 DART_TextureBrowser_Update();
547 </OnShow>
548 <OnDragStart>
549 this:StartMoving();
550 </OnDragStart>
551 <OnDragStop>
552 this:StopMovingOrSizing();
553 </OnDragStop>
554 <OnHide>
555 this:StopMovingOrSizing();
556 </OnHide>
557 <OnMouseWheel>
558 return;
559 </OnMouseWheel>
560 </Scripts>
561 </Button>
562  
563 </Ui>