vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <!-- |
2 | |||
3 | TTCraftAddict |
||
4 | Copyright (c) Matthew Johnson. All rights reserved. |
||
5 | |||
6 | This work may be freely adapted and distributed as long as this notice remains intact. |
||
7 | This work may NOT be (re)sold or included in any compilations that are (re)sold. |
||
8 | |||
9 | --> |
||
10 | |||
11 | <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/ ..\FrameXML\UI.xsd"> |
||
12 | |||
13 | <!-- Localization. --> |
||
14 | <Script file="localization.lua"/> |
||
15 | |||
16 | <!-- Link the main code files. --> |
||
17 | <Script file="TTCraftAddict.lua"/> |
||
18 | |||
19 | <!-- Templates. --> |
||
20 | <Button name="TTCA_ListItemTemplate" hidden="false" virtual="true"> |
||
21 | <Size> |
||
22 | <AbsDimension x="300" y="22"/> |
||
23 | </Size> |
||
24 | <Layers> |
||
25 | <Layer level="ARTWORK"> |
||
26 | <Texture name="$parent_Indent"> |
||
27 | <Size> |
||
28 | <AbsDimension x="1" y="20"/> |
||
29 | </Size> |
||
30 | <Anchors> |
||
31 | <Anchor point="TOPLEFT"/> |
||
32 | </Anchors> |
||
33 | </Texture> |
||
34 | <Texture name="$parent_Texture"> |
||
35 | <Size> |
||
36 | <AbsDimension x="20" y="20"/> |
||
37 | </Size> |
||
38 | <Anchors> |
||
39 | <Anchor point="LEFT" relativeTo="$parent_Indent" relativePoint="RIGHT"/> |
||
40 | </Anchors> |
||
41 | </Texture> |
||
42 | </Layer> |
||
43 | </Layers> |
||
44 | <Frames> |
||
45 | <Frame name="$parent_TooltipTriggerFrame"> |
||
46 | <Size> |
||
47 | <AbsDimension x="20" y="20"/> |
||
48 | </Size> |
||
49 | <Anchors> |
||
50 | <Anchor point="TOPLEFT" relativeTo="$parent_Texture" relativePoint="TOPLEFT"/> |
||
51 | </Anchors> |
||
52 | <Scripts> |
||
53 | <OnEnter> |
||
54 | TTCA_ListItem_OnEnter(); |
||
55 | </OnEnter> |
||
56 | <OnLeave> |
||
57 | TTCA_ListItem_OnLeave(); |
||
58 | </OnLeave> |
||
59 | </Scripts> |
||
60 | </Frame> |
||
61 | </Frames> |
||
62 | <NormalText inherits="GameFontNormal" justifyH="LEFT"> |
||
63 | <Size> |
||
64 | <AbsDimension x="0" y="0"/> |
||
65 | </Size> |
||
66 | <Anchors> |
||
67 | <Anchor point="LEFT" relativeTo="$parent_Texture" relativePoint="RIGHT"> |
||
68 | <Offset> |
||
69 | <AbsDimension x="3" y="0"/> |
||
70 | </Offset> |
||
71 | </Anchor> |
||
72 | </Anchors> |
||
73 | </NormalText> |
||
74 | <HighlightText inherits="GameFontHighlight" justifyH="LEFT"> |
||
75 | <Size> |
||
76 | <AbsDimension x="0" y="0"/> |
||
77 | </Size> |
||
78 | <Anchors> |
||
79 | <Anchor point="LEFT" relativeTo="$parent_Texture" relativePoint="RIGHT"> |
||
80 | <Offset> |
||
81 | <AbsDimension x="3" y="0"/> |
||
82 | </Offset> |
||
83 | </Anchor> |
||
84 | </Anchors> |
||
85 | </HighlightText> |
||
86 | <DisabledText inherits="GameFontDisable" justifyH="LEFT"> |
||
87 | <Size> |
||
88 | <AbsDimension x="0" y="0"/> |
||
89 | </Size> |
||
90 | <Anchors> |
||
91 | <Anchor point="LEFT" relativeTo="$parent_Texture" relativePoint="RIGHT"> |
||
92 | <Offset> |
||
93 | <AbsDimension x="3" y="0"/> |
||
94 | </Offset> |
||
95 | </Anchor> |
||
96 | </Anchors> |
||
97 | </DisabledText> |
||
98 | <Scripts> |
||
99 | <OnClick> |
||
100 | TTCA_ListItem_OnClick(arg1); |
||
101 | </OnClick> |
||
102 | </Scripts> |
||
103 | </Button> |
||
104 | |||
105 | <!-- The button to expand the trade skill tree. --> |
||
106 | <Button name="TTCA_Button_ShowBuildTree" toplevel="true" parent="UIParent" enableMouse="true" hidden="true"> |
||
107 | <Size> |
||
108 | <AbsDimension x="32" y="32"/> |
||
109 | </Size> |
||
110 | <Anchors> |
||
111 | <Anchor point="TOPLEFT" relativeTo="TradeSkillFrame" relativePoint="TOPRIGHT"> |
||
112 | <Offset> |
||
113 | <AbsDimension x="-37" y="-9"/> |
||
114 | </Offset> |
||
115 | </Anchor> |
||
116 | </Anchors> |
||
117 | <Scripts> |
||
118 | <OnClick> |
||
119 | TTCA_ShowBuildTree(true); |
||
120 | </OnClick> |
||
121 | </Scripts> |
||
122 | <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/> |
||
123 | <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/> |
||
124 | <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/> |
||
125 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> |
||
126 | </Button> |
||
127 | |||
128 | <!-- The main trade skill tree frame. --> |
||
129 | <Frame name="TTCA_MainFrame" toplevel="true" parent="UIParent" enableMouse="true" hidden="true"> |
||
130 | <Size> |
||
131 | <AbsDimension x="337" y="421"/> |
||
132 | </Size> |
||
133 | <Anchors> |
||
134 | <Anchor point="TOPLEFT" relativeTo="TradeSkillFrame" relativePoint="TOPRIGHT"> |
||
135 | <Offset> |
||
136 | <AbsDimension x="-35" y="-13"/> |
||
137 | </Offset> |
||
138 | </Anchor> |
||
139 | </Anchors> |
||
140 | <Layers> |
||
141 | <Layer level="BACKGROUND"> |
||
142 | <Texture file="Interface\Addons\TTCraftAddict\UI-TTCA-MainFrame-TopLeft"> |
||
143 | <Size> |
||
144 | <AbsDimension x="256" y="256"/> |
||
145 | </Size> |
||
146 | <Anchors> |
||
147 | <Anchor point="TOPLEFT"> |
||
148 | <Offset> |
||
149 | <AbsDimension x="-12" y="13"/> |
||
150 | </Offset> |
||
151 | </Anchor> |
||
152 | </Anchors> |
||
153 | </Texture> |
||
154 | <Texture file="Interface\Addons\TTCraftAddict\UI-TTCA-MainFrame-TopRight"> |
||
155 | <Size> |
||
156 | <AbsDimension x="128" y="256"/> |
||
157 | </Size> |
||
158 | <Anchors> |
||
159 | <Anchor point="TOPLEFT"> |
||
160 | <Offset> |
||
161 | <AbsDimension x="244" y="13"/> |
||
162 | </Offset> |
||
163 | </Anchor> |
||
164 | </Anchors> |
||
165 | </Texture> |
||
166 | <Texture file="Interface\Addons\TTCraftAddict\UI-TTCA-MainFrame-BottomLeft"> |
||
167 | <Size> |
||
168 | <AbsDimension x="256" y="256"/> |
||
169 | </Size> |
||
170 | <Anchors> |
||
171 | <Anchor point="TOPLEFT"> |
||
172 | <Offset> |
||
173 | <AbsDimension x="-12" y="-243"/> |
||
174 | </Offset> |
||
175 | </Anchor> |
||
176 | </Anchors> |
||
177 | </Texture> |
||
178 | <Texture file="Interface\Addons\TTCraftAddict\UI-TTCA-MainFrame-BottomRight"> |
||
179 | <Size> |
||
180 | <AbsDimension x="128" y="256"/> |
||
181 | </Size> |
||
182 | <Anchors> |
||
183 | <Anchor point="TOPLEFT"> |
||
184 | <Offset> |
||
185 | <AbsDimension x="244" y="-243"/> |
||
186 | </Offset> |
||
187 | </Anchor> |
||
188 | </Anchors> |
||
189 | </Texture> |
||
190 | </Layer> |
||
191 | <Layer level="OVERLAY"> |
||
192 | <FontString inherits="GameFontNormal" text="TTCA_TEXT_CRAFTADDICT"> |
||
193 | <Anchors> |
||
194 | <Anchor point="TOPLEFT"> |
||
195 | <Offset> |
||
196 | <AbsDimension x="120" y="-4"/> |
||
197 | </Offset> |
||
198 | </Anchor> |
||
199 | </Anchors> |
||
200 | </FontString> |
||
201 | </Layer> |
||
202 | </Layers> |
||
203 | <Frames> |
||
204 | <Button name="TTCA_Tab_BuildTree" inherits="TabButtonTemplate"> |
||
205 | <Anchors> |
||
206 | <Anchor point="TOPLEFT"> |
||
207 | <Offset> |
||
208 | <AbsDimension x="15" y="-26"/> |
||
209 | </Offset> |
||
210 | </Anchor> |
||
211 | </Anchors> |
||
212 | <Scripts> |
||
213 | <OnClick> |
||
214 | TTCA_Tab_OnClick(TTCA_TAB_BUILDTREE); |
||
215 | </OnClick> |
||
216 | <OnLoad> |
||
217 | this:SetText(TTCA_TEXT_TAB_BUILDTREE_BUTTON); |
||
218 | </OnLoad> |
||
219 | <OnShow> |
||
220 | PanelTemplates_TabResize(0); |
||
221 | getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31); |
||
222 | </OnShow> |
||
223 | </Scripts> |
||
224 | </Button> |
||
225 | <Button name="TTCA_Tab_Materials" inherits="TabButtonTemplate"> |
||
226 | <Anchors> |
||
227 | <Anchor point="TOPLEFT" relativeTo="TTCA_Tab_BuildTree" relativePoint="TOPRIGHT"/> |
||
228 | </Anchors> |
||
229 | <Scripts> |
||
230 | <OnClick> |
||
231 | TTCA_Tab_OnClick(TTCA_TAB_MATERIALS); |
||
232 | </OnClick> |
||
233 | <OnLoad> |
||
234 | this:SetText(TTCA_TEXT_TAB_MATERIALS_BUTTON); |
||
235 | </OnLoad> |
||
236 | <OnShow> |
||
237 | PanelTemplates_TabResize(0); |
||
238 | getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31); |
||
239 | </OnShow> |
||
240 | </Scripts> |
||
241 | </Button> |
||
242 | <Frame name="TTCA_ListItem_HighlightFrame" hidden="true"> |
||
243 | <Size> |
||
244 | <AbsDimension x="300" y="22"/> |
||
245 | </Size> |
||
246 | <Anchors> |
||
247 | <Anchor point="TOPLEFT"/> |
||
248 | </Anchors> |
||
249 | <Layers> |
||
250 | <Layer level="BACKGROUND"> |
||
251 | <Texture name="TTCA_ListItem_Highlight" file="Interface\Buttons\UI-Listbox-Highlight2"> |
||
252 | <Size> |
||
253 | <AbsDimension x="300" y="20"/> |
||
254 | </Size> |
||
255 | <Anchors> |
||
256 | <Anchor point="TOPLEFT"/> |
||
257 | </Anchors> |
||
258 | </Texture> |
||
259 | </Layer> |
||
260 | </Layers> |
||
261 | </Frame> |
||
262 | <Button name="TTCA_ListItem1" inherits="TTCA_ListItemTemplate"> |
||
263 | <Anchors> |
||
264 | <Anchor point="TOPLEFT" relativeTo="TTCA_MainFrame" relativePoint="TOPLEFT"> |
||
265 | <Offset> |
||
266 | <AbsDimension x="12" y="-66"/> |
||
267 | </Offset> |
||
268 | </Anchor> |
||
269 | </Anchors> |
||
270 | </Button> |
||
271 | <Button name="TTCA_ListItem2" inherits="TTCA_ListItemTemplate"> |
||
272 | <Anchors> |
||
273 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem1" relativePoint="BOTTOMLEFT"/> |
||
274 | </Anchors> |
||
275 | </Button> |
||
276 | <Button name="TTCA_ListItem3" inherits="TTCA_ListItemTemplate"> |
||
277 | <Anchors> |
||
278 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem2" relativePoint="BOTTOMLEFT"/> |
||
279 | </Anchors> |
||
280 | </Button> |
||
281 | <Button name="TTCA_ListItem4" inherits="TTCA_ListItemTemplate"> |
||
282 | <Anchors> |
||
283 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem3" relativePoint="BOTTOMLEFT"/> |
||
284 | </Anchors> |
||
285 | </Button> |
||
286 | <Button name="TTCA_ListItem5" inherits="TTCA_ListItemTemplate"> |
||
287 | <Anchors> |
||
288 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem4" relativePoint="BOTTOMLEFT"/> |
||
289 | </Anchors> |
||
290 | </Button> |
||
291 | <Button name="TTCA_ListItem6" inherits="TTCA_ListItemTemplate"> |
||
292 | <Anchors> |
||
293 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem5" relativePoint="BOTTOMLEFT"/> |
||
294 | </Anchors> |
||
295 | </Button> |
||
296 | <Button name="TTCA_ListItem7" inherits="TTCA_ListItemTemplate"> |
||
297 | <Anchors> |
||
298 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem6" relativePoint="BOTTOMLEFT"/> |
||
299 | </Anchors> |
||
300 | </Button> |
||
301 | <Button name="TTCA_ListItem8" inherits="TTCA_ListItemTemplate"> |
||
302 | <Anchors> |
||
303 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem7" relativePoint="BOTTOMLEFT"/> |
||
304 | </Anchors> |
||
305 | </Button> |
||
306 | <Button name="TTCA_ListItem9" inherits="TTCA_ListItemTemplate"> |
||
307 | <Anchors> |
||
308 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem8" relativePoint="BOTTOMLEFT"/> |
||
309 | </Anchors> |
||
310 | </Button> |
||
311 | <Button name="TTCA_ListItem10" inherits="TTCA_ListItemTemplate"> |
||
312 | <Anchors> |
||
313 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem9" relativePoint="BOTTOMLEFT"/> |
||
314 | </Anchors> |
||
315 | </Button> |
||
316 | <Button name="TTCA_ListItem11" inherits="TTCA_ListItemTemplate"> |
||
317 | <Anchors> |
||
318 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem10" relativePoint="BOTTOMLEFT"/> |
||
319 | </Anchors> |
||
320 | </Button> |
||
321 | <Button name="TTCA_ListItem12" inherits="TTCA_ListItemTemplate"> |
||
322 | <Anchors> |
||
323 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem11" relativePoint="BOTTOMLEFT"/> |
||
324 | </Anchors> |
||
325 | </Button> |
||
326 | <Button name="TTCA_ListItem13" inherits="TTCA_ListItemTemplate"> |
||
327 | <Anchors> |
||
328 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem12" relativePoint="BOTTOMLEFT"/> |
||
329 | </Anchors> |
||
330 | </Button> |
||
331 | <Button name="TTCA_ListItem14" inherits="TTCA_ListItemTemplate"> |
||
332 | <Anchors> |
||
333 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem13" relativePoint="BOTTOMLEFT"/> |
||
334 | </Anchors> |
||
335 | </Button> |
||
336 | <Button name="TTCA_ListItem15" inherits="TTCA_ListItemTemplate"> |
||
337 | <Anchors> |
||
338 | <Anchor point="TOPLEFT" relativeTo="TTCA_ListItem14" relativePoint="BOTTOMLEFT"/> |
||
339 | </Anchors> |
||
340 | </Button> |
||
341 | <ScrollFrame name="TTCA_List_ScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
342 | <Size> |
||
343 | <AbsDimension x="298" y="335"/> |
||
344 | </Size> |
||
345 | <Anchors> |
||
346 | <Anchor point="TOPRIGHT" relativeTo="TTCA_MainFrame" relativePoint="TOPRIGHT"> |
||
347 | <Offset> |
||
348 | <AbsDimension x="-31" y="-61"/> |
||
349 | </Offset> |
||
350 | </Anchor> |
||
351 | </Anchors> |
||
352 | <Layers> |
||
353 | <Layer level="BACKGROUND"> |
||
354 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
355 | <Size> |
||
356 | <AbsDimension x="30" y="120"/> |
||
357 | </Size> |
||
358 | <Anchors> |
||
359 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
360 | <Offset> |
||
361 | <AbsDimension x="-3" y="2"/> |
||
362 | </Offset> |
||
363 | </Anchor> |
||
364 | </Anchors> |
||
365 | <TexCoords left="0" right="0.46875" top="0.0234375" bottom="0.9609375"/> |
||
366 | </Texture> |
||
367 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
368 | <Size> |
||
369 | <AbsDimension x="30" y="100"/> |
||
370 | </Size> |
||
371 | <Anchors> |
||
372 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
373 | <Offset> |
||
374 | <AbsDimension x="-3" y="-118"/> |
||
375 | </Offset> |
||
376 | </Anchor> |
||
377 | </Anchors> |
||
378 | <TexCoords left="0" right="0.46875" top="0.25" bottom="0.8"/> |
||
379 | </Texture> |
||
380 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
381 | <Size> |
||
382 | <AbsDimension x="30" y="123"/> |
||
383 | </Size> |
||
384 | <Anchors> |
||
385 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"> |
||
386 | <Offset> |
||
387 | <AbsDimension x="-3" y="-2"/> |
||
388 | </Offset> |
||
389 | </Anchor> |
||
390 | </Anchors> |
||
391 | <TexCoords left="0.53125" right="1.0" top="0.03125" bottom="1.0"/> |
||
392 | </Texture> |
||
393 | </Layer> |
||
394 | <!-- |
||
395 | <Layer level="BACKGROUND"> |
||
396 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> |
||
397 | <Size> |
||
398 | <AbsDimension x="30" y="256"/> |
||
399 | </Size> |
||
400 | <Anchors> |
||
401 | <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton"> |
||
402 | <Offset> |
||
403 | <AbsDimension x="0" y="5"/> |
||
404 | </Offset> |
||
405 | </Anchor> |
||
406 | </Anchors> |
||
407 | <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/> |
||
408 | </Texture> |
||
409 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> |
||
410 | <Size> |
||
411 | <AbsDimension x="30" y="106"/> |
||
412 | </Size> |
||
413 | <Anchors> |
||
414 | <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton"> |
||
415 | <Offset> |
||
416 | <AbsDimension x="0" y="-2"/> |
||
417 | </Offset> |
||
418 | </Anchor> |
||
419 | </Anchors> |
||
420 | <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/> |
||
421 | </Texture> |
||
422 | </Layer> |
||
423 | --> |
||
424 | </Layers> |
||
425 | <Scripts> |
||
426 | <OnVerticalScroll> |
||
427 | FauxScrollFrame_OnVerticalScroll(TTCA_LISTITEM_HEIGHT, TTCA_Update); |
||
428 | </OnVerticalScroll> |
||
429 | </Scripts> |
||
430 | </ScrollFrame> |
||
431 | <Button name="TTCA_Button_Close" inherits="UIPanelCloseButton"> |
||
432 | <Anchors> |
||
433 | <Anchor point="TOPRIGHT" relativeTo="TTCA_MainFrame" relativePoint="TOPRIGHT"> |
||
434 | <Offset> |
||
435 | <AbsDimension x="6" y="5"/> |
||
436 | </Offset> |
||
437 | </Anchor> |
||
438 | </Anchors> |
||
439 | <Scripts> |
||
440 | <OnClick> |
||
441 | TTCA_ShowBuildTree(false); |
||
442 | </OnClick> |
||
443 | </Scripts> |
||
444 | </Button> |
||
445 | <Button name="TTCA_Button_CreateAllTree" inherits="UIPanelButtonTemplate" text="CREATE_ALL"> |
||
446 | <Size> |
||
447 | <AbsDimension x="80" y="22"/> |
||
448 | </Size> |
||
449 | <Anchors> |
||
450 | <Anchor point="BOTTOMLEFT" relativeTo="TTCA_MainFrame" relativePoint="BOTTOMLEFT"> |
||
451 | <Offset> |
||
452 | <AbsDimension x="6" y="1"/> |
||
453 | </Offset> |
||
454 | </Anchor> |
||
455 | </Anchors> |
||
456 | <Scripts> |
||
457 | <OnClick> |
||
458 | TTCA_CreateTree_OnClick(true); |
||
459 | </OnClick> |
||
460 | </Scripts> |
||
461 | </Button> |
||
462 | <EditBox name="TTCA_InputBox_Quantity" letters="3" historyLines="0" numeric="true" autoFocus="false"> |
||
463 | <Size> |
||
464 | <AbsDimension x="30" y="20"/> |
||
465 | </Size> |
||
466 | <Anchors> |
||
467 | <Anchor point="BOTTOMLEFT" relativeTo="TTCA_MainFrame" relativePoint="BOTTOMLEFT"> |
||
468 | <Offset> |
||
469 | <AbsDimension x="117" y="2"/> |
||
470 | </Offset> |
||
471 | </Anchor> |
||
472 | </Anchors> |
||
473 | <Layers> |
||
474 | <Layer level="BACKGROUND"> |
||
475 | <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border"> |
||
476 | <Size> |
||
477 | <AbsDimension x="8" y="20"/> |
||
478 | </Size> |
||
479 | <Anchors> |
||
480 | <Anchor point="TOPLEFT"> |
||
481 | <Offset> |
||
482 | <AbsDimension x="-5" y="0"/> |
||
483 | </Offset> |
||
484 | </Anchor> |
||
485 | </Anchors> |
||
486 | <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/> |
||
487 | </Texture> |
||
488 | <Texture name="$parentRight" file="Interface\Common\Common-Input-Border"> |
||
489 | <Size> |
||
490 | <AbsDimension x="8" y="20"/> |
||
491 | </Size> |
||
492 | <Anchors> |
||
493 | <Anchor point="RIGHT"> |
||
494 | <Offset> |
||
495 | <AbsDimension x="0" y="0"/> |
||
496 | </Offset> |
||
497 | </Anchor> |
||
498 | </Anchors> |
||
499 | <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/> |
||
500 | </Texture> |
||
501 | <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border"> |
||
502 | <Size> |
||
503 | <AbsDimension x="10" y="20"/> |
||
504 | </Size> |
||
505 | <Anchors> |
||
506 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
507 | <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/> |
||
508 | </Anchors> |
||
509 | <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/> |
||
510 | </Texture> |
||
511 | </Layer> |
||
512 | </Layers> |
||
513 | <Scripts> |
||
514 | <OnEnterPressed> |
||
515 | this:ClearFocus(); |
||
516 | </OnEnterPressed> |
||
517 | <OnEscapePressed> |
||
518 | this:ClearFocus(); |
||
519 | </OnEscapePressed> |
||
520 | <OnTextChanged> |
||
521 | if (this:GetText() == "0") then |
||
522 | this:SetText("1"); |
||
523 | end |
||
524 | TTCA_Update(); |
||
525 | </OnTextChanged> |
||
526 | <OnEditFocusLost> |
||
527 | this:HighlightText(0, 0); |
||
528 | </OnEditFocusLost> |
||
529 | <OnEditFocusGained> |
||
530 | this:HighlightText(); |
||
531 | </OnEditFocusGained> |
||
532 | </Scripts> |
||
533 | <FontString inherits="ChatFontNormal"/> |
||
534 | </EditBox> |
||
535 | <Button name="TTCA_Button_DecrementQuantity"> |
||
536 | <Size> |
||
537 | <AbsDimension x="23" y="22"/> |
||
538 | </Size> |
||
539 | <Anchors> |
||
540 | <Anchor point="TOPRIGHT" relativeTo="TTCA_InputBox_Quantity" relativePoint="TOPLEFT"> |
||
541 | <Offset> |
||
542 | <AbsDimension x="-4" y="1"/> |
||
543 | </Offset> |
||
544 | </Anchor> |
||
545 | </Anchors> |
||
546 | <Scripts> |
||
547 | <OnClick> |
||
548 | TTCA_IncrementQuantity_OnClick(-1); |
||
549 | TTCA_InputBox_Quantity:ClearFocus(); |
||
550 | </OnClick> |
||
551 | </Scripts> |
||
552 | <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/> |
||
553 | <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/> |
||
554 | <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/> |
||
555 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> |
||
556 | </Button> |
||
557 | <Button name="TTCA_Button_IncrementQuantity"> |
||
558 | <Size> |
||
559 | <AbsDimension x="23" y="22"/> |
||
560 | </Size> |
||
561 | <Anchors> |
||
562 | <Anchor point="TOPLEFT" relativeTo="TTCA_InputBox_Quantity" relativePoint="TOPRIGHT"> |
||
563 | <Offset> |
||
564 | <AbsDimension x="0" y="1"/> |
||
565 | </Offset> |
||
566 | </Anchor> |
||
567 | </Anchors> |
||
568 | <Scripts> |
||
569 | <OnClick> |
||
570 | TTCA_IncrementQuantity_OnClick(1); |
||
571 | TTCA_InputBox_Quantity:ClearFocus(); |
||
572 | </OnClick> |
||
573 | </Scripts> |
||
574 | <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/> |
||
575 | <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/> |
||
576 | <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/> |
||
577 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> |
||
578 | </Button> |
||
579 | <Button name="TTCA_Button_CreateTree" inherits="UIPanelButtonTemplate" text="CREATE"> |
||
580 | <Size> |
||
581 | <AbsDimension x="80" y="22"/> |
||
582 | </Size> |
||
583 | <Anchors> |
||
584 | <Anchor point="BOTTOMRIGHT" relativeTo="TTCA_MainFrame" relativePoint="BOTTOMRIGHT"> |
||
585 | <Offset> |
||
586 | <AbsDimension x="-86" y="1"/> |
||
587 | </Offset> |
||
588 | </Anchor> |
||
589 | </Anchors> |
||
590 | <Scripts> |
||
591 | <OnClick> |
||
592 | TTCA_CreateTree_OnClick(false); |
||
593 | </OnClick> |
||
594 | </Scripts> |
||
595 | </Button> |
||
596 | <Button name="TTCA_Button_Exit" inherits="UIPanelButtonTemplate" text="EXIT"> |
||
597 | <Size> |
||
598 | <AbsDimension x="80" y="22"/> |
||
599 | </Size> |
||
600 | <Anchors> |
||
601 | <Anchor point="BOTTOMRIGHT" relativeTo="TTCA_MainFrame" relativePoint="BOTTOMRIGHT"> |
||
602 | <Offset> |
||
603 | <AbsDimension x="-4" y="1"/> |
||
604 | </Offset> |
||
605 | </Anchor> |
||
606 | </Anchors> |
||
607 | <Scripts> |
||
608 | <OnClick> |
||
609 | TTCA_ShowBuildTree(false); |
||
610 | </OnClick> |
||
611 | </Scripts> |
||
612 | </Button> |
||
613 | </Frames> |
||
614 | <Scripts> |
||
615 | <OnLoad> |
||
616 | TTCA_OnLoad(); |
||
617 | </OnLoad> |
||
618 | <OnEvent> |
||
619 | TTCA_OnEvent(); |
||
620 | </OnEvent> |
||
621 | <OnMouseWheel> |
||
622 | return; |
||
623 | </OnMouseWheel> |
||
624 | </Scripts> |
||
625 | </Frame> |
||
626 | |||
627 | </Ui> |
||
628 |