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="DiscordLib_CheckBoxTemplate" inherits="UICheckButtonTemplate" frameStrata="HIGH" virtual="true">
4 <Size><AbsDimension x="24" y="24"/></Size>
5 <Layers>
6 <Layer level="ARTWORK">
7 <FontString name="$parent_Label" inherits="GameFontNormal">
8 <Color r="1.0" g="1.0" b="1.0"/>
9 <Anchors>
10 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
11 <Offset><AbsDimension x="5" y="1"/></Offset>
12 </Anchor>
13 </Anchors>
14 </FontString>
15 </Layer>
16 </Layers>
17 </CheckButton>
18  
19 <Button name="DiscordLib_ColorPickerTemplate" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="HIGH" virtual="true">
20 <Size><AbsDimension x="25" y="25"/></Size>
21 <Layers>
22 <Layer level="ARTWORK">
23 <FontString name="$parent_Label" inherits="GameFontNormal">
24 <Color r="1.0" g="1.0" b="1.0"/>
25 <Anchors>
26 <Anchor point="LEFT" relativePoint="RIGHT">
27 <Offset><AbsDimension x="5" y="0"/></Offset>
28 </Anchor>
29 </Anchors>
30 </FontString>
31 </Layer>
32 </Layers>
33 </Button>
34  
35 <Slider name="DL_OptionsSliderTemplate" orientation="HORIZONTAL" virtual="true" enableMouse="true">
36 <Size>
37 <AbsDimension x="128" y="17"/>
38 </Size>
39 <HitRectInsets>
40 <AbsInset left="0" right="0" top="-10" bottom="-10"/>
41 </HitRectInsets>
42 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
43 <EdgeSize>
44 <AbsValue val="8"/>
45 </EdgeSize>
46 <TileSize>
47 <AbsValue val="8"/>
48 </TileSize>
49 <BackgroundInsets>
50 <AbsInset left="3" right="3" top="6" bottom="6"/>
51 </BackgroundInsets>
52 </Backdrop>
53 <Layers>
54 <Layer level="ARTWORK">
55 <FontString name="$parentText" inherits="GameFontNormalSmall">
56 <Anchors>
57 <Anchor point="BOTTOM" relativePoint="TOP"/>
58 </Anchors>
59 </FontString>
60 <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="LOW">
61 <Anchors>
62 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
63 <Offset>
64 <AbsDimension x="2" y="3"/>
65 </Offset>
66 </Anchor>
67 </Anchors>
68 </FontString>
69 <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="HIGH">
70 <Anchors>
71 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
72 <Offset>
73 <AbsDimension x="-2" y="3"/>
74 </Offset>
75 </Anchor>
76 </Anchors>
77 </FontString>
78 </Layer>
79 </Layers>
80 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
81 <Size>
82 <AbsDimension x="32" y="32"/>
83 </Size>
84 </ThumbTexture>
85 </Slider>
86  
87 <Slider name="DiscordLib_SliderTemplate" inherits="DL_OptionsSliderTemplate" virtual="true" frameStrata="HIGH">
88 <Size><AbsDimension x="130" y="20"/></Size>
89 <Scripts>
90 <OnUpdate>
91 if (not this.minmaxset) then
92 this.minmaxset = 1;
93 local min, max = this:GetMinMaxValues();
94 getglobal(this:GetName().."Low"):SetText(min);
95 getglobal(this:GetName().."High"):SetText(max);
96 end
97 </OnUpdate>
98 </Scripts>
99 <Layers>
100 <Layer level="ARTWORK">
101 <FontString name="$parent_Label" inherits="GameFontNormal">
102 <Color r="1.0" g="1.0" b="1.0"/>
103 <Anchors>
104 <Anchor point="BOTTOM" relativePoint="TOP"/>
105 </Anchors>
106 </FontString>
107 </Layer>
108 </Layers>
109 </Slider>
110  
111 <EditBox name="DiscordLib_SliderEditBoxTemplate" letters="4" autoFocus="false" inherits="InputBoxTemplate" justifyH="CENTER" frameStrata="HIGH" virtual="true">
112 <Size><AbsDimension x="40" y="20"/></Size>
113 <Anchors>
114 <Anchor point="LEFT" relativePoint="RIGHT">
115 <Offset><AbsDimension x="5" y="0"/></Offset>
116 </Anchor>
117 </Anchors>
118 <Scripts>
119 <OnLoad>
120 this:SetTextColor(1,1,0);
121 </OnLoad>
122 <OnEscapePressed>
123 this:SetText(this:GetParent():GetValue());
124 this:ClearFocus();
125 </OnEscapePressed>
126 </Scripts>
127 </EditBox>
128  
129 <EditBox name="DiscordLib_EditBoxTemplate" letters="1000" autoFocus="false" inherits="InputBoxTemplate" virtual="true" frameStrata="HIGH">
130 <Scripts>
131 <OnEscapePressed>
132 if (this.prevvalue) then
133 this:SetText(this.prevvalue);
134 else
135 this:SetText("");
136 end
137 this:ClearFocus();
138 </OnEscapePressed>
139 </Scripts>
140 <Layers>
141 <Layer level="ARTWORK">
142 <FontString name="$parent_Label" inherits="GameFontNormal">
143 <Color r="1.0" g="1.0" b="1.0"/>
144 <Anchors>
145 <Anchor point="RIGHT" relativePoint="LEFT">
146 <Offset><AbsDimension x="-5" y="0"/></Offset>
147 </Anchor>
148 </Anchors>
149 </FontString>
150 </Layer>
151 </Layers>
152 </EditBox>
153  
154 <Button name="DiscordLib_MenuOptionTemplate" virtual="true">
155 <Size><AbsDimension x="170" y="15"/></Size>
156 <HighlightTexture name = "$parentHighlight" alphaMode="ADD" file="Interface\QuestFrame\UI-QuestTitleHighlight"/>
157 <Layers>
158 <Layer level="ARTWORK">
159 <FontString inherits="GameFontNormal" name="$parent_Text">
160 <Color r="1.0" g="1.0" b="1.0"/>
161 <Anchors><Anchor point="LEFT"/></Anchors>
162 </FontString>
163 </Layer>
164 </Layers>
165 <Scripts>
166 <OnEnter>
167 if (this.desc) then
168 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
169 GameTooltip:SetText(this.desc, 1, 1, 1, 1, 1);
170 end
171 this:GetParent().timer = nil;
172 </OnEnter>
173 <OnLeave>
174 GameTooltip:Hide();
175 </OnLeave>
176 </Scripts>
177 </Button>
178  
179 <Button name="DiscordLib_MenuControlTemplate" inherits="DiscordLib_TooltipBackdropTemplate" virtual="true" frameStrata="HIGH">
180 <Frames>
181 <Button name="$parent_Button">
182 <Size><AbsDimension x="32" y="32"/></Size>
183 <Anchors>
184 <Anchor point="LEFT" relativePoint="RIGHT">
185 <Offset><AbsDimension x="-29" y="-1"/></Offset>
186 </Anchor>
187 </Anchors>
188 <HitRectInsets>
189 <AbsInset left="6" right="6" top="7" bottom="7"/>
190 </HitRectInsets>
191 <Scripts>
192 <OnClick>
193 DL_Show_Menu(1);
194 </OnClick>
195 </Scripts>
196 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
197 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
198 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
199 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
200 </Button>
201 </Frames>
202 <Layers>
203 <Layer level="ARTWORK">
204 <FontString name="$parent_Label" inherits="GameFontNormal">
205 <Color r="1.0" g="1.0" b="1.0"/>
206 <Anchors>
207 <Anchor point="RIGHT" relativePoint="LEFT">
208 <Offset><AbsDimension x="-5" y="0"/></Offset>
209 </Anchor>
210 </Anchors>
211 </FontString>
212 <FontString name="$parent_Setting" inherits="GameFontNormal">
213 <Color r="1.0" g="1.0" b="0.0"/>
214 <Anchors>
215 <Anchor point="LEFT">
216 <Offset><AbsDimension x="3" y="0"/></Offset>
217 </Anchor>
218 <Anchor point="RIGHT">
219 <Offset><AbsDimension x="-20" y="0"/></Offset>
220 </Anchor>
221 </Anchors>
222 </FontString>
223 </Layer>
224 </Layers>
225 <Scripts>
226 <OnClick>
227 DL_Show_Menu();
228 </OnClick>
229 </Scripts>
230 </Button>
231  
232 <Frame name="DiscordLib_EditMenuControlTemplate" virtual="true" frameStrata="HIGH">
233 <Frames>
234 <Button name="$parent_Button">
235 <Size><AbsDimension x="36" y="36"/></Size>
236 <Anchors>
237 <Anchor point="LEFT" relativePoint="RIGHT">
238 <Offset><AbsDimension x="-17" y="-1"/></Offset>
239 </Anchor>
240 </Anchors>
241 <HitRectInsets>
242 <AbsInset left="6" right="6" top="7" bottom="7"/>
243 </HitRectInsets>
244 <Scripts>
245 <OnClick>
246 DL_Show_Menu(1);
247 </OnClick>
248 </Scripts>
249 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
250 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
251 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
252 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
253 </Button>
254 <EditBox name="$parent_Setting" letters="1000" autoFocus="false" inherits="InputBoxTemplate" frameStrata="HIGH">
255 <Size><AbsDimension x="100" y="22"/></Size>
256 <Anchors>
257 <Anchor point="LEFT">
258 <Offset><AbsDimension x="0" y="0"/></Offset>
259 </Anchor>
260 <Anchor point="RIGHT">
261 <Offset><AbsDimension x="0" y="0"/></Offset>
262 </Anchor>
263 </Anchors>
264 <FontString inherits="ChatFontNormal" font="Fonts\ARIALN.TTF">
265 <Color r="1" g="1" b="0"/>
266 <FontHeight>
267 <AbsValue val="12"/>
268 </FontHeight>
269 </FontString>
270 <Scripts>
271 <OnEscapePressed>
272 if (this:GetParent().prevvalue) then
273 this:SetText(this:GetParent().prevvalue);
274 else
275 this:SetText("");
276 end
277 this:ClearFocus();
278 </OnEscapePressed>
279 <OnEnterPressed>
280 if (this:GetParent().editFunc) then
281 this:GetParent().editFunc();
282 end
283 </OnEnterPressed>
284 </Scripts>
285 </EditBox>
286 </Frames>
287 <Layers>
288 <Layer level="ARTWORK">
289 <FontString name="$parent_Label" inherits="GameFontNormal">
290 <Color r="1.0" g="1.0" b="1.0"/>
291 <Anchors>
292 <Anchor point="RIGHT" relativePoint="LEFT">
293 <Offset><AbsDimension x="-5" y="0"/></Offset>
294 </Anchor>
295 </Anchors>
296 </FontString>
297 </Layer>
298 </Layers>
299 </Frame>
300  
301 <Button name="DL_NudgeTemplate" inherits="UIPanelButtonTemplate" virtual="true">
302 <Size><AbsDimension x="20" y="20"/></Size>
303 <Scripts>
304 <OnLoad>
305 DL_NudgeButton_OnLoad();
306 </OnLoad>
307 <OnMouseDown>
308 if (arg1 == "MiddleButton") then
309 this.movingframe = true;
310 end
311 </OnMouseDown>
312 </Scripts>
313 </Button>
314  
315 <ScrollFrame name="DL_ScrollFrameTemplate" inherits="FauxScrollFrameTemplate" virtual="true">
316 <Size><AbsDimension x="210" y="410"/></Size>
317 <Frames>
318 <Frame name="$parent_OuterBorder" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="HIGH">
319 <Size><AbsDimension x="246" y="446"/></Size>
320 <Anchors>
321 <Anchor point="TOPLEFT">
322 <Offset><AbsDimension x="-5" y="29"/></Offset>
323 </Anchor>
324 <Anchor point="BOTTOMRIGHT">
325 <Offset><AbsDimension x="31" y="-7"/></Offset>
326 </Anchor>
327 </Anchors>
328 <Layers>
329 <Layer level="OVERLAY">
330 <FontString name="$parent_Header" inherits="GameFontNormal">
331 <Anchors>
332 <Anchor point="TOP">
333 <Offset><AbsDimension x="0" y="-8"/></Offset>
334 </Anchor>
335 </Anchors>
336 </FontString>
337 <Texture name="$parent_TopBorder">
338 <Size><AbsDimension x="206" y="2"/></Size>
339 <Color r=".4" g="0" b="0"/>
340 <Anchors>
341 <Anchor point="TOPLEFT">
342 <Offset><AbsDimension x="5" y="-25"/></Offset>
343 </Anchor>
344 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
345 <Offset><AbsDimension x="-5" y="-27"/></Offset>
346 </Anchor>
347 </Anchors>
348 </Texture>
349 <Texture name="$parent_BarLeftBorder">
350 <Size><AbsDimension x="2" y="200"/></Size>
351 <Color r=".4" g="0" b="0"/>
352 <Anchors>
353 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
354 <Offset><AbsDimension x="-31" y="-25"/></Offset>
355 </Anchor>
356 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
357 <Offset><AbsDimension x="-30" y="4"/></Offset>
358 </Anchor>
359 </Anchors>
360 </Texture>
361 <Texture name="$parent_UpBorder">
362 <Size><AbsDimension x="30" y="1"/></Size>
363 <Color r=".4" g="0" b="0"/>
364 <Anchors>
365 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
366 <Offset><AbsDimension x="-31" y="-45"/></Offset>
367 </Anchor>
368 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
369 <Offset><AbsDimension x="-5" y="-46"/></Offset>
370 </Anchor>
371 </Anchors>
372 </Texture>
373 <Texture name="$parent_DownBorder">
374 <Size><AbsDimension x="30" y="1"/></Size>
375 <Color r=".4" g="0" b="0"/>
376 <Anchors>
377 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT">
378 <Offset><AbsDimension x="-31" y="25"/></Offset>
379 </Anchor>
380 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
381 <Offset><AbsDimension x="-5" y="24"/></Offset>
382 </Anchor>
383 </Anchors>
384 </Texture>
385 </Layer>
386 </Layers>
387 <Scripts>
388 <OnLoad>
389 this:SetBackdropColor(0, 0, 0, 0);
390 this:SetBackdropBorderColor(1, 0, 0);
391 </OnLoad>
392 </Scripts>
393 </Frame>
394 </Frames>
395 <Layers>
396 <Layer level="ARTWORK">
397 <Texture name="$parent_Background">
398 <Color r="0" g="0" b="0"/>
399 <Anchors>
400 <Anchor point="TOPLEFT">
401 <Offset><AbsDimension x="0" y="24"/></Offset>
402 </Anchor>
403 <Anchor point="BOTTOMRIGHT">
404 <Offset><AbsDimension x="26" y="-2"/></Offset>
405 </Anchor>
406 </Anchors>
407 </Texture>
408 </Layer>
409 </Layers>
410 </ScrollFrame>
411  
412 <CheckButton name="DL_ScrollButtonTemplate" virtual="true">
413 <Size><AbsDimension x="200" y="20"/></Size>
414 <HighlightTexture name = "$parentHighlight" alphaMode="ADD" file="Interface\QuestFrame\UI-QuestTitleHighlight"/>
415 <CheckedTexture name = "$parentChecked" alphaMode="ADD" file="Interface\AddOns\DiscordLibrary\PlainBackdrop"/>
416 <Layers>
417 <Layer level="OVERLAY">
418 <FontString name="$parentText" font="Fonts\ARIALN.TTF" justifyH="LEFT" justifyV="CENTER">
419 <Color r="1" g="1" b="1"/>
420 <FontHeight>
421 <AbsValue val="12"/>
422 </FontHeight>
423 <Shadow>
424 <Offset>
425 <AbsDimension x="1" y="-1"/>
426 </Offset>
427 <Color r="0" g="0" b="0"/>
428 </Shadow>
429 <Anchors>
430 <Anchor point="TOPLEFT"/>
431 <Anchor point="BOTTOMRIGHT"/>
432 </Anchors>
433 </FontString>
434 </Layer>
435 </Layers>
436 <Scripts>
437 <OnEnter>
438 this:GetParent().timer = nil;
439 if (this.desc) then
440 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
441 GameTooltip:SetText(this.desc, 1, 1, 1, 1, 1);
442 end
443 </OnEnter>
444 <OnLeave>
445 GameTooltip:Hide();
446 </OnLeave>
447 </Scripts>
448 </CheckButton>
449  
450 <CheckButton name="DL_TabButtonTemplate" virtual="true">
451 <Size><AbsDimension x="100" y="24"/></Size>
452 <Layers>
453 <Layer level="BORDER">
454 <Texture name="$parent_Border">
455 <Color r="1" g="1" b="1"/>
456 <Anchors>
457 <Anchor point="TOPLEFT">
458 <Offset><AbsDimension x="-2" y="2"/></Offset>
459 </Anchor>
460 <Anchor point="BOTTOMRIGHT">
461 <Offset><AbsDimension x="2" y="-2"/></Offset>
462 </Anchor>
463 </Anchors>
464 </Texture>
465 </Layer>
466 <Layer level="ARTWORK">
467 <Texture name="$parent_Background">
468 <Color r="1" g="1" b="1"/>
469 <Anchors>
470 <Anchor point="TOPLEFT"/>
471 <Anchor point="BOTTOMRIGHT"/>
472 </Anchors>
473 </Texture>
474 </Layer>
475 <Layer level="OVERLAY">
476 <FontString name="$parent_Text" inherits="GameFontNormal">
477 <Color r="1" g="1" b="0"/>
478 <Anchors>
479 <Anchor point="CENTER"/>
480 </Anchors>
481 </FontString>
482 </Layer>
483 </Layers>
484 <Scripts>
485 <OnEnter>
486 getglobal(this:GetName().."_Background"):SetVertexColor(1, 1, 0);
487 getglobal(this:GetName().."_Text"):SetTextColor(1, 0, 0);
488 </OnEnter>
489 <OnLeave>
490 if (not this:GetChecked()) then
491 getglobal(this:GetName().."_Background"):SetVertexColor(0, 0, 0);
492 getglobal(this:GetName().."_Text"):SetTextColor(1, 1, 0);
493 end
494 </OnLeave>
495 <OnClick>
496 DL_TabButton_OnClick();
497 </OnClick>
498 </Scripts>
499 </CheckButton>
500  
501 <Button name="DL_ScrollMenuTemplate" inherits="DiscordLib_TooltipBackdropTemplate" hidden="true" frameStrata="DIALOG" virtual="true">
502 <Size><AbsDimension x="246" y="225"/></Size>
503 <Frames>
504 <ScrollFrame name="$parent_ScrollFrame" inherits="DL_ScrollFrameTemplate">
505 <Size><AbsDimension x="200" y="210"/></Size>
506 <Anchors>
507 <Anchor point="TOPLEFT">
508 <Offset><AbsDimension x="15" y="-8"/></Offset>
509 </Anchor>
510 </Anchors>
511 <Scripts>
512 <OnLoad>
513 getglobal(this:GetName().."_OuterBorder"):SetBackdropBorderColor(0, 0, 0, 0);
514 getglobal(this:GetName().."_OuterBorder_TopBorder"):Hide();
515 getglobal(this:GetName().."_Background"):Hide();
516 </OnLoad>
517 <OnVerticalScroll>
518 FauxScrollFrame_OnVerticalScroll(20, this:GetParent().updateFunc);
519 </OnVerticalScroll>
520 </Scripts>
521 </ScrollFrame>
522 <CheckButton name="$parent_Button1" inherits="DL_ScrollButtonTemplate" id="1" frameStrata="DIALOG">
523 <Anchors>
524 <Anchor point="TOPLEFT" relativeTo="$parent_ScrollFrame">
525 <Offset><AbsDimension x="5" y="-5"/></Offset>
526 </Anchor>
527 </Anchors>
528 </CheckButton>
529 <CheckButton name="$parent_Button2" inherits="DL_ScrollButtonTemplate" id="2" frameStrata="DIALOG"/>
530 <CheckButton name="$parent_Button3" inherits="DL_ScrollButtonTemplate" id="3" frameStrata="DIALOG"/>
531 <CheckButton name="$parent_Button4" inherits="DL_ScrollButtonTemplate" id="4" frameStrata="DIALOG"/>
532 <CheckButton name="$parent_Button5" inherits="DL_ScrollButtonTemplate" id="5" frameStrata="DIALOG"/>
533 <CheckButton name="$parent_Button6" inherits="DL_ScrollButtonTemplate" id="6" frameStrata="DIALOG"/>
534 <CheckButton name="$parent_Button7" inherits="DL_ScrollButtonTemplate" id="7" frameStrata="DIALOG"/>
535 <CheckButton name="$parent_Button8" inherits="DL_ScrollButtonTemplate" id="8" frameStrata="DIALOG"/>
536 <CheckButton name="$parent_Button9" inherits="DL_ScrollButtonTemplate" id="9" frameStrata="DIALOG"/>
537 <CheckButton name="$parent_Button10" inherits="DL_ScrollButtonTemplate" id="10" frameStrata="DIALOG"/>
538 </Frames>
539 <Scripts>
540 <OnLoad>
541 this:EnableMouseWheel(false);
542 </OnLoad>
543 <OnHide>
544 this.timer = nil;
545 if (this.addedoptions) then
546 for i in this.addedoptions do
547 getglobal(this.table)[i] = nil;
548 end
549 end
550 </OnHide>
551 <OnUpdate>
552 DL_Menu_Timeout(arg1);
553 </OnUpdate>
554 </Scripts>
555 </Button>
556  
557 <Button name="DL_DropMenuTemplate" inherits="DiscordLib_TooltipBackdropTemplate" hidden="true" frameStrata="DIALOG" virtual="true">
558 <Size><AbsDimension x="10" y="10"/></Size>
559 <Anchors>
560 <Anchor point="CENTER"/>
561 </Anchors>
562 <Frames>
563 <Button name="$parent_Option1" inherits="DiscordLib_MenuOptionTemplate">
564 <Anchors>
565 <Anchor point="TOPLEFT">
566 <Offset><AbsDimension x="10" y="-10"/></Offset>
567 </Anchor>
568 </Anchors>
569 </Button>
570 <Button name="$parent_Option2" inherits="DiscordLib_MenuOptionTemplate"/>
571 <Button name="$parent_Option3" inherits="DiscordLib_MenuOptionTemplate"/>
572 <Button name="$parent_Option4" inherits="DiscordLib_MenuOptionTemplate"/>
573 <Button name="$parent_Option5" inherits="DiscordLib_MenuOptionTemplate"/>
574 <Button name="$parent_Option6" inherits="DiscordLib_MenuOptionTemplate"/>
575 <Button name="$parent_Option7" inherits="DiscordLib_MenuOptionTemplate"/>
576 <Button name="$parent_Option8" inherits="DiscordLib_MenuOptionTemplate"/>
577 <Button name="$parent_Option9" inherits="DiscordLib_MenuOptionTemplate"/>
578 <Button name="$parent_Option10" inherits="DiscordLib_MenuOptionTemplate"/>
579 <Button name="$parent_Option11" inherits="DiscordLib_MenuOptionTemplate"/>
580 <Button name="$parent_Option12" inherits="DiscordLib_MenuOptionTemplate"/>
581 <Button name="$parent_Option13" inherits="DiscordLib_MenuOptionTemplate"/>
582 <Button name="$parent_Option14" inherits="DiscordLib_MenuOptionTemplate"/>
583 <Button name="$parent_Option15" inherits="DiscordLib_MenuOptionTemplate"/>
584 <Button name="$parent_Option16" inherits="DiscordLib_MenuOptionTemplate"/>
585 <Button name="$parent_Option17" inherits="DiscordLib_MenuOptionTemplate"/>
586 <Button name="$parent_Option18" inherits="DiscordLib_MenuOptionTemplate"/>
587 <Button name="$parent_Option19" inherits="DiscordLib_MenuOptionTemplate"/>
588 <Button name="$parent_Option20" inherits="DiscordLib_MenuOptionTemplate"/>
589 <Button name="$parent_Option21" inherits="DiscordLib_MenuOptionTemplate"/>
590 <Button name="$parent_Option22" inherits="DiscordLib_MenuOptionTemplate"/>
591 <Button name="$parent_Option23" inherits="DiscordLib_MenuOptionTemplate"/>
592 <Button name="$parent_Option24" inherits="DiscordLib_MenuOptionTemplate"/>
593 <Button name="$parent_Option25" inherits="DiscordLib_MenuOptionTemplate"/>
594 <Button name="$parent_Option26" inherits="DiscordLib_MenuOptionTemplate"/>
595 <Button name="$parent_Option27" inherits="DiscordLib_MenuOptionTemplate"/>
596 <Button name="$parent_Option28" inherits="DiscordLib_MenuOptionTemplate"/>
597 <Button name="$parent_Option29" inherits="DiscordLib_MenuOptionTemplate"/>
598 <Button name="$parent_Option30" inherits="DiscordLib_MenuOptionTemplate"/>
599 <Button name="$parent_Option31" inherits="DiscordLib_MenuOptionTemplate"/>
600 <Button name="$parent_Option32" inherits="DiscordLib_MenuOptionTemplate"/>
601 <Button name="$parent_Option33" inherits="DiscordLib_MenuOptionTemplate"/>
602 <Button name="$parent_Option34" inherits="DiscordLib_MenuOptionTemplate"/>
603 <Button name="$parent_Option35" inherits="DiscordLib_MenuOptionTemplate"/>
604 <Button name="$parent_Option36" inherits="DiscordLib_MenuOptionTemplate"/>
605 <Button name="$parent_Option37" inherits="DiscordLib_MenuOptionTemplate"/>
606 <Button name="$parent_Option38" inherits="DiscordLib_MenuOptionTemplate"/>
607 <Button name="$parent_Option39" inherits="DiscordLib_MenuOptionTemplate"/>
608 <Button name="$parent_Option40" inherits="DiscordLib_MenuOptionTemplate"/>
609 <Button name="$parent_Option41" inherits="DiscordLib_MenuOptionTemplate"/>
610 <Button name="$parent_Option42" inherits="DiscordLib_MenuOptionTemplate"/>
611 <Button name="$parent_Option43" inherits="DiscordLib_MenuOptionTemplate"/>
612 <Button name="$parent_Option44" inherits="DiscordLib_MenuOptionTemplate"/>
613 <Button name="$parent_Option45" inherits="DiscordLib_MenuOptionTemplate"/>
614 <Button name="$parent_Option46" inherits="DiscordLib_MenuOptionTemplate"/>
615 <Button name="$parent_Option47" inherits="DiscordLib_MenuOptionTemplate"/>
616 <Button name="$parent_Option48" inherits="DiscordLib_MenuOptionTemplate"/>
617 <Button name="$parent_Option49" inherits="DiscordLib_MenuOptionTemplate"/>
618 <Button name="$parent_Option50" inherits="DiscordLib_MenuOptionTemplate"/>
619 </Frames>
620 <Scripts>
621 <OnLoad>
622 this:SetBackdropColor(.2,.2,.2);
623 this.count = 50;
624 </OnLoad>
625 <OnEnter>
626 this.timer = nil;
627 </OnEnter>
628 <OnLeave>
629 this.timer = .5;
630 </OnLeave>
631 <OnHide>
632 this.timer = nil;
633 if (this.addedoptions) then
634 for i in this.addedoptions do
635 getglobal(this.table)[i] = nil;
636 end
637 end
638 </OnHide>
639 <OnUpdate>
640 DL_Menu_Timeout(arg1);
641 </OnUpdate>
642 </Scripts>
643 </Button>
644  
645 <ScrollFrame name="DL_MultiLineEditboxTemplate" inherits="UIPanelScrollFrameTemplate" frameStrata="HIGH" virtual="true">
646 <Size><AbsDimension x="337" y="510"/></Size>
647 <Frames>
648 <Frame name="$parent_Background" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="MEDIUM">
649 <Size><AbsDimension x="10" y="10"/></Size>
650 <Anchors>
651 <Anchor point="TOPLEFT">
652 <Offset><AbsDimension x="-7" y="7"/></Offset>
653 </Anchor>
654 <Anchor point="BOTTOMRIGHT">
655 <Offset><AbsDimension x="28" y="-6"/></Offset>
656 </Anchor>
657 </Anchors>
658 <Layers>
659 <Layer level="OVERLAY">
660 <Texture>
661 <Size><AbsDimension x="2" y="200"/></Size>
662 <Color r=".4" g="0" b="0"/>
663 <Anchors>
664 <Anchor point="TOPRIGHT">
665 <Offset><AbsDimension x="-24" y="-4"/></Offset>
666 </Anchor>
667 <Anchor point="BOTTOMRIGHT">
668 <Offset><AbsDimension x="-22" y="4"/></Offset>
669 </Anchor>
670 </Anchors>
671 </Texture>
672 <Texture>
673 <Size><AbsDimension x="20" y="2"/></Size>
674 <Color r=".4" g="0" b="0"/>
675 <Anchors>
676 <Anchor point="TOPRIGHT">
677 <Offset><AbsDimension x="-4" y="-23"/></Offset>
678 </Anchor>
679 </Anchors>
680 </Texture>
681 <Texture>
682 <Size><AbsDimension x="20" y="2"/></Size>
683 <Color r=".4" g="0" b="0"/>
684 <Anchors>
685 <Anchor point="BOTTOMRIGHT">
686 <Offset><AbsDimension x="-4" y="23"/></Offset>
687 </Anchor>
688 </Anchors>
689 </Texture>
690 </Layer>
691 </Layers>
692 <Scripts>
693 <OnLoad>
694 this:SetBackdropColor(0, 0, 0);
695 this:SetBackdropBorderColor(1, 0, 0);
696 </OnLoad>
697 </Scripts>
698 </Frame>
699 <Button name="$parent_FocusButton" frameStrata="HIGH">
700 <Size><AbsDimension x="337" y="510"/></Size>
701 <Anchors>
702 <Anchor point="TOPLEFT"/>
703 <Anchor point="BOTTOMRIGHT"/>
704 </Anchors>
705 <Scripts>
706 <OnLoad>
707 this:SetFrameLevel(this:GetParent():GetFrameLevel() + 1);
708 </OnLoad>
709 <OnClick>
710 getglobal(this:GetParent():GetName().."_Text"):SetFocus();
711 this:Hide();
712 </OnClick>
713 </Scripts>
714 </Button>
715 </Frames>
716 <ScrollChild>
717 <EditBox name="$parent_Text" multiLine="true" letters="50000" autoFocus="false" enableMouse="true" frameStrata="HIGH">
718 <Size><AbsDimension x="337" y="510"/></Size>
719 <Scripts>
720 <OnLoad>
721 this:SetHeight(this:GetParent():GetHeight());
722 this:SetWidth(this:GetParent():GetWidth());
723 </OnLoad>
724 <OnTextChanged>
725 local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
726 this:GetParent():UpdateScrollChildRect();
727 local min, max = scrollBar:GetMinMaxValues();
728 if ( max > 0 and (this.max ~= max) ) then
729 this.max = max;
730 scrollBar:SetValue(max);
731 end
732 if (this:GetParent().textChanged) then
733 this:GetParent().textChanged();
734 end
735 </OnTextChanged>
736 <OnEscapePressed>
737 this:ClearFocus();
738 getglobal(this:GetParent():GetName().."_FocusButton"):Show();
739 </OnEscapePressed>
740 <OnHide>
741 getglobal(this:GetParent():GetName().."_FocusButton"):Show();
742 </OnHide>
743 </Scripts>
744 <FontString font="Fonts\ARIALN.TTF">
745 <Color r="1" g="1" b="1"/>
746 <FontHeight>
747 <AbsValue val="12"/>
748 </FontHeight>
749 </FontString>
750 </EditBox>
751 </ScrollChild>
752 </ScrollFrame>
753  
754 </Ui>