vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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="CT_MailMod.lua"/> |
||
7 | <Button name="CT_MailButtonTemplate" virtual="true"> |
||
8 | <Size> |
||
9 | <AbsDimension x="37" y="37"/> |
||
10 | </Size> |
||
11 | <Layers> |
||
12 | <Layer level="BACKGROUND"> |
||
13 | <Texture file="Interface\Buttons\UI-Slot-Background"> |
||
14 | <Size> |
||
15 | <AbsDimension x="39" y="39"/> |
||
16 | </Size> |
||
17 | <Anchors> |
||
18 | <Anchor point="TOPLEFT"> |
||
19 | <Offset> |
||
20 | <AbsDimension x="-2" y="2"/> |
||
21 | </Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | <TexCoords left="0" right="0.640625" top="0" bottom="0.640625"/> |
||
25 | </Texture> |
||
26 | </Layer> |
||
27 | <Layer level="ARTWORK"> |
||
28 | <FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT"> |
||
29 | <Anchors> |
||
30 | <Anchor point="BOTTOMRIGHT"> |
||
31 | <Offset> |
||
32 | <AbsDimension x="-5" y="2"/> |
||
33 | </Offset> |
||
34 | </Anchor> |
||
35 | </Anchors> |
||
36 | </FontString> |
||
37 | </Layer> |
||
38 | <Layer level="BORDER"> |
||
39 | <Texture name="$parentIconTexture"/> |
||
40 | </Layer> |
||
41 | </Layers> |
||
42 | <Scripts> |
||
43 | <OnLoad> |
||
44 | this:RegisterForDrag("LeftButton"); |
||
45 | </OnLoad> |
||
46 | <OnReceiveDrag> |
||
47 | CT_MailButton_OnClick(); |
||
48 | </OnReceiveDrag> |
||
49 | <OnDragStart> |
||
50 | CT_MailButton_OnClick(); |
||
51 | </OnDragStart> |
||
52 | <OnClick> |
||
53 | CT_MailButton_OnClick(); |
||
54 | </OnClick> |
||
55 | <OnEnter> |
||
56 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
57 | if ( this.item and this.bag ) then |
||
58 | GameTooltip:SetBagItem(this.bag,this.item) |
||
59 | else |
||
60 | GameTooltip:SetText(ATTACHMENT_TEXT, 1.0, 1.0, 1.0); |
||
61 | end |
||
62 | </OnEnter> |
||
63 | <OnLeave> |
||
64 | GameTooltip:Hide(); |
||
65 | </OnLeave> |
||
66 | </Scripts> |
||
67 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
68 | </Button> |
||
69 | <Frame name="CT_MailFrame" parent="MailFrame" hidden="true"> |
||
70 | <Size> |
||
71 | <AbsDimension x="384" y="512"/> |
||
72 | </Size> |
||
73 | <Anchors> |
||
74 | <Anchor point="TOPLEFT"/> |
||
75 | </Anchors> |
||
76 | <Layers> |
||
77 | <Layer level="BACKGROUND"> |
||
78 | <FontString name="CT_MailTitleText" inherits="GameFontNormal" text="CT_MAIL_SEND"> |
||
79 | <Size> |
||
80 | <AbsDimension x="224" y="14"/> |
||
81 | </Size> |
||
82 | <Anchors> |
||
83 | <Anchor point="CENTER"> |
||
84 | <Offset> |
||
85 | <AbsDimension x="6" y="230"/> |
||
86 | </Offset> |
||
87 | </Anchor> |
||
88 | </Anchors> |
||
89 | </FontString> |
||
90 | <FontString name="CT_MailStatusText" inherits="GameFontNormal"> |
||
91 | <Size> |
||
92 | <AbsDimension x="224" y="14"/> |
||
93 | </Size> |
||
94 | <Anchors> |
||
95 | <Anchor point="BOTTOM" relativePoint="BOTTOM"> |
||
96 | <Offset> |
||
97 | <AbsDimension x="0" y="125"/> |
||
98 | </Offset> |
||
99 | </Anchor> |
||
100 | </Anchors> |
||
101 | </FontString> |
||
102 | <FontString justifyH="left" justifyV="top" name="CT_MailHelpText" inherits="GameFontNormal" text="CT_MAIL_HELP"> |
||
103 | <Size> |
||
104 | <AbsDimension x="300" y="150"/> |
||
105 | </Size> |
||
106 | <Anchors> |
||
107 | <Anchor point="TOPLEFT"> |
||
108 | <Offset> |
||
109 | <AbsDimension x="30" y="-105"/> |
||
110 | </Offset> |
||
111 | </Anchor> |
||
112 | </Anchors> |
||
113 | </FontString> |
||
114 | <Texture name="CT_MailHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
115 | <Size> |
||
116 | <AbsDimension x="256" y="16"/> |
||
117 | </Size> |
||
118 | <Anchors> |
||
119 | <Anchor point="TOPLEFT"> |
||
120 | <Offset> |
||
121 | <AbsDimension x="15" y="-350"/> |
||
122 | </Offset> |
||
123 | </Anchor> |
||
124 | </Anchors> |
||
125 | <TexCoords left="0" right="1.0" top="0" bottom="0.25"/> |
||
126 | </Texture> |
||
127 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
128 | <Size> |
||
129 | <AbsDimension x="75" y="16"/> |
||
130 | </Size> |
||
131 | <Anchors> |
||
132 | <Anchor point="LEFT" relativeTo="CT_MailHorizontalBarLeft" relativePoint="RIGHT"> |
||
133 | <Offset> |
||
134 | <AbsDimension x="0" y="0"/> |
||
135 | </Offset> |
||
136 | </Anchor> |
||
137 | </Anchors> |
||
138 | <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/> |
||
139 | </Texture> |
||
140 | </Layer> |
||
141 | </Layers> |
||
142 | <Frames> |
||
143 | <EditBox name="CT_MailNameEditBox" letters="12" historyLines="0" autoFocus="false"> |
||
144 | <Size> |
||
145 | <AbsDimension x="122" y="20"/> |
||
146 | </Size> |
||
147 | <Anchors> |
||
148 | <Anchor point="TOPLEFT"> |
||
149 | <Offset> |
||
150 | <AbsDimension x="105" y="-46"/> |
||
151 | </Offset> |
||
152 | </Anchor> |
||
153 | </Anchors> |
||
154 | <Layers> |
||
155 | <Layer level="BACKGROUND"> |
||
156 | <FontString inherits="GameFontNormal" text="MAIL_TO_LABEL" justifyH="RIGHT"> |
||
157 | <Anchors> |
||
158 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
159 | <Offset> |
||
160 | <AbsDimension x="-12" y="0"/> |
||
161 | </Offset> |
||
162 | </Anchor> |
||
163 | </Anchors> |
||
164 | </FontString> |
||
165 | <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border"> |
||
166 | <Size> |
||
167 | <AbsDimension x="8" y="20"/> |
||
168 | </Size> |
||
169 | <Anchors> |
||
170 | <Anchor point="TOPLEFT"> |
||
171 | <Offset> |
||
172 | <AbsDimension x="-8" y="0"/> |
||
173 | </Offset> |
||
174 | </Anchor> |
||
175 | </Anchors> |
||
176 | <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/> |
||
177 | </Texture> |
||
178 | <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border"> |
||
179 | <Size> |
||
180 | <AbsDimension x="100" y="20"/> |
||
181 | </Size> |
||
182 | <Anchors> |
||
183 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
184 | </Anchors> |
||
185 | <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/> |
||
186 | </Texture> |
||
187 | <Texture name="$parentRight" file="Interface\Common\Common-Input-Border"> |
||
188 | <Size> |
||
189 | <AbsDimension x="8" y="20"/> |
||
190 | </Size> |
||
191 | <Anchors> |
||
192 | <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/> |
||
193 | </Anchors> |
||
194 | <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/> |
||
195 | </Texture> |
||
196 | </Layer> |
||
197 | </Layers> |
||
198 | <Scripts> |
||
199 | <OnTabPressed> |
||
200 | CT_MailSubjectEditBox:SetFocus(); |
||
201 | </OnTabPressed> |
||
202 | <OnEditFocusLost> |
||
203 | this:HighlightText(0, 0); |
||
204 | </OnEditFocusLost> |
||
205 | <OnChar> |
||
206 | CT_Mail_AutoComplete(); |
||
207 | </OnChar> |
||
208 | <OnEnterPressed> |
||
209 | CT_MailSubjectEditBox:SetFocus(); |
||
210 | </OnEnterPressed> |
||
211 | <OnEscapePressed> |
||
212 | CT_MailNameEditBox:ClearFocus(); |
||
213 | </OnEscapePressed> |
||
214 | <OnTextChanged> |
||
215 | CT_Mail_CanSend(); |
||
216 | </OnTextChanged> |
||
217 | </Scripts> |
||
218 | <FontString inherits="ChatFontNormal"/> |
||
219 | </EditBox> |
||
220 | <Frame name="CT_MailCostMoneyFrame" inherits="SmallMoneyFrameTemplate"> |
||
221 | <Anchors> |
||
222 | <Anchor point="TOPRIGHT"> |
||
223 | <Offset> |
||
224 | <AbsDimension x="-46" y="-48"/> |
||
225 | </Offset> |
||
226 | </Anchor> |
||
227 | </Anchors> |
||
228 | <Layers> |
||
229 | <Layer level="BACKGROUND"> |
||
230 | <FontString inherits="GameFontNormal" text="SEND_MAIL_COST"> |
||
231 | <Anchors> |
||
232 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
233 | <Offset> |
||
234 | <AbsDimension x="-3" y="0"/> |
||
235 | </Offset> |
||
236 | </Anchor> |
||
237 | </Anchors> |
||
238 | </FontString> |
||
239 | </Layer> |
||
240 | </Layers> |
||
241 | <Scripts> |
||
242 | <OnLoad> |
||
243 | SmallMoneyFrame_OnLoad(); |
||
244 | MoneyFrame_SetType("STATIC"); |
||
245 | MoneyFrame_Update("CT_MailCostMoneyFrame", GetSendMailPrice()); |
||
246 | </OnLoad> |
||
247 | </Scripts> |
||
248 | </Frame> |
||
249 | <EditBox name="CT_MailSubjectEditBox" letters="64" historyLines="0" autoFocus="false"> |
||
250 | <Size> |
||
251 | <AbsDimension x="237" y="20"/> |
||
252 | </Size> |
||
253 | <Anchors> |
||
254 | <Anchor point="TOPLEFT" relativeTo="CT_MailNameEditBox" relativePoint="BOTTOMLEFT"> |
||
255 | <Offset> |
||
256 | <AbsDimension x="0" y="-3"/> |
||
257 | </Offset> |
||
258 | </Anchor> |
||
259 | </Anchors> |
||
260 | <Layers> |
||
261 | <Layer level="BACKGROUND"> |
||
262 | <FontString inherits="GameFontNormal" text="MAIL_SUBJECT_LABEL" justifyH="RIGHT"> |
||
263 | <Anchors> |
||
264 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
265 | <Offset> |
||
266 | <AbsDimension x="-12" y="0"/> |
||
267 | </Offset> |
||
268 | </Anchor> |
||
269 | </Anchors> |
||
270 | </FontString> |
||
271 | <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border"> |
||
272 | <Size> |
||
273 | <AbsDimension x="8" y="20"/> |
||
274 | </Size> |
||
275 | <Anchors> |
||
276 | <Anchor point="TOPLEFT"> |
||
277 | <Offset> |
||
278 | <AbsDimension x="-8" y="0"/> |
||
279 | </Offset> |
||
280 | </Anchor> |
||
281 | </Anchors> |
||
282 | <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/> |
||
283 | </Texture> |
||
284 | <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border"> |
||
285 | <Size> |
||
286 | <AbsDimension x="221" y="20"/> |
||
287 | </Size> |
||
288 | <Anchors> |
||
289 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
290 | </Anchors> |
||
291 | <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/> |
||
292 | </Texture> |
||
293 | <Texture name="$parentRight" file="Interface\Common\Common-Input-Border"> |
||
294 | <Size> |
||
295 | <AbsDimension x="8" y="20"/> |
||
296 | </Size> |
||
297 | <Anchors> |
||
298 | <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/> |
||
299 | </Anchors> |
||
300 | <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/> |
||
301 | </Texture> |
||
302 | </Layer> |
||
303 | </Layers> |
||
304 | <Scripts> |
||
305 | <OnTabPressed> |
||
306 | CT_MailNameEditBox:SetFocus(); |
||
307 | </OnTabPressed> |
||
308 | <OnEscapePressed> |
||
309 | CT_MailSubjectEditBox:ClearFocus(); |
||
310 | </OnEscapePressed> |
||
311 | </Scripts> |
||
312 | <FontString inherits="ChatFontNormal"/> |
||
313 | </EditBox> |
||
314 | <Frame name="CT_MailMoneyFrame" inherits="SmallMoneyFrameTemplate"> |
||
315 | <Anchors> |
||
316 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT"> |
||
317 | <Offset> |
||
318 | <AbsDimension x="183" y="84"/> |
||
319 | </Offset> |
||
320 | </Anchor> |
||
321 | </Anchors> |
||
322 | </Frame> |
||
323 | <Button name="CT_MailCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL"> |
||
324 | <Size> |
||
325 | <AbsDimension x="80" y="22"/> |
||
326 | </Size> |
||
327 | <Anchors> |
||
328 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
329 | <Offset> |
||
330 | <AbsDimension x="-39" y="80"/> |
||
331 | </Offset> |
||
332 | </Anchor> |
||
333 | </Anchors> |
||
334 | <Scripts> |
||
335 | <OnClick> |
||
336 | HideUIPanel(MailFrame); |
||
337 | </OnClick> |
||
338 | </Scripts> |
||
339 | </Button> |
||
340 | <Button name="CT_MailMailButton" inherits="UIPanelButtonTemplate" text="SEND_LABEL"> |
||
341 | <Size> |
||
342 | <AbsDimension x="80" y="22"/> |
||
343 | </Size> |
||
344 | <Anchors> |
||
345 | <Anchor point="RIGHT" relativeTo="SendMailCancelButton" relativePoint="LEFT"> |
||
346 | <Offset> |
||
347 | <AbsDimension x="0" y="0"/> |
||
348 | </Offset> |
||
349 | </Anchor> |
||
350 | </Anchors> |
||
351 | <Scripts> |
||
352 | <OnClick> |
||
353 | CT_Mail_AcceptSendFrame:Show(); |
||
354 | </OnClick> |
||
355 | </Scripts> |
||
356 | </Button> |
||
357 | |||
358 | <Button name="CT_MailAbortButton" hidden="true" inherits="UIPanelButtonTemplate" text="CT_MAIL_ABORT"> |
||
359 | <Size> |
||
360 | <AbsDimension x="80" y="22"/> |
||
361 | </Size> |
||
362 | <Anchors> |
||
363 | <Anchor point="BOTTOM" relativePoint="BOTTOM"> |
||
364 | <Offset> |
||
365 | <AbsDimension x="0" y="105"/> |
||
366 | </Offset> |
||
367 | </Anchor> |
||
368 | </Anchors> |
||
369 | <Scripts> |
||
370 | <OnClick> |
||
371 | CT_MailStatusText:SetText(format(CT_MAIL_ABORTED, CT_MailGlobalFrame.total-(getn(CT_MailGlobalFrame.queue)-1), CT_MailGlobalFrame.total)); |
||
372 | CT_MailGlobalFrame.queue = { }; |
||
373 | CT_MailGlobalFrame.total = 0; |
||
374 | CT_MailGlobalFrame:Hide(); |
||
375 | </OnClick> |
||
376 | </Scripts> |
||
377 | </Button> |
||
378 | |||
379 | <Button name="CT_MailButton1" inherits="CT_MailButtonTemplate" id="1" hidden="false"> |
||
380 | <Anchors> |
||
381 | <Anchor point="TOPLEFT"> |
||
382 | <Offset> |
||
383 | <AbsDimension x="30" y="-222"/> |
||
384 | </Offset> |
||
385 | </Anchor> |
||
386 | </Anchors> |
||
387 | </Button> |
||
388 | <Button name="CT_MailButton2" inherits="CT_MailButtonTemplate" id="2" hidden="false"> |
||
389 | <Anchors> |
||
390 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton1"> |
||
391 | <Offset> |
||
392 | <AbsDimension x="8" y="0"/> |
||
393 | </Offset> |
||
394 | </Anchor> |
||
395 | </Anchors> |
||
396 | </Button> |
||
397 | <Button name="CT_MailButton3" inherits="CT_MailButtonTemplate" id="3" hidden="false"> |
||
398 | <Anchors> |
||
399 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton2"> |
||
400 | <Offset> |
||
401 | <AbsDimension x="8" y="0"/> |
||
402 | </Offset> |
||
403 | </Anchor> |
||
404 | </Anchors> |
||
405 | </Button> |
||
406 | <Button name="CT_MailButton4" inherits="CT_MailButtonTemplate" id="4" hidden="false"> |
||
407 | <Anchors> |
||
408 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton3"> |
||
409 | <Offset> |
||
410 | <AbsDimension x="8" y="0"/> |
||
411 | </Offset> |
||
412 | </Anchor> |
||
413 | </Anchors> |
||
414 | </Button> |
||
415 | <Button name="CT_MailButton5" inherits="CT_MailButtonTemplate" id="5" hidden="false"> |
||
416 | <Anchors> |
||
417 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton4"> |
||
418 | <Offset> |
||
419 | <AbsDimension x="8" y="0"/> |
||
420 | </Offset> |
||
421 | </Anchor> |
||
422 | </Anchors> |
||
423 | </Button> |
||
424 | <Button name="CT_MailButton6" inherits="CT_MailButtonTemplate" id="6" hidden="false"> |
||
425 | <Anchors> |
||
426 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton5"> |
||
427 | <Offset> |
||
428 | <AbsDimension x="8" y="0"/> |
||
429 | </Offset> |
||
430 | </Anchor> |
||
431 | </Anchors> |
||
432 | </Button> |
||
433 | <Button name="CT_MailButton7" inherits="CT_MailButtonTemplate" id="7" hidden="false"> |
||
434 | <Anchors> |
||
435 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton6"> |
||
436 | <Offset> |
||
437 | <AbsDimension x="8" y="0"/> |
||
438 | </Offset> |
||
439 | </Anchor> |
||
440 | </Anchors> |
||
441 | </Button> |
||
442 | |||
443 | |||
444 | |||
445 | <Button name="CT_MailButton8" inherits="CT_MailButtonTemplate" id="8" hidden="false"> |
||
446 | <Anchors> |
||
447 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="CT_MailButton1"> |
||
448 | <Offset> |
||
449 | <AbsDimension x="0" y="-8"/> |
||
450 | </Offset> |
||
451 | </Anchor> |
||
452 | </Anchors> |
||
453 | </Button> |
||
454 | <Button name="CT_MailButton9" inherits="CT_MailButtonTemplate" id="9" hidden="false"> |
||
455 | <Anchors> |
||
456 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton8"> |
||
457 | <Offset> |
||
458 | <AbsDimension x="8" y="0"/> |
||
459 | </Offset> |
||
460 | </Anchor> |
||
461 | </Anchors> |
||
462 | </Button> |
||
463 | <Button name="CT_MailButton10" inherits="CT_MailButtonTemplate" id="10" hidden="false"> |
||
464 | <Anchors> |
||
465 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton9"> |
||
466 | <Offset> |
||
467 | <AbsDimension x="8" y="0"/> |
||
468 | </Offset> |
||
469 | </Anchor> |
||
470 | </Anchors> |
||
471 | </Button> |
||
472 | <Button name="CT_MailButton11" inherits="CT_MailButtonTemplate" id="11" hidden="false"> |
||
473 | <Anchors> |
||
474 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton10"> |
||
475 | <Offset> |
||
476 | <AbsDimension x="8" y="0"/> |
||
477 | </Offset> |
||
478 | </Anchor> |
||
479 | </Anchors> |
||
480 | </Button> |
||
481 | <Button name="CT_MailButton12" inherits="CT_MailButtonTemplate" id="12" hidden="false"> |
||
482 | <Anchors> |
||
483 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton11"> |
||
484 | <Offset> |
||
485 | <AbsDimension x="8" y="0"/> |
||
486 | </Offset> |
||
487 | </Anchor> |
||
488 | </Anchors> |
||
489 | </Button> |
||
490 | <Button name="CT_MailButton13" inherits="CT_MailButtonTemplate" id="13" hidden="false"> |
||
491 | <Anchors> |
||
492 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton12"> |
||
493 | <Offset> |
||
494 | <AbsDimension x="8" y="0"/> |
||
495 | </Offset> |
||
496 | </Anchor> |
||
497 | </Anchors> |
||
498 | </Button> |
||
499 | <Button name="CT_MailButton14" inherits="CT_MailButtonTemplate" id="14" hidden="false"> |
||
500 | <Anchors> |
||
501 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton13"> |
||
502 | <Offset> |
||
503 | <AbsDimension x="8" y="0"/> |
||
504 | </Offset> |
||
505 | </Anchor> |
||
506 | </Anchors> |
||
507 | </Button> |
||
508 | |||
509 | |||
510 | <Button name="CT_MailButton15" inherits="CT_MailButtonTemplate" id="15" hidden="false"> |
||
511 | <Anchors> |
||
512 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="CT_MailButton8"> |
||
513 | <Offset> |
||
514 | <AbsDimension x="0" y="-8"/> |
||
515 | </Offset> |
||
516 | </Anchor> |
||
517 | </Anchors> |
||
518 | </Button> |
||
519 | <Button name="CT_MailButton16" inherits="CT_MailButtonTemplate" id="16" hidden="false"> |
||
520 | <Anchors> |
||
521 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton15"> |
||
522 | <Offset> |
||
523 | <AbsDimension x="8" y="0"/> |
||
524 | </Offset> |
||
525 | </Anchor> |
||
526 | </Anchors> |
||
527 | </Button> |
||
528 | <Button name="CT_MailButton17" inherits="CT_MailButtonTemplate" id="17" hidden="false"> |
||
529 | <Anchors> |
||
530 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton16"> |
||
531 | <Offset> |
||
532 | <AbsDimension x="8" y="0"/> |
||
533 | </Offset> |
||
534 | </Anchor> |
||
535 | </Anchors> |
||
536 | </Button> |
||
537 | <Button name="CT_MailButton18" inherits="CT_MailButtonTemplate" id="18" hidden="false"> |
||
538 | <Anchors> |
||
539 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton17"> |
||
540 | <Offset> |
||
541 | <AbsDimension x="8" y="0"/> |
||
542 | </Offset> |
||
543 | </Anchor> |
||
544 | </Anchors> |
||
545 | </Button> |
||
546 | <Button name="CT_MailButton19" inherits="CT_MailButtonTemplate" id="19" hidden="false"> |
||
547 | <Anchors> |
||
548 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton18"> |
||
549 | <Offset> |
||
550 | <AbsDimension x="8" y="0"/> |
||
551 | </Offset> |
||
552 | </Anchor> |
||
553 | </Anchors> |
||
554 | </Button> |
||
555 | <Button name="CT_MailButton20" inherits="CT_MailButtonTemplate" id="20" hidden="false"> |
||
556 | <Anchors> |
||
557 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton19"> |
||
558 | <Offset> |
||
559 | <AbsDimension x="8" y="0"/> |
||
560 | </Offset> |
||
561 | </Anchor> |
||
562 | </Anchors> |
||
563 | </Button> |
||
564 | <Button name="CT_MailButton21" inherits="CT_MailButtonTemplate" id="21" hidden="false"> |
||
565 | <Anchors> |
||
566 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="CT_MailButton20"> |
||
567 | <Offset> |
||
568 | <AbsDimension x="8" y="0"/> |
||
569 | </Offset> |
||
570 | </Anchor> |
||
571 | </Anchors> |
||
572 | </Button> |
||
573 | </Frames> |
||
574 | <Scripts> |
||
575 | <OnShow> |
||
576 | CT_MailNameEditBox:SetFocus(); |
||
577 | </OnShow> |
||
578 | <OnLoad> |
||
579 | CT_MailFrame.num = 0; |
||
580 | this:RegisterEvent("MAIL_CLOSED"); |
||
581 | </OnLoad> |
||
582 | <OnEvent> |
||
583 | CT_Mail_ClearItems(); |
||
584 | CT_MailGlobalFrame.total = 0; |
||
585 | CT_MailGlobalFrame.queue = { }; |
||
586 | </OnEvent> |
||
587 | </Scripts> |
||
588 | </Frame> |
||
589 | |||
590 | <Button name="MailFrameTab3" inherits="FriendsFrameTabTemplate" id="3" parent="MailFrame" text="Mass Mail"> |
||
591 | <Anchors> |
||
592 | <Anchor point="LEFT" relativeTo="MailFrameTab2" relativePoint="RIGHT"> |
||
593 | <Offset> |
||
594 | <AbsDimension x="-8" y="0"/> |
||
595 | </Offset> |
||
596 | </Anchor> |
||
597 | </Anchors> |
||
598 | <Scripts> |
||
599 | <OnClick> |
||
600 | MailFrameTab_OnClick(); |
||
601 | </OnClick> |
||
602 | <OnLoad> |
||
603 | PanelTemplates_SetNumTabs(MailFrame, 3); |
||
604 | </OnLoad> |
||
605 | </Scripts> |
||
606 | </Button> |
||
607 | |||
608 | <Frame name="CT_Mail_AcceptSendFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="CT_MailFrame"> |
||
609 | <Size> |
||
610 | <AbsDimension x="400" y="150"/> |
||
611 | </Size> |
||
612 | <Anchors> |
||
613 | <Anchor point="CENTER" relativeTo="UIParent"/> |
||
614 | </Anchors> |
||
615 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
616 | <BackgroundInsets> |
||
617 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
618 | </BackgroundInsets> |
||
619 | <TileSize> |
||
620 | <AbsValue val="32"/> |
||
621 | </TileSize> |
||
622 | <EdgeSize> |
||
623 | <AbsValue val="32"/> |
||
624 | </EdgeSize> |
||
625 | </Backdrop> |
||
626 | <Layers> |
||
627 | <Layer level="ARTWORK"> |
||
628 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
629 | <Size> |
||
630 | <AbsDimension x="256" y="64"/> |
||
631 | </Size> |
||
632 | <Anchors> |
||
633 | <Anchor point="TOP"> |
||
634 | <Offset> |
||
635 | <AbsDimension x="0" y="12"/> |
||
636 | </Offset> |
||
637 | </Anchor> |
||
638 | </Anchors> |
||
639 | </Texture> |
||
640 | <FontString inherits="GameFontNormal" text="CT_MAIL_SEND"> |
||
641 | <Anchors> |
||
642 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
643 | <Offset> |
||
644 | <AbsDimension x="0" y="-14"/> |
||
645 | </Offset> |
||
646 | </Anchor> |
||
647 | </Anchors> |
||
648 | </FontString> |
||
649 | <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal" text="CT_MAIL_SENDINFO"> |
||
650 | <Size> |
||
651 | <AbsDimension x="350" y="32"/> |
||
652 | </Size> |
||
653 | <Anchors> |
||
654 | <Anchor point="TOP"> |
||
655 | <Offset> |
||
656 | <AbsDimension x="0" y="-78"/> |
||
657 | </Offset> |
||
658 | </Anchor> |
||
659 | </Anchors> |
||
660 | </FontString> |
||
661 | <FontString name="$parentInfoString" justifyV="top" inherits="GameFontNormal" text="CT_MAIL_SENDINFO2"> |
||
662 | <Size> |
||
663 | <AbsDimension x="350" y="12"/> |
||
664 | </Size> |
||
665 | <Anchors> |
||
666 | <Anchor point="TOP"> |
||
667 | <Offset> |
||
668 | <AbsDimension x="0" y="-30"/> |
||
669 | </Offset> |
||
670 | </Anchor> |
||
671 | </Anchors> |
||
672 | </FontString> |
||
673 | <FontString name="$parentInfoItems" justifyV="top" inherits="GameFontNormal" text=""> |
||
674 | <Size> |
||
675 | <AbsDimension x="350" y="12"/> |
||
676 | </Size> |
||
677 | <Anchors> |
||
678 | <Anchor point="TOP" relativeTo="$parentInfoString" relativePoint="BOTTOM"> |
||
679 | <Offset> |
||
680 | <AbsDimension x="0" y="-2"/> |
||
681 | </Offset> |
||
682 | </Anchor> |
||
683 | </Anchors> |
||
684 | </FontString> |
||
685 | </Layer> |
||
686 | </Layers> |
||
687 | <Frames> |
||
688 | <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate"> |
||
689 | <Anchors> |
||
690 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentInfo"> |
||
691 | <Offset> |
||
692 | <AbsDimension x="0" y="5"/> |
||
693 | </Offset> |
||
694 | </Anchor> |
||
695 | </Anchors> |
||
696 | <Scripts> |
||
697 | <OnLoad> |
||
698 | SmallMoneyFrame_OnLoad(); |
||
699 | MoneyFrame_SetType("STATIC"); |
||
700 | MoneyFrame_Update(this:GetName(), GetSendMailPrice()); |
||
701 | </OnLoad> |
||
702 | </Scripts> |
||
703 | </Frame> |
||
704 | <Button name="$parentSendButton" hidden="false" inherits="GameMenuButtonTemplate" text="CT_MAIL_SENDBUTTON"> |
||
705 | <Size> |
||
706 | <AbsDimension x="60" y="21"/> |
||
707 | </Size> |
||
708 | <Anchors> |
||
709 | <Anchor point="BOTTOM" relativePoint="BOTTOM"> |
||
710 | <Offset> |
||
711 | <AbsDimension x="-32" y="8"/> |
||
712 | </Offset> |
||
713 | </Anchor> |
||
714 | </Anchors> |
||
715 | <Scripts> |
||
716 | <OnClick> |
||
717 | CT_MailGlobalFrame.queue = CT_Mail_FillItemTable(); |
||
718 | CT_MailGlobalFrame.total = getn(CT_MailGlobalFrame.queue); |
||
719 | CT_Mail_ClearItems(); |
||
720 | CT_MailGlobalFrame:Show(); |
||
721 | this:GetParent():Hide(); |
||
722 | CT_Mail_CanSendNext = 1; |
||
723 | </OnClick> |
||
724 | </Scripts> |
||
725 | </Button> |
||
726 | <Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="CT_MAIL_CANCELBUTTON"> |
||
727 | <Size> |
||
728 | <AbsDimension x="60" y="21"/> |
||
729 | </Size> |
||
730 | <Anchors> |
||
731 | <Anchor point="BOTTOM" relativePoint="BOTTOM"> |
||
732 | <Offset> |
||
733 | <AbsDimension x="32" y="8"/> |
||
734 | </Offset> |
||
735 | </Anchor> |
||
736 | </Anchors> |
||
737 | <Scripts> |
||
738 | <OnClick> |
||
739 | this:GetParent():Hide(); |
||
740 | </OnClick> |
||
741 | </Scripts> |
||
742 | </Button> |
||
743 | </Frames> |
||
744 | <Scripts> |
||
745 | <OnShow> |
||
746 | getglobal(this:GetName() .. "InfoItems"):SetText(CT_MailFrame.num .. " " .. CT_MAIL_ITEMS); |
||
747 | MoneyFrame_Update(this:GetName() .. "MoneyFrame", CT_MailFrame.num*GetSendMailPrice()); |
||
748 | PlaySound("UChatScrollButton"); |
||
749 | </OnShow> |
||
750 | <OnHide> |
||
751 | PlaySound("UChatScrollButton"); |
||
752 | </OnHide> |
||
753 | </Scripts> |
||
754 | </Frame> |
||
755 | <Frame name="CT_MailGlobalFrame" parent="UIParent" hidden="true"> |
||
756 | <Scripts> |
||
757 | <OnUpdate> |
||
758 | CT_Mail_ProcessQueue(arg1); |
||
759 | </OnUpdate> |
||
760 | <OnLoad> |
||
761 | this.queue = { }; |
||
762 | this.update = 0; |
||
763 | this.total = 0; |
||
764 | this.sendmail = 0; |
||
765 | this.latency = 2.25; |
||
766 | this:RegisterEvent("MAIL_SEND_INFO_UPDATE"); |
||
767 | this:RegisterEvent("MAIL_SEND_SUCCESS"); |
||
768 | </OnLoad> |
||
769 | <OnEvent> |
||
770 | CT_Mail_OnEvent(event); |
||
771 | </OnEvent> |
||
772 | </Scripts> |
||
773 | </Frame> |
||
774 | <GameTooltip name="CT_MMTooltip" inherits="GameTooltipTemplate"> |
||
775 | <Scripts> |
||
776 | <OnLoad> |
||
777 | this:SetOwner(WorldFrame, "ANCHOR_NONE"); |
||
778 | </OnLoad> |
||
779 | </Scripts> |
||
780 | </GameTooltip> |
||
781 | </Ui> |