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 ..\FrameXML\UI.xsd">
3 <Script file="SpecialTalentUI.lua"/>
4 <Include file="SpecialTalentUITemplates.xml"/>
5 <Frame name="SpecialTalentFrame" enableMouse="true" movable="true" toplevel="true" parent="UIParent" frameStrata="HIGH" hidden="true">
6 <Size>
7 <AbsDimension x="900" y="586"/>
8 </Size>
9 <Anchors>
10 <Anchor point="TOPLEFT">
11 <Offset>
12 <AbsDimension x="0" y="-104"/>
13 </Offset>
14 </Anchor>
15 </Anchors>
16 <HitRectInsets>
17 <AbsInset left="12" right="40" top="12" bottom="71"/>
18 </HitRectInsets>
19 <Layers>
20 <Layer level="BACKGROUND">
21 <Texture name="SpecialTalentFramePortrait">
22 <Size>
23 <AbsDimension x="60" y="60"/>
24 </Size>
25 <Anchors>
26 <Anchor point="TOPLEFT">
27 <Offset>
28 <AbsDimension x="7" y="-6"/>
29 </Offset>
30 </Anchor>
31 </Anchors>
32 </Texture>
33 </Layer>
34 <Layer level="BORDER">
35 <Texture name="SpecialTalentFrameBorder_TopLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
36 <Size>
37 <AbsDimension x="256" y="256"/>
38 </Size>
39 <Anchors>
40 <Anchor point="TOPLEFT">
41 <Offset>
42 <AbsDimension x="2" y="-1"/>
43 </Offset>
44 </Anchor>
45 </Anchors>
46 </Texture>
47 <Texture name="SpecialTalentFrameBorder_TopLeft2" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
48 <Size>
49 AbsDimension x="256" y="256"/>
50 </Size>
51 <Anchors>
52 <Anchor point="TOPLEFT">
53 <Offset>
54 <AbsDimension x="258" y="-1"/>
55 </Offset>
56 </Anchor>
57 </Anchors>
58 <TexCoords left="0.3" right="1" top="0" bottom="1"/>
59 </Texture>
60 <Texture name="SpecialTalentFrameBorder_TopLeft3" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
61 <Size>
62 AbsDimension x="256" y="256"/>
63 </Size>
64 <Anchors>
65 <Anchor point="TOPLEFT">
66 <Offset>
67 <AbsDimension x="514" y="-1"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 <TexCoords left="0.3" right="1" top="0" bottom="1"/>
72 </Texture>
73 <Texture name="SpecialTalentFrameBorder_TopLeft4" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
74 <Size>
75 AbsDimension x="10" y="256"/>
76 </Size>
77 <Anchors>
78 <Anchor point="TOPLEFT">
79 <Offset>
80 <AbsDimension x="524" y="-1"/>
81 </Offset>
82 </Anchor>
83 </Anchors>
84 <TexCoords left="0.3" right="1" top="0" bottom="1"/>
85 </Texture>
86 <Texture name="SpecialTalentFrameBorder_TopRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
87 <Size>
88 <AbsDimension x="128" y="256"/>
89 </Size>
90 <Anchors>
91 <Anchor point="TOPRIGHT">
92 <Offset>
93 <AbsDimension x="2" y="-1"/>
94 </Offset>
95 </Anchor>
96 </Anchors>
97 </Texture>
98 <Texture name="SpecialTalentFrameBorder_Left" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
99 <Size>
100 AbsDimension x="10" y="76"/>
101 </Size>
102 <Anchors>
103 <Anchor point="TOPLEFT">
104 <Offset>
105 <AbsDimension x="2" y="-128"/>
106 </Offset>
107 </Anchor>
108 </Anchors>
109 <TexCoords left="0" right="1" top="0.5" bottom=".6"/>
110 </Texture>
111 <Texture name="SpecialTalentFrameBorder_Right" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
112 <Size>
113 <AbsDimension x="128" y="76"/>
114 </Size>
115 <Anchors>
116 <Anchor point="TOPRIGHT">
117 <Offset>
118 <AbsDimension x="2" y="-256"/>
119 </Offset>
120 </Anchor>
121 </Anchors>
122 <TexCoords left="0" right="1" top="0.5" bottom=".6"/>
123 </Texture>
124 <Texture name="SpecialTalentFrameBorder_BottomLeft" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
125 <Size>
126 <AbsDimension x="256" y="256"/>
127 </Size>
128 <Anchors>
129 <Anchor point="BOTTOMLEFT">
130 <Offset>
131 <AbsDimension x="2" y="-1"/>
132 </Offset>
133 </Anchor>
134 </Anchors>
135 </Texture>
136 <Texture name="SpecialTalentFrameBorder_BottomLeft2" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
137 <Size>
138 <AbsDimension x="256" y="256"/>
139 </Size>
140 <Anchors>
141 <Anchor point="BOTTOMLEFT">
142 <Offset>
143 <AbsDimension x="258" y="-1"/>
144 </Offset>
145 </Anchor>
146 </Anchors>
147 <TexCoords left="0.25" right="1" top="0" bottom="1"/>
148 </Texture>
149 <Texture name="SpecialTalentFrameBorder_BottomLeft3" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
150 <Size>
151 <AbsDimension x="256" y="256"/>
152 </Size>
153 <Anchors>
154 <Anchor point="BOTTOMLEFT">
155 <Offset>
156 <AbsDimension x="514" y="-1"/>
157 </Offset>
158 </Anchor>
159 </Anchors>
160 <TexCoords left="0.25" right="1" top="0" bottom="1"/>
161 </Texture>
162 <Texture name="SpecialTalentFrameBorder_BottomLeft4" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
163 <Size>
164 <AbsDimension x="256" y="256"/>
165 </Size>
166 <Anchors>
167 <Anchor point="BOTTOMLEFT">
168 <Offset>
169 <AbsDimension x="524" y="-1"/>
170 </Offset>
171 </Anchor>
172 </Anchors>
173 <TexCoords left="0.25" right="1" top="0" bottom="1"/>
174 </Texture>
175 <Texture name="SpecialTalentFrameBorder_BottomRight" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
176 <Size>
177 <AbsDimension x="128" y="256"/>
178 </Size>
179 <Anchors>
180 <Anchor point="BOTTOMRIGHT">
181 <Offset>
182 <AbsDimension x="2" y="-1"/>
183 </Offset>
184 </Anchor>
185 </Anchors>
186 </Texture>
187 </Layer>
188 <Layer level="OVERLAY">
189 <FontString name="SpecialTalentFrameTitleText" inherits="GameFontNormal" text="SPECIAL_TALENT">
190 <Anchors>
191 <Anchor point="TOP">
192 <Offset>
193 <AbsDimension x="0" y="-19"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 </FontString>
198 <FontString name="SpecialTalentFrameLearnedPointsText" inherits="GameFontHighlightSmall">
199 <Anchors>
200 <Anchor point="RIGHT" relativePoint="TOP">
201 <Offset>
202 <AbsDimension x="-25" y="-60"/>
203 </Offset>
204 </Anchor>
205 </Anchors>
206 </FontString>
207 <FontString name="SpecialTalentFramePlannedPointsText" inherits="GameFontHighlightSmall">
208 <Anchors>
209 <Anchor point="RIGHT" relativePoint="TOP">
210 <Offset>
211 <AbsDimension x="-25" y="-81"/>
212 </Offset>
213 </Anchor>
214 </Anchors>
215 </FontString>
216 <FontString name="SpecialTalentFrameTalentPointsText" inherits="GameFontHighlightSmall">
217 <Anchors>
218 <Anchor point="LEFT" relativePoint="TOP">
219 <Offset>
220 <AbsDimension x="25" y="-60"/>
221 </Offset>
222 </Anchor>
223 </Anchors>
224 </FontString>
225 <FontString name="SpecialTalentFrameTalentPoints" inherits="GameFontNormalSmall" text="TALENT_POINTS">
226 <Anchors>
227 <Anchor point="LEFT" relativeTo="SpecialTalentFrameTalentPointsText" relativePoint="RIGHT">
228 <Offset>
229 <AbsDimension x="3" y="0"/>
230 </Offset>
231 </Anchor>
232 </Anchors>
233 </FontString>
234 <FontString name="SpecialTalentFrameUnspentPointsText" inherits="GameFontHighlightSmall">
235 <Anchors>
236 <Anchor point="LEFT" relativePoint="TOP">
237 <Offset>
238 <AbsDimension x="25" y="-81"/>
239 </Offset>
240 </Anchor>
241 </Anchors>
242 </FontString>
243 <FontString name="SpecialTalentFrameUnspentPoints" inherits="GameFontNormalSmall" text="UNSPENT_POINTS">
244 <Anchors>
245 <Anchor point="LEFT" relativeTo="SpecialTalentFrameUnspentPointsText" relativePoint="RIGHT">
246 <Offset>
247 <AbsDimension x="3" y="0"/>
248 </Offset>
249 </Anchor>
250 </Anchors>
251 </FontString>
252 </Layer>
253 </Layers>
254 <Frames>
255 <Frame name="SpecialTalentFrameTabFrame1" inherits="SpecialTalentFrameTabFrameTemplate" id="1">
256 <Anchors>
257 <Anchor point="TOPLEFT">
258 <Offset>
259 <AbsDimension x="0" y="-80"/>
260 </Offset>
261 </Anchor>
262 </Anchors>
263 </Frame>
264 <Frame name="SpecialTalentFrameTabFrame2" inherits="SpecialTalentFrameTabFrameTemplate" id="2">
265 <Anchors>
266 <Anchor point="TOPLEFT">
267 <Offset>
268 <AbsDimension x="278" y="-80"/>
269 </Offset>
270 </Anchor>
271 </Anchors>
272 </Frame>
273 <Frame name="SpecialTalentFrameTabFrame3" inherits="SpecialTalentFrameTabFrameTemplate" id="3">
274 <Anchors>
275 <Anchor point="TOPLEFT">
276 <Offset>
277 <AbsDimension x="556" y="-80"/>
278 </Offset>
279 </Anchor>
280 </Anchors>
281 </Frame>
282 <CheckButton name="SpecialTalentFrameLearnedCheckButton">
283 <Size>
284 <AbsDimension x="24" y="24"/>
285 </Size>
286 <Anchors>
287 <Anchor point="RIGHT" relativePoint="TOP">
288 <Offset>
289 <AbsDimension x="-165" y="-60"/>
290 </Offset>
291 </Anchor>
292 </Anchors>
293 <Layers>
294 <Layer>
295 <FontString name="$parentText" inherits="GameFontNormalSmall" text="TALENTS_LEARNED">
296 <Anchors>
297 <Anchor point="LEFT" relativePoint="RIGHT">
298 <Offset>
299 <AbsDimension x="-2" y="0"/>
300 </Offset>
301 </Anchor>
302 </Anchors>
303 </FontString>
304 </Layer>
305 </Layers>
306 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
307 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
308 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
309 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
310 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
311 <Scripts>
312 <OnShow>
313 if ( SpecialTalentFrame.learnMode=="learned" ) then
314 this:SetChecked(1);
315 else
316 this:SetChecked(0);
317 end
318 </OnShow>
319 <OnClick>
320 if ( this:GetChecked() ) then
321 PlaySound("igMainMenuOptionCheckBoxOff");
322 else
323 PlaySound("igMainMenuOptionCheckBoxOn");
324 end
325 this:SetChecked(1);
326 SpecialTalentFramePlannedCheckButton:SetChecked(0);
327 SpecialTalentFrame.learnMode = "learned";
328 SpecialTalentFrame_Update();
329 </OnClick>
330 </Scripts>
331 </CheckButton>
332 <CheckButton name="SpecialTalentFramePlannedCheckButton">
333 <Size>
334 <AbsDimension x="24" y="24"/>
335 </Size>
336 <Anchors>
337 <Anchor point="RIGHT" relativePoint="TOP">
338 <Offset>
339 <AbsDimension x="-165" y="-81"/>
340 </Offset>
341 </Anchor>
342 </Anchors>
343 <Layers>
344 <Layer>
345 <FontString name="$parentText" inherits="GameFontNormalSmall" text="TALENTS_PLANNED">
346 <Anchors>
347 <Anchor point="LEFT" relativePoint="RIGHT">
348 <Offset>
349 <AbsDimension x="-2" y="0"/>
350 </Offset>
351 </Anchor>
352 </Anchors>
353 </FontString>
354 </Layer>
355 </Layers>
356 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
357 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
358 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
359 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
360 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
361 <Scripts>
362 <OnShow>
363 if ( SpecialTalentFrame.learnMode=="planned" ) then
364 this:SetChecked(1);
365 else
366 this:SetChecked(0);
367 end
368 </OnShow>
369 <OnClick>
370 if ( this:GetChecked() ) then
371 PlaySound("igMainMenuOptionCheckBoxOff");
372 else
373 PlaySound("igMainMenuOptionCheckBoxOn");
374 end
375 this:SetChecked(1);
376 SpecialTalentFrameLearnedCheckButton:SetChecked(0);
377 SpecialTalentFrame.learnMode = "planned";
378 SpecialTalentFrame_Update();
379 </OnClick>
380 </Scripts>
381 </CheckButton>
382 <CheckButton name="SpecialTalentFrameForceShiftCheckButton">
383 <Size>
384 <AbsDimension x="24" y="24"/>
385 </Size>
386 <Anchors>
387 <Anchor point="LEFT" relativePoint="TOPLEFT">
388 <Offset>
389 <AbsDimension x="215" y="-60"/>
390 </Offset>
391 </Anchor>
392 </Anchors>
393 <Layers>
394 <Layer>
395 <FontString name="$parentText" inherits="GameFontNormalSmall" text="SHIFT_CLICK_LEARN_TALENT">
396 <Anchors>
397 <Anchor point="RIGHT" relativePoint="LEFT">
398 <Offset>
399 <AbsDimension x="0" y="0"/>
400 </Offset>
401 </Anchor>
402 </Anchors>
403 </FontString>
404 </Layer>
405 </Layers>
406 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
407 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
408 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
409 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
410 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
411 <Scripts>
412 <OnShow>
413 this:SetChecked( (SpecialTalentFrameSaved and SpecialTalentFrameSaved.forceShift) or 0);
414 </OnShow>
415 <OnClick>
416 if ( this:GetChecked() ) then
417 PlaySound("igMainMenuOptionCheckBoxOff");
418 else
419 PlaySound("igMainMenuOptionCheckBoxOn");
420 end
421 SpecialTalentFrame_SetForceShift( this:GetChecked() )
422 </OnClick>
423 </Scripts>
424 </CheckButton>
425 <CheckButton name="SpecialTalentFrameTab1" inherits="SpecialTalentFrameTabTemplate" id="1">
426 <Anchors>
427 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
428 <Offset>
429 <AbsDimension x="-32" y="-65"/>
430 </Offset>
431 </Anchor>
432 </Anchors>
433 </CheckButton>
434 <CheckButton name="SpecialTalentFrameTab2" inherits="SpecialTalentFrameTabTemplate" id="2">
435 <Anchors>
436 <Anchor point="TOPLEFT" relativeTo="SpecialTalentFrameTab1" relativePoint="BOTTOMLEFT">
437 <Offset>
438 <AbsDimension x="0" y="-17"/>
439 </Offset>
440 </Anchor>
441 </Anchors>
442 </CheckButton>
443 <CheckButton name="SpecialTalentFrameTab3" inherits="SpecialTalentFrameTabTemplate" id="3">
444 <Anchors>
445 <Anchor point="TOPLEFT" relativeTo="SpecialTalentFrameTab2" relativePoint="BOTTOMLEFT">
446 <Offset>
447 <AbsDimension x="0" y="-17"/>
448 </Offset>
449 </Anchor>
450 </Anchors>
451 </CheckButton>
452 <Button name="SpecialTalentFrameDragButton">
453 <Size>
454 <AbsDimension x="60" y="60"/>
455 </Size>
456 <Anchors>
457 <Anchor point="TOPLEFT">
458 <Offset>
459 <AbsDimension x="7" y="-6"/>
460 </Offset>
461 </Anchor>
462 </Anchors>
463  
464 <Scripts>
465 <OnLoad>
466 this:RegisterForDrag("LeftButton");
467 </OnLoad>
468 <OnDragStart>
469 SpecialTalentFrame:StartMoving();
470 </OnDragStart>
471 <OnDragStop>
472 SpecialTalentFrame:StopMovingOrSizing();
473 ValidateFramePosition(SpecialTalentFrame);
474 SpecialTalentFrame_OnDrag();
475 </OnDragStop>
476 </Scripts>
477 </Button>
478 <Button name="SpecialTalentFrameCloseButton" inherits="UIPanelCloseButton">
479 <Anchors>
480 <Anchor point="TOPRIGHT" relativeTo="SpecialTalentFrame">
481 <Offset>
482 <AbsDimension x="-29" y="-8"/>
483 </Offset>
484 </Anchor>
485 </Anchors>
486 </Button>
487 <Button name="SpecialTalentFrameMinimizeButton" inherits="UIPanelButtonTemplate" text="v">
488 <Size>
489 <AbsDimension x="19" y="23"/>
490 </Size>
491 <Anchors>
492 <Anchor point="TOPRIGHT" relativeTo="SpecialTalentFrame">
493 <Offset>
494 <AbsDimension x="-59" y="-12"/>
495 </Offset>
496 </Anchor>
497 </Anchors>
498 <Scripts>
499 <OnClick>
500 if ( SpecialTalentFrameSaved.frameMinimized ) then
501 SpecialTalentFrameSaved.frameMinimized = nil;
502 else
503 SpecialTalentFrameSaved.frameMinimized = 1;
504 end
505 SpecialTalentFrame_ResetDrag();
506 </OnClick>
507 </Scripts>
508 </Button>
509 </Frames>
510 <Scripts>
511 <OnShow>
512 SpecialTalentFrame_OnShow();
513 </OnShow>
514 <OnHide>
515 SpecialTalentFrame_OnHide();
516 </OnHide>
517 <OnLoad>
518 SpecialTalentFrame_OnLoad();
519 </OnLoad>
520 <OnEvent>
521 SpecialTalentFrame_OnEvent();
522 </OnEvent>
523 </Scripts>
524 </Frame>
525 </Ui>