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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
2 <Script file="Parchment.lua"/>
3 <Button name="Parchment_TabTemplate" virtual="true" hidden="false">
4 <Size>
5 <AbsDimension x="128" y="64"/>
6 </Size>
7 <HitRectInsets>
8 <AbsInset left="15" right="14" top="13" bottom="15"/>
9 </HitRectInsets>
10 <Scripts>
11 <OnClick>
12 ParchmentTab_OnClick();
13 </OnClick>
14 <OnEnter>
15 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
16 </OnEnter>
17 <OnLeave>
18 GameTooltip:Hide();
19 </OnLeave>
20 </Scripts>
21 <NormalText inherits="GameFontNormalSmall">
22 <Anchors>
23 <Anchor point="CENTER">
24 <Offset>
25 <AbsDimension x="0" y="3"/>
26 </Offset>
27 </Anchor>
28 </Anchors>
29 </NormalText>
30 <HighlightText inherits="GameFontHighlightSmall">
31 <Anchors>
32 <Anchor point="CENTER">
33 <Offset>
34 <AbsDimension x="0" y="3"/>
35 </Offset>
36 </Anchor>
37 </Anchors>
38 </HighlightText>
39 <DisabledText inherits="GameFontHighlightSmall">
40 <Anchors>
41 <Anchor point="CENTER">
42 <Offset>
43 <AbsDimension x="0" y="6"/>
44 </Offset>
45 </Anchor>
46 </Anchors>
47 </DisabledText>
48 <NormalTexture file="Interface\SpellBook\UI-SpellBook-Tab-Unselected"/>
49 <HighlightTexture file="Interface\SpellBook\UI-SpellbookPanel-Tab-Highlight"/>
50 </Button>
51  
52 <Frame name="ParchmentFrame_Template" virtual="true">
53 <Size>
54 <AbsDimension x="384" y="512"/>
55 </Size>
56 <Anchors>
57 <Anchor point="TOPLEFT">
58 <Offset>
59 <AbsDimension x="0" y="-104"/>
60 </Offset>
61 </Anchor>
62 </Anchors>
63 <Layers>
64 <Layer level="ARTWORK">
65 <FontString name="ParchmentTitleText" inherits="GameFontNormal">
66 <Anchors>
67 <Anchor point="CENTER">
68 <Offset>
69 <AbsDimension x="6" y="226"/>
70 </Offset>
71 </Anchor>
72 </Anchors>
73 </FontString>
74 </Layer>
75 <Layer level="BACKGROUND">
76 <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopLeft">
77 <Size>
78 <AbsDimension x="256" y="256"/>
79 </Size>
80 <Anchors>
81 <Anchor point="TOPLEFT"/>
82 </Anchors>
83 </Texture>
84 <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopRight">
85 <Size>
86 <AbsDimension x="128" y="256"/>
87 </Size>
88 <Anchors>
89 <Anchor point="TOPLEFT">
90 <Offset>
91 <AbsDimension x="256" y="0"/>
92 </Offset>
93 </Anchor>
94 </Anchors>
95 </Texture>
96 <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotLeft">
97 <Size>
98 <AbsDimension x="256" y="256"/>
99 </Size>
100 <Anchors>
101 <Anchor point="TOPLEFT">
102 <Offset>
103 <AbsDimension x="0" y="-256"/>
104 </Offset>
105 </Anchor>
106 </Anchors>
107 </Texture>
108 <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotRight">
109 <Size>
110 <AbsDimension x="128" y="256"/>
111 </Size>
112 <Anchors>
113 <Anchor point="TOPLEFT">
114 <Offset>
115 <AbsDimension x="256" y="-256"/>
116 </Offset>
117 </Anchor>
118 </Anchors>
119 </Texture>
120 </Layer>
121 </Layers>
122 </Frame>
123  
124 <Frame name="ParchmentFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
125 <Size>
126 <AbsDimension x="384" y="512"/>
127 </Size>
128 <Anchors>
129 <Anchor point="TOPLEFT">
130 <Offset>
131 <AbsDimension x="0" y="-104"/>
132 </Offset>
133 </Anchor>
134 </Anchors>
135 <Layers>
136 <Layer level="BACKGROUND">
137 <Texture name="ParchmentFramePortrait" file="Interface\FriendsFrame\FriendsFrameScrollIcon">
138 <Size>
139 <AbsDimension x="60" y="60"/>
140 </Size>
141 <Anchors>
142 <Anchor point="TOPLEFT">
143 <Offset>
144 <AbsDimension x="8" y="-9"/>
145 </Offset>
146 </Anchor>
147 </Anchors>
148 </Texture>
149 </Layer>
150 </Layers>
151 <Frames>
152 <Button name="ParchmentFrameCloseButton" inherits="UIPanelCloseButton">
153 <Anchors>
154 <Anchor point="TOPRIGHT">
155 <Offset>
156 <AbsDimension x="-26" y="-15"/>
157 </Offset>
158 </Anchor>
159 </Anchors>
160 <Scripts>
161 <OnClick>
162 HideUIPanel(ParchmentFrame);
163 </OnClick>
164 </Scripts>
165 </Button>
166 <!-- Tabs -->
167 <Button name="ParchmentFrameTab1" inherits="Parchment_TabTemplate" id="1" text="Parchment">
168 <Anchors>
169 <Anchor point="CENTER" relativePoint="BOTTOMLEFT">
170 <Offset>
171 <AbsDimension x="79" y="55"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
176 </Button>
177 <Button name="ParchmentFrameTab2" inherits="Parchment_TabTemplate" id="2" text="Options">
178 <Anchors>
179 <Anchor point="LEFT" relativeTo="ParchmentFrameTab1" relativePoint="RIGHT">
180 <Offset>
181 <AbsDimension x="-20" y="0"/>
182 </Offset>
183 </Anchor>
184 </Anchors>
185 <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
186 </Button>
187 <!-- End Tabs -->
188 <Frame name="ParchmentDataFrame" inherits="ParchmentFrame_Template" hidden="true">
189 <Anchors>
190 <Anchor point="TOPLEFT"/>
191 </Anchors>
192 <Size>
193 <AbsDimension x="384" y="512"/>
194 </Size>
195 <Frames>
196 <Button name="ParchmentDeleteButton" inherits="UIPanelButtonTemplate" text="Delete">
197 <Size>
198 <AbsDimension x="65" y="22"/>
199 </Size>
200 <Anchors>
201 <Anchor point="TOPLEFT" relativeTo="ParchmentFrame" relativePoint="TOPLEFT">
202 <Offset>
203 <AbsDimension x="70" y="-50"/>
204 </Offset>
205 </Anchor>
206 </Anchors>
207 <Scripts>
208 <OnEnter>
209 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
210 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
211 </OnEnter>
212 <OnLeave>
213 GameTooltip:Hide();
214 </OnLeave>
215 <OnClick>
216 Parchment_Delete_Character();
217 </OnClick>
218 </Scripts>
219 </Button>
220  
221 <Frame name="Parchment_UserDropdown" inherits="UIDropDownMenuTemplate" enableMouse="true">
222 <Anchors>
223 <Anchor point="TOPLEFT" relativeTo="ParchmentDeleteButton" relativePoint="TOPRIGHT">
224 <Offset>
225 <AbsDimension x="-7" y="2"/>
226 </Offset>
227 </Anchor>
228 </Anchors>
229 <Scripts>
230 <OnEnter>
231 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
232 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
233 </OnEnter>
234 <OnLeave>
235 GameTooltip:Hide();
236 </OnLeave>
237 </Scripts>
238 </Frame>
239  
240 <CheckButton name="Parchment_Tack" inherits="UICheckButtonTemplate">
241 <Anchors>
242 <Anchor point="TOPLEFT" relativeTo="Parchment_UserDropdown" relativePoint="TOPRIGHT">
243 <Offset>
244 <AbsDimension x="-8" y="2"/>
245 </Offset>
246 </Anchor>
247 </Anchors>
248 <HitRectInsets>
249 <AbsInset left="0" right="-100" top="0" bottom="0"/>
250 </HitRectInsets>
251 <Scripts>
252 <OnClick>
253 Parchment_Tack_Character();
254 </OnClick>
255 <OnEnter>
256 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
257 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
258 </OnEnter>
259 <OnLeave>
260 GameTooltip:Hide();
261 </OnLeave>
262 </Scripts>
263 </CheckButton>
264 <Button name="ParchmentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
265 <Size>
266 <AbsDimension x="77" y="21"/>
267 </Size>
268 <Anchors>
269 <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT">
270 <Offset>
271 <AbsDimension x="20" y="74"/>
272 </Offset>
273 </Anchor>
274 </Anchors>
275 <Scripts>
276 <OnClick>
277 Parchment_Cancel();
278 </OnClick>
279 </Scripts>
280 </Button>
281 <Button name="ParchmentClearButton" inherits="UIPanelButtonTemplate" text="Clear">
282 <Size>
283 <AbsDimension x="77" y="21"/>
284 </Size>
285 <Anchors>
286 <Anchor point="BOTTOM" relativeTo="ParchmentFrame" relativePoint="BOTTOM">
287 <Offset>
288 <AbsDimension x="0" y="73"/>
289 </Offset>
290 </Anchor>
291 </Anchors>
292 <Scripts>
293 <OnClick>
294 Parchment_Clear();
295 </OnClick>
296 </Scripts>
297 </Button>
298 <Button name="ParchmentSaveButton" inherits="UIPanelButtonTemplate" text="Save">
299 <Size>
300 <AbsDimension x="77" y="21"/>
301 </Size>
302 <Anchors>
303 <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT">
304 <Offset>
305 <AbsDimension x="-39" y="74"/>
306 </Offset>
307 </Anchor>
308 </Anchors>
309 <Scripts>
310 <OnClick>
311 HideUIPanel(ParchmentFrame);
312 </OnClick>
313 </Scripts>
314 </Button>
315 <ScrollFrame name="ParchmentScrollFrame" inherits="UIPanelScrollFrameTemplate">
316 <Size>
317 <AbsDimension x="300" y="334"/>
318 </Size>
319 <Anchors>
320 <Anchor point="TOPLEFT">
321 <Offset>
322 <AbsDimension x="23" y="-81"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <Layers>
327 <Layer level="ARTWORK">
328 <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
329 <Size>
330 <AbsDimension x="30" y="256"/>
331 </Size>
332 <Anchors>
333 <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
334 <Offset>
335 <AbsDimension x="0" y="5"/>
336 </Offset>
337 </Anchor>
338 </Anchors>
339 <TexCoords left="1" right="1" top="1" bottom="1"/>
340 </Texture>
341 <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
342 <Size>
343 <AbsDimension x="31" y="106"/>
344 </Size>
345 <Anchors>
346 <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
347 <Offset>
348 <AbsDimension x="0" y="-2"/>
349 </Offset>
350 </Anchor>
351 </Anchors>
352 <TexCoords left="1" right="1" top="1" bottom="1"/>
353 </Texture>
354 <FontString name="Parchment_Text_Length" inherits="GameFontNormal">
355 <Anchors>
356 <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentSaveButton">
357 <Offset>
358 <AbsDimension x="0" y="-25" />
359 </Offset>
360 </Anchor>
361 </Anchors>
362 </FontString>
363 </Layer>
364 </Layers>
365 <ScrollChild>
366 <Frame name="ParchmentScrollChildFrame" enableMouse="true">
367 <Size>
368 <AbsDimension x="300" y="255"/>
369 </Size>
370 <Anchors>
371 <Anchor point="TOPLEFT">
372 <Offset>
373 <AbsDimension x="0" y="0"/>
374 </Offset>
375 </Anchor>
376 </Anchors>
377 <Frames>
378 <EditBox name="ParchmentEditBox" letters="900" multiLine="true" enableMouse="true" autoFocus="false">
379 <Size>
380 <AbsDimension x="270" y="200"/>
381 </Size>
382 <Anchors>
383 <Anchor point="TOPLEFT">
384 <Offset>
385 <AbsDimension x="20" y="-10"/>
386 </Offset>
387 </Anchor>
388 </Anchors>
389 <Scripts>
390 <OnEscapePressed>
391 HideUIPanel(ParchmentFrame);
392 </OnEscapePressed>
393 <OnTextChanged>
394 local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar")
395 this:GetParent():GetParent():UpdateScrollChildRect();
396 local min;
397 local max;
398 min, max = scrollBar:GetMinMaxValues();
399 if ( max > 0 and (this.max ~= max) ) then
400 this.max = max;
401 end
402 Parchment_UpdateTextLength(); <!-- Might not be needed if the dropdown change is considered ontextchanged -->
403 </OnTextChanged>
404 <OnClick>
405 this:SetFocus();
406 </OnClick>
407 </Scripts>
408 <FontString inherits="ItemTextFontNormal"/>
409 </EditBox>
410 </Frames>
411 <Scripts>
412 <OnMouseUp>
413 ParchmentEditBox:SetFocus();
414 </OnMouseUp>
415 </Scripts>
416 </Frame>
417 </ScrollChild>
418 </ScrollFrame>
419 </Frames>
420 <Scripts>
421 <OnShow>
422 ParchmentDataFrame_OnShow();
423 </OnShow>
424 <OnHide>
425 ParchmentSaveText();
426 </OnHide>
427 </Scripts>
428 </Frame>
429  
430 <Frame name="ParchmentOptionsFrame" inherits="ParchmentFrame_Template" hidden="true">
431 <Anchors>
432 <Anchor point="TOPLEFT"/>
433 </Anchors>
434 <Size>
435 <AbsDimension x="384" y="512"/>
436 </Size>
437  
438 <Layer level="BACKGROUND">
439 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
440 <Size>
441 <AbsDimension x="256" y="256"/>
442 </Size>
443 <Anchors>
444 <Anchor point="TOPLEFT">
445 <Offset>
446 <AbsDimension x="2" y="-1"/>
447 </Offset>
448 </Anchor>
449 </Anchors>
450 </Texture>
451 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
452 <Size>
453 <AbsDimension x="128" y="256"/>
454 </Size>
455 <Anchors>
456 <Anchor point="TOPRIGHT">
457 <Offset>
458 <AbsDimension x="2" y="-1"/>
459 </Offset>
460 </Anchor>
461 </Anchors>
462 </Texture>
463 <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft">
464 <Size>
465 <AbsDimension x="256" y="256"/>
466 </Size>
467 <Anchors>
468 <Anchor point="BOTTOMLEFT">
469 <Offset>
470 <AbsDimension x="2" y="-1"/>
471 </Offset>
472 </Anchor>
473 </Anchors>
474 </Texture>
475 <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotRight">
476 <Size>
477 <AbsDimension x="128" y="256"/>
478 </Size>
479 <Anchors>
480 <Anchor point="BOTTOMRIGHT">
481 <Offset>
482 <AbsDimension x="2" y="-1"/>
483 </Offset>
484 </Anchor>
485 </Anchors>
486 </Texture>
487 </Layer>
488  
489 <Frames>
490 <CheckButton name="ParchmentLock_Check" inherits="UICheckButtonTemplate">
491 <Anchors>
492 <Anchor point="TOPLEFT">
493 <Offset>
494 <AbsDimension x="50" y="-100"/>
495 </Offset>
496 </Anchor>
497 </Anchors>
498 <HitRectInsets>
499 <AbsInset left="0" right="-100" top="0" bottom="0"/>
500 </HitRectInsets>
501 <Scripts>
502 <OnClick>
503 ParchmentLock_CheckOnClick();
504 </OnClick>
505 <OnEnter>
506 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
507 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
508 </OnEnter>
509 <OnLeave>
510 GameTooltip:Hide();
511 </OnLeave>
512 </Scripts>
513 </CheckButton>
514 <Button name="ParchmentResetButton" inherits="UIPanelButtonTemplate" text="Reset">
515 <Size>
516 <AbsDimension x="77" y="21"/>
517 </Size>
518 <Anchors>
519 <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPRIGHT">
520 <Offset>
521 <AbsDimension x="120" y="-5"/>
522 </Offset>
523 </Anchor>
524 </Anchors>
525 <Scripts>
526 <OnEnter>
527 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
528 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
529 </OnEnter>
530 <OnLeave>
531 GameTooltip:Hide();
532 </OnLeave>
533 <OnClick>
534 Parchment_SlashCommandHandler("reset");
535 </OnClick>
536 </Scripts>
537 </Button>
538 <CheckButton name="ParchmentAllRealms" inherits="UICheckButtonTemplate">
539 <Anchors>
540 <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPLEFT">
541 <Offset>
542 <AbsDimension x="0" y="-30"/>
543 </Offset>
544 </Anchor>
545 </Anchors>
546 <HitRectInsets>
547 <AbsInset left="0" right="-100" top="0" bottom="0"/>
548 </HitRectInsets>
549 <Scripts>
550 <OnClick>
551 ParchmentAllRealms_CheckOnClick();
552 </OnClick>
553 <OnEnter>
554 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
555 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
556 </OnEnter>
557 <OnLeave>
558 GameTooltip:Hide();
559 </OnLeave>
560 </Scripts>
561 </CheckButton>
562  
563 <CheckButton name="ParchmentShowButton" inherits="UICheckButtonTemplate">
564 <Anchors>
565 <Anchor point="TOPLEFT" relativeTo="ParchmentAllRealms" relativePoint="TOPLEFT">
566 <Offset>
567 <AbsDimension x="0" y="-30"/>
568 </Offset>
569 </Anchor>
570 </Anchors>
571 <HitRectInsets>
572 <AbsInset left="0" right="-100" top="0" bottom="0"/>
573 </HitRectInsets>
574 <Scripts>
575 <OnClick>
576 ParchmentButton_Toggle();
577 </OnClick>
578 <OnEnter>
579 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
580 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
581 </OnEnter>
582 <OnLeave>
583 GameTooltip:Hide();
584 </OnLeave>
585 </Scripts>
586 </CheckButton>
587  
588 <CheckButton name="ParchmentShowTackButton" inherits="UICheckButtonTemplate">
589 <Anchors>
590 <Anchor point="TOPLEFT" relativeTo="ParchmentShowButton" relativePoint="TOPLEFT">
591 <Offset>
592 <AbsDimension x="0" y="-30"/>
593 </Offset>
594 </Anchor>
595 </Anchors>
596 <HitRectInsets>
597 <AbsInset left="0" right="-100" top="0" bottom="0"/>
598 </HitRectInsets>
599 <Scripts>
600 <OnClick>
601 ParchmentTack_OnClick();
602 </OnClick>
603 <OnEnter>
604 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
605 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
606 </OnEnter>
607 <OnLeave>
608 GameTooltip:Hide();
609 </OnLeave>
610 </Scripts>
611 </CheckButton>
612  
613 <CheckButton name="ParchmentLockTackButton" inherits="UICheckButtonTemplate">
614 <Anchors>
615 <Anchor point="TOPLEFT" relativeTo="ParchmentShowTackButton" relativePoint="TOPLEFT">
616 <Offset>
617 <AbsDimension x="0" y="-30"/>
618 </Offset>
619 </Anchor>
620 </Anchors>
621 <HitRectInsets>
622 <AbsInset left="0" right="-100" top="0" bottom="0"/>
623 </HitRectInsets>
624 <Scripts>
625 <OnClick>
626 ParchmentLockTack_OnClick();
627 </OnClick>
628 <OnEnter>
629 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
630 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
631 </OnEnter>
632 <OnLeave>
633 GameTooltip:Hide();
634 </OnLeave>
635 </Scripts>
636 </CheckButton>
637  
638 <Button name="ParchmentTackResetButton" inherits="UIPanelButtonTemplate" text="Reset">
639 <Size>
640 <AbsDimension x="77" y="21"/>
641 </Size>
642 <Anchors>
643 <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPRIGHT">
644 <Offset>
645 <AbsDimension x="120" y="-5"/>
646 </Offset>
647 </Anchor>
648 </Anchors>
649 <Scripts>
650 <OnEnter>
651 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
652 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
653 </OnEnter>
654 <OnLeave>
655 GameTooltip:Hide();
656 </OnLeave>
657 <OnClick>
658 Parchment_SlashCommandHandler("resettack");
659 </OnClick>
660 </Scripts>
661 </Button>
662  
663 <CheckButton name="ParchmentTackBorder" inherits="UICheckButtonTemplate">
664 <Anchors>
665 <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPLEFT">
666 <Offset>
667 <AbsDimension x="0" y="-30"/>
668 </Offset>
669 </Anchor>
670 </Anchors>
671 <HitRectInsets>
672 <AbsInset left="0" right="-100" top="0" bottom="0"/>
673 </HitRectInsets>
674 <Scripts>
675 <OnClick>
676 ParchmentTackBorder_OnClick();
677 </OnClick>
678 <OnEnter>
679 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
680 GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
681 </OnEnter>
682 <OnLeave>
683 GameTooltip:Hide();
684 </OnLeave>
685 </Scripts>
686 </CheckButton>
687  
688 <Slider name="Parchment_Slider" inherits="OptionsSliderTemplate">
689 <Size>
690 <AbsDimension x="220" y="16"/>
691 </Size>
692 <Anchors>
693 <Anchor point="TOPLEFT" relativeTo="ParchmentTackBorder" relativePoint="TOPLEFT">
694 <Offset>
695 <AbsDimension x="0" y="-50"/>
696 </Offset>
697 </Anchor>
698 </Anchors>
699 <Scripts>
700 <OnLoad>
701 Parchment_Slider:SetMinMaxValues(0,360);
702 Parchment_Slider:SetValueStep(1);
703 </OnLoad>
704 <OnValueChanged>
705 Parchment_Config.ButtonPos = Parchment_Slider:GetValue();
706 ParchmentButton_UpdatePosition();
707 </OnValueChanged>
708 </Scripts>
709 </Slider>
710  
711 <Slider name="Parchment_Alpha" inherits="OptionsSliderTemplate">
712 <Size>
713 <AbsDimension x="220" y="16"/>
714 </Size>
715 <Anchors>
716 <Anchor point="TOPLEFT" relativeTo="Parchment_Slider" relativePoint="TOPLEFT">
717 <Offset>
718 <AbsDimension x="0" y="-50" />
719 </Offset>
720 </Anchor>
721 </Anchors>
722 <Scripts>
723 <OnLoad>
724 Parchment_Alpha:SetMinMaxValues(0.0,1.0);
725 Parchment_Alpha:SetValueStep(0.01);
726 </OnLoad>
727 <OnValueChanged>
728 Parchment_Config.Alpha = Parchment_Alpha:GetValue();
729 Parchment_UpdateAlpha();
730 </OnValueChanged>
731 </Scripts>
732 </Slider>
733  
734 <Button name="ParchmentDefaultButton" inherits="UIPanelButtonTemplate" text="Defaults">
735 <Size>
736 <AbsDimension x="77" y="21"/>
737 </Size>
738 <Anchors>
739 <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT">
740 <Offset>
741 <AbsDimension x="20" y="74"/>
742 </Offset>
743 </Anchor>
744 </Anchors>
745 <Scripts>
746 <OnClick>
747 Parchment_Load_Defaults();
748 </OnClick>
749 </Scripts>
750 </Button>
751 <Button name="ParchmentOptionsCloseButton" inherits="UIPanelButtonTemplate" text="Close">
752 <Size>
753 <AbsDimension x="77" y="21"/>
754 </Size>
755 <Anchors>
756 <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT">
757 <Offset>
758 <AbsDimension x="-39" y="74"/>
759 </Offset>
760 </Anchor>
761 </Anchors>
762 <Scripts>
763 <OnClick>
764 HideUIPanel(ParchmentFrame);
765 </OnClick>
766 </Scripts>
767 </Button>
768 </Frames>
769 <Scripts>
770 <OnShow>
771 ParchmentOptionsFrame_OnShow();
772 </OnShow>
773 </Scripts>
774 </Frame>
775  
776 <Frame name="ParchmentConfirmFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="ParchmentFrame">
777 <Size>
778 <AbsDimension x="400" y="150"/>
779 </Size>
780 <Anchors>
781 <Anchor point="CENTER" relativeTo="ParchmentFrame">
782 <Offset>
783 <AbsDimension x="-8" y="0"/>
784 </Offset>
785 </Anchor>
786 </Anchors>
787 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
788 <BackgroundInsets>
789 <AbsInset left="11" right="12" top="12" bottom="11"/>
790 </BackgroundInsets>
791 <TileSize>
792 <AbsValue val="32"/>
793 </TileSize>
794 <EdgeSize>
795 <AbsValue val="32"/>
796 </EdgeSize>
797 </Backdrop>
798 <Layers>
799 <Layer level="ARTWORK">
800 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
801 <Size>
802 <AbsDimension x="256" y="64"/>
803 </Size>
804 <Anchors>
805 <Anchor point="TOP">
806 <Offset>
807 <AbsDimension x="0" y="12"/>
808 </Offset>
809 </Anchor>
810 </Anchors>
811 </Texture>
812 <FontString name="$parentTitle" inherits="GameFontNormal" text="">
813 <Anchors>
814 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
815 <Offset>
816 <AbsDimension x="0" y="-14"/>
817 </Offset>
818 </Anchor>
819 </Anchors>
820 </FontString>
821 <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="">
822 <Size>
823 <AbsDimension x="350" y="32"/>
824 </Size>
825 <Anchors>
826 <Anchor point="TOP">
827 <Offset>
828 <AbsDimension x="0" y="-65"/>
829 </Offset>
830 </Anchor>
831 </Anchors>
832 </FontString>
833 </Layer>
834 </Layers>
835 <Frames>
836 <Button name="$parentSendButton" hidden="false" inherits="GameMenuButtonTemplate" text="Confirm">
837 <Size>
838 <AbsDimension x="60" y="21"/>
839 </Size>
840 <Anchors>
841 <Anchor point="BOTTOM" relativePoint="BOTTOM">
842 <Offset>
843 <AbsDimension x="-32" y="15"/>
844 </Offset>
845 </Anchor>
846 </Anchors>
847 <Scripts>
848 <OnClick>
849 ParchmentConfirmedAction();
850 ParchmentConfirmFrame:Hide();
851 </OnClick>
852 </Scripts>
853 </Button>
854 <Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="Cancel">
855 <Size>
856 <AbsDimension x="60" y="21"/>
857 </Size>
858 <Anchors>
859 <Anchor point="BOTTOM" relativePoint="BOTTOM">
860 <Offset>
861 <AbsDimension x="32" y="15"/>
862 </Offset>
863 </Anchor>
864 </Anchors>
865 <Scripts>
866 <OnClick>
867 ParchmentConfirmFrame:Hide();
868 </OnClick>
869 </Scripts>
870 </Button>
871 </Frames>
872 <Scripts>
873 <OnShow>
874 PlaySound("UChatScrollButton");
875 </OnShow>
876 <OnHide>
877 PlaySound("UChatScrollButton");
878 </OnHide>
879 </Scripts>
880 </Frame>
881  
882 </Frames>
883 <Scripts>
884 <OnLoad>
885 Parchment_OnLoad();
886 </OnLoad>
887 <OnEvent>
888 Parchment_OnEvent(event);
889 </OnEvent>
890 <OnShow>
891 Parchment_OnShow();
892 </OnShow>
893 <OnHide>
894 Parchment_OnHide();
895 </OnHide>
896 <OnDragStart>
897 Parchment_OnDragStart();
898 </OnDragStart>
899 <OnDragStop>
900 Parchment_OnDragStop();
901 </OnDragStop>
902 <OnMouseUp>
903 Parchment_OnDragStop();
904 </OnMouseUp>
905 </Scripts>
906 </Frame>
907 </Ui>