vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
3 <Script file="localization.lua"/>
4 <Script file="localization.ge.lua"/>
5 <Script file="localization.fr.lua"/>
6 <Script file="localization.cn.lua"/>
7 <Script file="GMail.lua"/>
8 <Button name="GMailButtonTemplate" virtual="true">
9 <Size>
10 <AbsDimension x="37" y="37"/>
11 </Size>
12 <Layers>
13 <Layer level="BACKGROUND">
14 <Texture file="Interface\Buttons\UI-Slot-Background">
15 <Size>
16 <AbsDimension x="39" y="39"/>
17 </Size>
18 <Anchors>
19 <Anchor point="TOPLEFT">
20 <Offset>
21 <AbsDimension x="-2" y="2"/>
22 </Offset>
23 </Anchor>
24 </Anchors>
25 <TexCoords left="0" right="0.640625" top="0" bottom="0.640625"/>
26 </Texture>
27 </Layer>
28 <Layer level="ARTWORK">
29 <FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
30 <Anchors>
31 <Anchor point="BOTTOMRIGHT">
32 <Offset>
33 <AbsDimension x="-5" y="2"/>
34 </Offset>
35 </Anchor>
36 </Anchors>
37 </FontString>
38 </Layer>
39 <Layer level="BORDER">
40 <Texture name="$parentIconTexture"/>
41 </Layer>
42 </Layers>
43 <Scripts>
44 <OnLoad>
45 this:RegisterForDrag("LeftButton")
46 </OnLoad>
47 <OnReceiveDrag>
48 GMail:MailButton_OnClick()
49 </OnReceiveDrag>
50 <OnDragStart>
51 GMail:MailButton_OnClick()
52 </OnDragStart>
53 <OnClick>
54 GMail:MailButton_OnClick()
55 </OnClick>
56 <OnEnter>
57 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
58 if ( this.item and this.bag ) then
59 GameTooltip:SetBagItem(this.bag,this.item);
60 else
61 GameTooltip:SetText(ATTACHMENT_TEXT, 1.0, 1.0, 1.0);
62 end
63 </OnEnter>
64 <OnLeave>
65 GameTooltip:Hide()
66 </OnLeave>
67 </Scripts>
68 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
69 </Button>
70 <Frame name="GMailFrame" parent="MailFrame" hidden="true">
71 <Size>
72 <AbsDimension x="384" y="512"/>
73 </Size>
74 <Anchors>
75 <Anchor point="TOPLEFT"/>
76 </Anchors>
77 <Layers>
78 <Layer level="BACKGROUND">
79 <FontString name="GMailTitleText" inherits="GameFontNormal" text="GMAIL_SEND">
80 <Size>
81 <AbsDimension x="224" y="14"/>
82 </Size>
83 <Anchors>
84 <Anchor point="CENTER">
85 <Offset>
86 <AbsDimension x="6" y="230"/>
87 </Offset>
88 </Anchor>
89 </Anchors>
90 </FontString>
91 <FontString name="GMailStatusText" inherits="GameFontNormal">
92 <Size>
93 <AbsDimension x="224" y="14"/>
94 </Size>
95 <Anchors>
96 <Anchor point="BOTTOM" relativePoint="BOTTOM">
97 <Offset>
98 <AbsDimension x="0" y="125"/>
99 </Offset>
100 </Anchor>
101 </Anchors>
102 </FontString>
103 <FontString justifyH="left" justifyV="top" name="GMailHelpText" inherits="GameFontNormal" text="GMAIL_HELP">
104 <Size>
105 <AbsDimension x="300" y="150"/>
106 </Size>
107 <Anchors>
108 <Anchor point="TOPLEFT">
109 <Offset>
110 <AbsDimension x="30" y="-105"/>
111 </Offset>
112 </Anchor>
113 </Anchors>
114 </FontString>
115 <Texture name="GMailHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
116 <Size>
117 <AbsDimension x="256" y="16"/>
118 </Size>
119 <Anchors>
120 <Anchor point="TOPLEFT">
121 <Offset>
122 <AbsDimension x="15" y="-350"/>
123 </Offset>
124 </Anchor>
125 </Anchors>
126 <TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
127 </Texture>
128 <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
129 <Size>
130 <AbsDimension x="75" y="16"/>
131 </Size>
132 <Anchors>
133 <Anchor point="LEFT" relativeTo="GMailHorizontalBarLeft" relativePoint="RIGHT">
134 <Offset>
135 <AbsDimension x="0" y="0"/>
136 </Offset>
137 </Anchor>
138 </Anchors>
139 <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
140 </Texture>
141 </Layer>
142 </Layers>
143 <Frames>
144 <EditBox name="GMailNameEditBox" letters="12" historyLines="0" autoFocus="false">
145 <Size>
146 <AbsDimension x="122" y="20"/>
147 </Size>
148 <Anchors>
149 <Anchor point="TOPLEFT">
150 <Offset>
151 <AbsDimension x="105" y="-46"/>
152 </Offset>
153 </Anchor>
154 </Anchors>
155 <Layers>
156 <Layer level="BACKGROUND">
157 <FontString inherits="GameFontNormal" text="MAIL_TO_LABEL" justifyH="RIGHT">
158 <Anchors>
159 <Anchor point="RIGHT" relativePoint="LEFT">
160 <Offset>
161 <AbsDimension x="-12" y="0"/>
162 </Offset>
163 </Anchor>
164 </Anchors>
165 </FontString>
166 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
167 <Size>
168 <AbsDimension x="8" y="20"/>
169 </Size>
170 <Anchors>
171 <Anchor point="TOPLEFT">
172 <Offset>
173 <AbsDimension x="-8" y="0"/>
174 </Offset>
175 </Anchor>
176 </Anchors>
177 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
178 </Texture>
179 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
180 <Size>
181 <AbsDimension x="100" y="20"/>
182 </Size>
183 <Anchors>
184 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
185 </Anchors>
186 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
187 </Texture>
188 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
189 <Size>
190 <AbsDimension x="8" y="20"/>
191 </Size>
192 <Anchors>
193 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
194 </Anchors>
195 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
196 </Texture>
197 </Layer>
198 </Layers>
199 <Scripts>
200 <OnTabPressed>
201 GMailSubjectEditBox:SetFocus()
202 </OnTabPressed>
203 <OnEditFocusLost>
204 this:HighlightText(0, 0)
205 </OnEditFocusLost>
206 <OnChar>
207 SendMailFrame_SendeeAutocomplete()
208 </OnChar>
209 <OnEnterPressed>
210 GMailSubjectEditBox:SetFocus()
211 </OnEnterPressed>
212 <OnEscapePressed>
213 GMailNameEditBox:ClearFocus()
214 </OnEscapePressed>
215 <OnTextChanged>
216 GMail:CanSend()
217 </OnTextChanged>
218 </Scripts>
219 <FontString inherits="ChatFontNormal"/>
220 </EditBox>
221 <Frame name="GMailCostMoneyFrame" inherits="SmallMoneyFrameTemplate">
222 <Anchors>
223 <Anchor point="TOPRIGHT">
224 <Offset>
225 <AbsDimension x="-46" y="-48"/>
226 </Offset>
227 </Anchor>
228 </Anchors>
229 <Layers>
230 <Layer level="BACKGROUND">
231 <FontString inherits="GameFontNormal" text="SEND_MAIL_COST">
232 <Anchors>
233 <Anchor point="RIGHT" relativePoint="LEFT">
234 <Offset>
235 <AbsDimension x="-3" y="0"/>
236 </Offset>
237 </Anchor>
238 </Anchors>
239 </FontString>
240 </Layer>
241 </Layers>
242 <Scripts>
243 <OnLoad>
244 SmallMoneyFrame_OnLoad()
245 MoneyFrame_SetType("STATIC")
246 MoneyFrame_Update("GMailCostMoneyFrame", GetSendMailPrice())
247 </OnLoad>
248 </Scripts>
249 </Frame>
250 <EditBox name="GMailSubjectEditBox" letters="64" historyLines="0" autoFocus="false">
251 <Size>
252 <AbsDimension x="237" y="20"/>
253 </Size>
254 <Anchors>
255 <Anchor point="TOPLEFT" relativeTo="GMailNameEditBox" relativePoint="BOTTOMLEFT">
256 <Offset>
257 <AbsDimension x="0" y="-3"/>
258 </Offset>
259 </Anchor>
260 </Anchors>
261 <Layers>
262 <Layer level="BACKGROUND">
263 <FontString inherits="GameFontNormal" text="MAIL_SUBJECT_LABEL" justifyH="RIGHT">
264 <Anchors>
265 <Anchor point="RIGHT" relativePoint="LEFT">
266 <Offset>
267 <AbsDimension x="-12" y="0"/>
268 </Offset>
269 </Anchor>
270 </Anchors>
271 </FontString>
272 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
273 <Size>
274 <AbsDimension x="8" y="20"/>
275 </Size>
276 <Anchors>
277 <Anchor point="TOPLEFT">
278 <Offset>
279 <AbsDimension x="-8" y="0"/>
280 </Offset>
281 </Anchor>
282 </Anchors>
283 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
284 </Texture>
285 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
286 <Size>
287 <AbsDimension x="221" y="20"/>
288 </Size>
289 <Anchors>
290 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
291 </Anchors>
292 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
293 </Texture>
294 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
295 <Size>
296 <AbsDimension x="8" y="20"/>
297 </Size>
298 <Anchors>
299 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
300 </Anchors>
301 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
302 </Texture>
303 </Layer>
304 </Layers>
305 <Scripts>
306 <OnTabPressed>
307 GMailNameEditBox:SetFocus()
308 </OnTabPressed>
309 <OnEscapePressed>
310 GMailSubjectEditBox:ClearFocus()
311 </OnEscapePressed>
312 </Scripts>
313 <FontString inherits="ChatFontNormal"/>
314 </EditBox>
315 <Frame name="GMailMoneyFrame" inherits="SmallMoneyFrameTemplate">
316 <Anchors>
317 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
318 <Offset>
319 <AbsDimension x="183" y="84"/>
320 </Offset>
321 </Anchor>
322 </Anchors>
323 </Frame>
324 <Button name="GMailCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
325 <Size>
326 <AbsDimension x="80" y="22"/>
327 </Size>
328 <Anchors>
329 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
330 <Offset>
331 <AbsDimension x="-39" y="80"/>
332 </Offset>
333 </Anchor>
334 </Anchors>
335 <Scripts>
336 <OnClick>
337 HideUIPanel(MailFrame)
338 </OnClick>
339 </Scripts>
340 </Button>
341 <Button name="GMailMailButton" inherits="UIPanelButtonTemplate" text="SEND_LABEL">
342 <Size>
343 <AbsDimension x="80" y="22"/>
344 </Size>
345 <Anchors>
346 <Anchor point="RIGHT" relativeTo="SendMailCancelButton" relativePoint="LEFT">
347 <Offset>
348 <AbsDimension x="0" y="0"/>
349 </Offset>
350 </Anchor>
351 </Anchors>
352 <Scripts>
353 <OnClick>
354 GMailAcceptSendFrame:Show()
355 </OnClick>
356 </Scripts>
357 </Button>
358  
359 <Button name="GMailAbortButton" hidden="true" inherits="UIPanelButtonTemplate" text="GMAIL_ABORT">
360 <Size>
361 <AbsDimension x="80" y="22"/>
362 </Size>
363 <Anchors>
364 <Anchor point="BOTTOM" relativePoint="BOTTOM">
365 <Offset>
366 <AbsDimension x="0" y="105"/>
367 </Offset>
368 </Anchor>
369 </Anchors>
370 <Scripts>
371 <OnClick>
372 GMailStatusText:SetText(format(GMAIL_ABORTED, GMailGlobalFrame.total-(getn(GMailGlobalFrame.queue)-1), GMailGlobalFrame.total));
373 GMailGlobalFrame.queue = { };
374 GMailGlobalFrame.total = 0;
375 GMailGlobalFrame:Hide();
376 </OnClick>
377 </Scripts>
378 </Button>
379  
380 <Button name="GMailButton1" inherits="GMailButtonTemplate" id="1" hidden="false">
381 <Anchors>
382 <Anchor point="TOPLEFT">
383 <Offset>
384 <AbsDimension x="30" y="-222"/>
385 </Offset>
386 </Anchor>
387 </Anchors>
388 </Button>
389 <Button name="GMailButton2" inherits="GMailButtonTemplate" id="2" hidden="false">
390 <Anchors>
391 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton1">
392 <Offset>
393 <AbsDimension x="8" y="0"/>
394 </Offset>
395 </Anchor>
396 </Anchors>
397 </Button>
398 <Button name="GMailButton3" inherits="GMailButtonTemplate" id="3" hidden="false">
399 <Anchors>
400 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton2">
401 <Offset>
402 <AbsDimension x="8" y="0"/>
403 </Offset>
404 </Anchor>
405 </Anchors>
406 </Button>
407 <Button name="GMailButton4" inherits="GMailButtonTemplate" id="4" hidden="false">
408 <Anchors>
409 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton3">
410 <Offset>
411 <AbsDimension x="8" y="0"/>
412 </Offset>
413 </Anchor>
414 </Anchors>
415 </Button>
416 <Button name="GMailButton5" inherits="GMailButtonTemplate" id="5" hidden="false">
417 <Anchors>
418 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton4">
419 <Offset>
420 <AbsDimension x="8" y="0"/>
421 </Offset>
422 </Anchor>
423 </Anchors>
424 </Button>
425 <Button name="GMailButton6" inherits="GMailButtonTemplate" id="6" hidden="false">
426 <Anchors>
427 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton5">
428 <Offset>
429 <AbsDimension x="8" y="0"/>
430 </Offset>
431 </Anchor>
432 </Anchors>
433 </Button>
434 <Button name="GMailButton7" inherits="GMailButtonTemplate" id="7" hidden="false">
435 <Anchors>
436 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton6">
437 <Offset>
438 <AbsDimension x="8" y="0"/>
439 </Offset>
440 </Anchor>
441 </Anchors>
442 </Button>
443  
444  
445  
446 <Button name="GMailButton8" inherits="GMailButtonTemplate" id="8" hidden="false">
447 <Anchors>
448 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="GMailButton1">
449 <Offset>
450 <AbsDimension x="0" y="-8"/>
451 </Offset>
452 </Anchor>
453 </Anchors>
454 </Button>
455 <Button name="GMailButton9" inherits="GMailButtonTemplate" id="9" hidden="false">
456 <Anchors>
457 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton8">
458 <Offset>
459 <AbsDimension x="8" y="0"/>
460 </Offset>
461 </Anchor>
462 </Anchors>
463 </Button>
464 <Button name="GMailButton10" inherits="GMailButtonTemplate" id="10" hidden="false">
465 <Anchors>
466 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton9">
467 <Offset>
468 <AbsDimension x="8" y="0"/>
469 </Offset>
470 </Anchor>
471 </Anchors>
472 </Button>
473 <Button name="GMailButton11" inherits="GMailButtonTemplate" id="11" hidden="false">
474 <Anchors>
475 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton10">
476 <Offset>
477 <AbsDimension x="8" y="0"/>
478 </Offset>
479 </Anchor>
480 </Anchors>
481 </Button>
482 <Button name="GMailButton12" inherits="GMailButtonTemplate" id="12" hidden="false">
483 <Anchors>
484 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton11">
485 <Offset>
486 <AbsDimension x="8" y="0"/>
487 </Offset>
488 </Anchor>
489 </Anchors>
490 </Button>
491 <Button name="GMailButton13" inherits="GMailButtonTemplate" id="13" hidden="false">
492 <Anchors>
493 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton12">
494 <Offset>
495 <AbsDimension x="8" y="0"/>
496 </Offset>
497 </Anchor>
498 </Anchors>
499 </Button>
500 <Button name="GMailButton14" inherits="GMailButtonTemplate" id="14" hidden="false">
501 <Anchors>
502 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton13">
503 <Offset>
504 <AbsDimension x="8" y="0"/>
505 </Offset>
506 </Anchor>
507 </Anchors>
508 </Button>
509  
510  
511 <Button name="GMailButton15" inherits="GMailButtonTemplate" id="15" hidden="false">
512 <Anchors>
513 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="GMailButton8">
514 <Offset>
515 <AbsDimension x="0" y="-8"/>
516 </Offset>
517 </Anchor>
518 </Anchors>
519 </Button>
520 <Button name="GMailButton16" inherits="GMailButtonTemplate" id="16" hidden="false">
521 <Anchors>
522 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton15">
523 <Offset>
524 <AbsDimension x="8" y="0"/>
525 </Offset>
526 </Anchor>
527 </Anchors>
528 </Button>
529 <Button name="GMailButton17" inherits="GMailButtonTemplate" id="17" hidden="false">
530 <Anchors>
531 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton16">
532 <Offset>
533 <AbsDimension x="8" y="0"/>
534 </Offset>
535 </Anchor>
536 </Anchors>
537 </Button>
538 <Button name="GMailButton18" inherits="GMailButtonTemplate" id="18" hidden="false">
539 <Anchors>
540 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton17">
541 <Offset>
542 <AbsDimension x="8" y="0"/>
543 </Offset>
544 </Anchor>
545 </Anchors>
546 </Button>
547 <Button name="GMailButton19" inherits="GMailButtonTemplate" id="19" hidden="false">
548 <Anchors>
549 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton18">
550 <Offset>
551 <AbsDimension x="8" y="0"/>
552 </Offset>
553 </Anchor>
554 </Anchors>
555 </Button>
556 <Button name="GMailButton20" inherits="GMailButtonTemplate" id="20" hidden="false">
557 <Anchors>
558 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton19">
559 <Offset>
560 <AbsDimension x="8" y="0"/>
561 </Offset>
562 </Anchor>
563 </Anchors>
564 </Button>
565 <Button name="GMailButton21" inherits="GMailButtonTemplate" id="21" hidden="false">
566 <Anchors>
567 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="GMailButton20">
568 <Offset>
569 <AbsDimension x="8" y="0"/>
570 </Offset>
571 </Anchor>
572 </Anchors>
573 </Button>
574 </Frames>
575 <Scripts>
576 <OnShow>
577 GMailNameEditBox:SetFocus()
578 </OnShow>
579 </Scripts>
580 </Frame>
581  
582 <Button name="MailFrameTab3" inherits="FriendsFrameTabTemplate" id="3" parent="MailFrame" text="Mass Mail">
583 <Anchors>
584 <Anchor point="LEFT" relativeTo="MailFrameTab2" relativePoint="RIGHT">
585 <Offset>
586 <AbsDimension x="-8" y="0"/>
587 </Offset>
588 </Anchor>
589 </Anchors>
590 <Scripts>
591 <OnClick>
592 GMail:MailFrameTab_OnClick()
593 </OnClick>
594 </Scripts>
595 </Button>
596  
597 <Frame name="GMailAcceptSendFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="GMailFrame">
598 <Size>
599 <AbsDimension x="400" y="150"/>
600 </Size>
601 <Anchors>
602 <Anchor point="CENTER" relativeTo="UIParent"/>
603 </Anchors>
604 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
605 <BackgroundInsets>
606 <AbsInset left="11" right="12" top="12" bottom="11"/>
607 </BackgroundInsets>
608 <TileSize>
609 <AbsValue val="32"/>
610 </TileSize>
611 <EdgeSize>
612 <AbsValue val="32"/>
613 </EdgeSize>
614 </Backdrop>
615 <Layers>
616 <Layer level="ARTWORK">
617 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
618 <Size>
619 <AbsDimension x="256" y="64"/>
620 </Size>
621 <Anchors>
622 <Anchor point="TOP">
623 <Offset>
624 <AbsDimension x="0" y="12"/>
625 </Offset>
626 </Anchor>
627 </Anchors>
628 </Texture>
629 <FontString inherits="GameFontNormal" text="GMAIL_SEND">
630 <Anchors>
631 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
632 <Offset>
633 <AbsDimension x="0" y="-14"/>
634 </Offset>
635 </Anchor>
636 </Anchors>
637 </FontString>
638 <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="GMAIL_SENDINFO">
639 <Size>
640 <AbsDimension x="350" y="32"/>
641 </Size>
642 <Anchors>
643 <Anchor point="TOP">
644 <Offset>
645 <AbsDimension x="0" y="-78"/>
646 </Offset>
647 </Anchor>
648 </Anchors>
649 </FontString>
650 <FontString name="$parentInfoString" justifyV="top" inherits="GameFontNormal" text="GMAIL_SENDINFO2">
651 <Size>
652 <AbsDimension x="350" y="12"/>
653 </Size>
654 <Anchors>
655 <Anchor point="TOP">
656 <Offset>
657 <AbsDimension x="0" y="-30"/>
658 </Offset>
659 </Anchor>
660 </Anchors>
661 </FontString>
662 <FontString name="$parentInfoItems" justifyV="top" inherits="GameFontNormal" text="">
663 <Size>
664 <AbsDimension x="350" y="12"/>
665 </Size>
666 <Anchors>
667 <Anchor point="TOP" relativeTo="$parentInfoString" relativePoint="BOTTOM">
668 <Offset>
669 <AbsDimension x="0" y="-2"/>
670 </Offset>
671 </Anchor>
672 </Anchors>
673 </FontString>
674 </Layer>
675 </Layers>
676 <Frames>
677 <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate">
678 <Anchors>
679 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentInfo">
680 <Offset>
681 <AbsDimension x="0" y="5"/>
682 </Offset>
683 </Anchor>
684 </Anchors>
685 <Scripts>
686 <OnLoad>
687 SmallMoneyFrame_OnLoad();
688 MoneyFrame_SetType("STATIC");
689 MoneyFrame_Update(this:GetName(), GetSendMailPrice())
690 </OnLoad>
691 </Scripts>
692 </Frame>
693 <Button name="$parentSendButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_SENDBUTTON">
694 <Size>
695 <AbsDimension x="60" y="21"/>
696 </Size>
697 <Anchors>
698 <Anchor point="BOTTOM" relativePoint="BOTTOM">
699 <Offset>
700 <AbsDimension x="-32" y="8"/>
701 </Offset>
702 </Anchor>
703 </Anchors>
704 <Scripts>
705 <OnClick>
706 GMailGlobalFrame.queue = GMail:FillItemTable();
707 GMailGlobalFrame.total = getn(GMailGlobalFrame.queue);
708 GMail:ClearItems();
709 GMailGlobalFrame:Show();
710 this:GetParent():Hide();
711 GMAIL_CANSENDNEXT = 1
712 </OnClick>
713 </Scripts>
714 </Button>
715 <Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_CANCELBUTTON">
716 <Size>
717 <AbsDimension x="60" y="21"/>
718 </Size>
719 <Anchors>
720 <Anchor point="BOTTOM" relativePoint="BOTTOM">
721 <Offset>
722 <AbsDimension x="32" y="8"/>
723 </Offset>
724 </Anchor>
725 </Anchors>
726 <Scripts>
727 <OnClick>
728 this:GetParent():Hide()
729 </OnClick>
730 </Scripts>
731 </Button>
732 </Frames>
733 <Scripts>
734 <OnShow>
735 getglobal(this:GetName() .. "InfoItems"):SetText(GMailFrame.num .. " " .. GMAIL_ITEMS);
736 MoneyFrame_Update(this:GetName() .. "MoneyFrame", GMailFrame.num*GetSendMailPrice())
737 </OnShow>
738 </Scripts>
739 </Frame>
740 <Frame name="GMailInboxFrame" parent="UIParent">
741 <Scripts>
742 <OnUpdate>
743 GMail:Inbox_OnUpdate(arg1)
744 </OnUpdate>
745 </Scripts>
746 </Frame>
747 <CheckButton name="GMailBoxItemCBTemplate" hidden="true" virtual="true" inherits="OptionsCheckButtonTemplate">
748 <HitRectInsets>
749 <AbsInset left="0" right="0" top="0" bottom="0"/>
750 </HitRectInsets>
751 <Size>
752 <AbsDimension x="24" y="24"/>
753 </Size>
754 <Anchors>
755 <Anchor point="RIGHT" relativePoint="LEFT">
756 <Offset>
757 <AbsDimension x="1" y="0"/>
758 </Offset>
759 </Anchor>
760 </Anchors>
761 <Scripts>
762 <OnClick>
763 GMail_Inbox_SetSelected()
764 </OnClick>
765 </Scripts>
766 </CheckButton>
767 <CheckButton name="GMailBoxItem1CB" id="1" hidden="false" parent="MailItem1" inherits="GMailBoxItemCBTemplate"/>
768 <CheckButton name="GMailBoxItem2CB" id="2" hidden="false" parent="MailItem2" inherits="GMailBoxItemCBTemplate"/>
769 <CheckButton name="GMailBoxItem3CB" id="3" hidden="false" parent="MailItem3" inherits="GMailBoxItemCBTemplate"/>
770 <CheckButton name="GMailBoxItem4CB" id="4" hidden="false" parent="MailItem4" inherits="GMailBoxItemCBTemplate"/>
771 <CheckButton name="GMailBoxItem5CB" id="5" hidden="false" parent="MailItem5" inherits="GMailBoxItemCBTemplate"/>
772 <CheckButton name="GMailBoxItem6CB" id="6" hidden="false" parent="MailItem6" inherits="GMailBoxItemCBTemplate"/>
773 <CheckButton name="GMailBoxItem7CB" id="7" hidden="false" parent="MailItem7" inherits="GMailBoxItemCBTemplate"/>
774 <Button name="GMailInboxOpenSelected" parent="InboxFrame" inherits="UIPanelButtonTemplate" text="GMAIL_INBOX_OPENSELECTED">
775 <Size>
776 <AbsDimension x="120" y="25"/>
777 </Size>
778 <Anchors>
779 <Anchor relativePoint="TOP" point="RIGHT">
780 <Offset>
781 <AbsDimension x="5" y="-53"/>
782 </Offset>
783 </Anchor>
784 </Anchors>
785 <Scripts>
786 <OnClick>
787 GMail_Inbox_OpenSelected()
788 </OnClick>
789 </Scripts>
790 </Button>
791 <Button name="GMailInboxOpenAllButton" parent="InboxFrame" inherits="UIPanelButtonTemplate" text="GMAIL_INBOX_OPENALL">
792 <Size>
793 <AbsDimension x="120" y="25"/>
794 </Size>
795 <Anchors>
796 <Anchor relativePoint="TOP" point="LEFT">
797 <Offset>
798 <AbsDimension x="10" y="-53"/>
799 </Offset>
800 </Anchor>
801 </Anchors>
802 <Scripts>
803 <OnClick>
804 ShowUIPanel(GMailInboxOpenAll)
805 </OnClick>
806 </Scripts>
807 </Button>
808 <Frame name="GMailInboxOpenAll" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="MailFrame">
809 <Size>
810 <AbsDimension x="400" y="100"/>
811 </Size>
812 <Anchors>
813 <Anchor point="CENTER" relativeTo="UIParent"/>
814 </Anchors>
815 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
816 <BackgroundInsets>
817 <AbsInset left="11" right="12" top="12" bottom="11"/>
818 </BackgroundInsets>
819 <TileSize>
820 <AbsValue val="32"/>
821 </TileSize>
822 <EdgeSize>
823 <AbsValue val="32"/>
824 </EdgeSize>
825 </Backdrop>
826 <Layers>
827 <Layer level="ARTWORK">
828 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
829 <Size>
830 <AbsDimension x="256" y="64"/>
831 </Size>
832 <Anchors>
833 <Anchor point="TOP">
834 <Offset>
835 <AbsDimension x="0" y="12"/>
836 </Offset>
837 </Anchor>
838 </Anchors>
839 </Texture>
840 <FontString inherits="GameFontNormal" text="GMAIL_INBOX_OPENALLTITLE">
841 <Anchors>
842 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
843 <Offset>
844 <AbsDimension x="0" y="-14"/>
845 </Offset>
846 </Anchor>
847 </Anchors>
848 </FontString>
849 <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="GMAIL_INBOX_OPENALLCONFIRMATION">
850 <Size>
851 <AbsDimension x="350" y="32"/>
852 </Size>
853 <Anchors>
854 <Anchor point="CENTER">
855 <Offset>
856 <AbsDimension x="0" y="4"/>
857 </Offset>
858 </Anchor>
859 </Anchors>
860 </FontString>
861 </Layer>
862 </Layers>
863 <Frames>
864 <Button name="$parentOpenButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_INBOX_OPENALL">
865 <Size>
866 <AbsDimension x="125" y="32"/>
867 </Size>
868 <Anchors>
869 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
870 <Offset>
871 <AbsDimension x="-8" y="16"/>
872 </Offset>
873 </Anchor>
874 </Anchors>
875 <Scripts>
876 <OnClick>
877 GMail_Inbox_OpenSelected(1);
878 HideUIPanel(this:GetParent())
879 </OnClick>
880 </Scripts>
881 </Button>
882 <Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="GMAIL_CANCELBUTTON">
883 <Size>
884 <AbsDimension x="125" y="32"/>
885 </Size>
886 <Anchors>
887 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
888 <Offset>
889 <AbsDimension x="8" y="16"/>
890 </Offset>
891 </Anchor>
892 </Anchors>
893 <Scripts>
894 <OnClick>
895 HideUIPanel(this:GetParent())
896 </OnClick>
897 </Scripts>
898 </Button>
899 </Frames>
900 </Frame>
901  
902 <!-- Mail forwarding -->
903 <Button name="OpenMailForwardButton" parent="OpenMailFrame" inherits="UIPanelButtonTemplate" text="Forward">
904 <Size>
905 <AbsDimension x="82" y="22"/>
906 </Size>
907 <Anchors>
908 <Anchor point="RIGHT" relativeTo="OpenMailReplyButton" relativePoint="LEFT">
909 <Offset>
910 <AbsDimension x="0" y="0"/>
911 </Offset>
912 </Anchor>
913 </Anchors>
914 <Scripts>
915 <OnClick>
916 GMail:OpenReply()
917 </OnClick>
918 </Scripts>
919 </Button>
920 <Frame name="GMailForwardFrame" parent="UIParent">
921 <Scripts>
922 <OnUpdate>
923 GMail:Forward_OnUpdate(arg1)
924 </OnUpdate>
925 </Scripts>
926 </Frame>
927  
928 <Frame name="GMailGlobalFrame" parent="UIParent" hidden="true">
929 <Scripts>
930 <OnUpdate>
931 GMail:ProcessQueue(arg1)
932 </OnUpdate>
933 </Scripts>
934 </Frame>
935 <GameTooltip name="GMailTooltip" inherits="GameTooltipTemplate"></GameTooltip>
936 </Ui>