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/ ..\..\FrameXML\UI.xsd">
2 <Script file="MetaMapQST.loc"/>
3 <Script file="MetaMapQST.lua"/>
4  
5 <Button name="QST_ButtonTemplate" virtual="true">
6 <Layers>
7 <Layer level="ARTWORK">
8 <FontString name="$parentText" inherits="MetaMap_FontTemplate" justifyH="LEFT" text="">
9 <Anchors>
10 <Anchor point="TOPLEFT">
11 </Anchor>
12 </Anchors>
13 </FontString>
14 <FontString name="$parentStatus" inherits="MetaMap_FontTemplate" text="">
15 <Size><AbsDimension x="100" y="14"/></Size>
16 <Anchors>
17 <Anchor point="TOPLEFT" relativeTo="$parentText" relativePoint="TOPRIGHT">
18 </Anchor>
19 </Anchors>
20 </FontString>
21 <FontString name="$parentNoted" inherits="MetaMap_FontTemplate" text="">
22 <Size><AbsDimension x="100" y="14"/></Size>
23 <Anchors>
24 <Anchor point="TOPLEFT" relativeTo="$parentStatus" relativePoint="TOPRIGHT">
25 </Anchor>
26 </Anchors>
27 </FontString>
28 </Layer>
29 <Layer level="BACKGROUND">
30 <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
31 </Layer>
32 </Layers>
33 <Scripts>
34 <OnLoad>
35 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
36 </OnLoad>
37 <OnClick>
38 QSTButton_OnClick(arg1);
39 </OnClick>
40 <OnEnter>
41 getglobal(this:GetName().."Highlight"):SetVertexColor(0.5, 0.5, 0.5);
42 getglobal(this:GetName().."Highlight"):Show();
43 QSTButton_OnEnter();
44 </OnEnter>
45 <OnLeave>
46 getglobal(this:GetName().."Highlight"):Hide();
47 WorldMapTooltip:Hide();
48 </OnLeave>
49 </Scripts>
50 </Button>
51  
52 <Button name="QST_RewardTemplate" virtual="true">
53 <Size>
54 <AbsDimension x="41" y="41"/>
55 </Size>
56 <Layers>
57 <Layer level="BACKGROUND">
58 <Texture name="$parentIconTexture">
59 <Size>
60 <AbsDimension x="39" y="39"/>
61 </Size>
62 <Anchors>
63 <Anchor point="TOPLEFT">
64 <Offset>
65 <AbsDimension x="0" y="0"/>
66 </Offset>
67 </Anchor>
68 </Anchors>
69 </Texture>
70 </Layer>
71 <Layer level="ARTWORK">
72 <FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
73 <Anchors>
74 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture">
75 <Offset>
76 <AbsDimension x="-4" y="1"/>
77 </Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 </Layer>
82 </Layers>
83 <Scripts>
84 <OnLoad>
85 this.hasItem = 1;
86 </OnLoad>
87 <OnEnter>
88 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
89 if(this.rewardType == "item") then
90 GameTooltip:SetHyperlink(this.itemID);
91 elseif(this.rewardType == "spell" ) then
92 GameTooltip:SetHyperlink(this.name);
93 end
94 CursorUpdate();
95 </OnEnter>
96 <OnLeave>
97 GameTooltip:Hide();
98 ResetCursor();
99 </OnLeave>
100 <OnUpdate>
101 CursorOnUpdate();
102 </OnUpdate>
103 <OnClick>
104 QST_RewardItemOnClick();
105 </OnClick>
106 </Scripts>
107 </Button>
108  
109 <Frame name="QST_DisplayFrame" parent="MetaMapContainerFrame" enableMouse="true" hidden="true">
110 <Anchors>
111 <Anchor point="CENTER">
112 <Offset>
113 <AbsDimension x="0" y="0"/>
114 </Offset>
115 </Anchor>
116 </Anchors>
117 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true"/>
118 <Layers>
119 <Layer level="ARTWORK">
120 <FontString name="QST_HeaderText" toplevel="true" inherits="MetaMap_HeaderTemplate" text="">
121 <Anchors>
122 <Anchor point="TOP">
123 <Offset>
124 <AbsDimension x="0" y="-8"/>
125 </Offset>
126 </Anchor>
127 </Anchors>
128 </FontString>
129 <FontString name="QST_InfoText1" toplevel="true" inherits="MetaMap_FontTemplate" justifyH="LEFT" text="">
130 <Anchors>
131 <Anchor point="TOPLEFT">
132 <Offset>
133 <AbsDimension x="10" y="-10"/>
134 </Offset>
135 </Anchor>
136 </Anchors>
137 </FontString>
138 <FontString name="QST_InfoText2" toplevel="true" inherits="MetaMap_FontTemplate" justifyH="RIGHT" text="">
139 <Anchors>
140 <Anchor point="TOPRIGHT">
141 <Offset>
142 <AbsDimension x="-10" y="-10"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 </FontString>
147 </Layer>
148 </Layers>
149 <Frames>
150 <Frame name="QST_FooterPanel" toplevel="true">
151 <Anchors>
152 <Anchor point="BOTTOMLEFT">
153 <Offset><AbsDimension x="0" y="0" /></Offset>
154 </Anchor>
155 </Anchors>
156 <Frames>
157 <EditBox name="QST_SearchBox" inherits="MetaMap_SearchBoxTemplate">
158 <Anchors>
159 <Anchor point="LEFT">
160 <Offset><AbsDimension x="80" y="0"/></Offset>
161 </Anchor>
162 </Anchors>
163 <Scripts>
164 <OnTextChanged>
165 QST_LastSearch = this:GetText();
166 QST_RefreshDisplay();
167 </OnTextChanged>
168 </Scripts>
169 </EditBox>
170 <Frame name="QST_FilterSelect" inherits="MetaMap_DropdownTemplate" id="1">
171 <Size>
172 <AbsDimension x="220" y="24" />
173 </Size>
174 <Anchors>
175 <Anchor point="LEFT" relativeTo="QST_SearchBox" relativePoint="RIGHT">
176 <Offset><AbsDimension x="40" y="0"/></Offset>
177 </Anchor>
178 </Anchors>
179 </Frame>
180 <Button name="QST_OptionsButton" inherits="UIPanelButtonTemplate2" text="QST_OPTIONS_TEXT">
181 <Size>
182 <AbsDimension x="80" y="20"/>
183 </Size>
184 <Anchors>
185 <Anchor point="LEFT" relativeTo="QST_FilterSelect" relativePoint="RIGHT">
186 <Offset><AbsDimension x="40" y="0"/></Offset>
187 </Anchor>
188 </Anchors>
189 <Scripts>
190 <OnClick>
191 MetaMap_ToggleFrame(QST_OptionsFrame);
192 </OnClick>
193 </Scripts>
194 </Button>
195 <Button name="QST_HelpButton" inherits="UIPanelButtonTemplate2" text="?">
196 <Size>
197 <AbsDimension x="26" y="20"/>
198 </Size>
199 <Anchors>
200 <Anchor point="LEFT" relativeTo="QST_OptionsButton" relativePoint="RIGHT">
201 <Offset><AbsDimension x="40" y="0"/></Offset>
202 </Anchor>
203 </Anchors>
204 <Scripts>
205 <OnEnter>
206 QST_HintTooltip();
207 </OnEnter>
208 <OnLeave>
209 WorldMapTooltip:Hide();
210 </OnLeave>
211 <OnClick>
212 MetaMap_ContextHelp("MetaMapQST");
213 </OnClick>
214 </Scripts>
215 </Button>
216 </Frames>
217 <Scripts>
218 <OnLoad>
219 this:SetHeight(60);
220 this:SetWidth(MetaMapContainerFrame:GetWidth());
221 this:SetFrameLevel(MetaMapContainerFrame:GetFrameLevel()+2);
222 </OnLoad>
223 </Scripts>
224 </Frame>
225 <ScrollFrame name="QST_ScrollFrame" inherits="UIPanelScrollFrameTemplate">
226 <Size>
227 <AbsDimension x="256" y="512"/>
228 </Size>
229 <Anchors>
230 <Anchor point="TOPLEFT" relativeTo="QST_DisplayFrame" relativePoint="TOPLEFT">
231 <Offset>
232 <AbsDimension x="0" y="-38"/>
233 </Offset>
234 </Anchor>
235 <Anchor point="RIGHT" relativeTo="QST_DisplayFrame" relativePoint="RIGHT">
236 <Offset>
237 <AbsDimension x="-22" y="0"/>
238 </Offset>
239 </Anchor>
240 <Anchor point="BOTTOMLEFT" relativeTo="QST_DisplayFrame" relativePoint="BOTTOMLEFT">
241 <Offset>
242 <AbsDimension x="0" y="60"/>
243 </Offset>
244 </Anchor>
245 </Anchors>
246 <ScrollChild>
247 <Frame name="QST_ScrollChild">
248 <Size>
249 <AbsDimension x="600" y="500"/>
250 </Size>
251 <Anchors>
252 <Anchor point="TOPLEFT"/>
253 <Anchor point="TOPRIGHT"/>
254 </Anchors>
255 </Frame>
256 </ScrollChild>
257 </ScrollFrame>
258 </Frames>
259 <Scripts>
260 <OnLoad>
261 this:SetWidth(MetaMapContainerFrame:GetWidth());
262 this:SetHeight(MetaMapContainerFrame:GetHeight());
263 QST_ScrollChild:SetWidth(this:GetWidth());
264 </OnLoad>
265 <OnHide>
266 QST_EditorFrame:Hide();
267 QST_OptionsFrame:Hide();
268 </OnHide>
269 </Scripts>
270 </Frame>
271  
272 <Frame name="QST_RewardFrame" enableMouse="true" hidden="true" frameStrata="FULLSCREEN" toplevel="true" parent="UIParent">
273 <Size>
274 <AbsDimension x="200" y="100"/>
275 </Size>
276 <Backdrop bgFile="Interface\AddOns\MetaMapQST\background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="false">
277 <BackgroundInsets>
278 <AbsInset left="11" right="12" top="12" bottom="11"/>
279 </BackgroundInsets>
280 <EdgeSize>
281 <AbsValue val="32"/>
282 </EdgeSize>
283 </Backdrop>
284 <Layers>
285 <Layer level="ARTWORK">
286 <FontString name="QST_RewardTitleText" inherits="QuestTitleFont" text="QUEST_REWARDS">
287 <Anchors>
288 <Anchor point="TOP">
289 <Offset>
290 <AbsDimension x="0" y="-15"/>
291 </Offset>
292 </Anchor>
293 </Anchors>
294 </FontString>
295 <FontString name="QST_RewardItemChooseText" inherits="QuestFont" text="REWARD_CHOOSE" justifyH="LEFT">
296 <Anchors>
297 <Anchor point="TOPLEFT">
298 <Offset>
299 <AbsDimension x="20" y="-45"/>
300 </Offset>
301 </Anchor>
302 </Anchors>
303 </FontString>
304 <FontString name="QST_RewardItemReceiveText" inherits="QuestFont" justifyH="LEFT">
305 <Anchors>
306 <Anchor point="TOPLEFT"/>
307 </Anchors>
308 </FontString>
309 </Layer>
310 </Layers>
311 <Frames>
312 <Button name="QST_RewardItem1" toplevel="true" inherits="QST_RewardTemplate">
313 <Anchors>
314 <Anchor point="CENTER"/>
315 </Anchors>
316 </Button>
317 <Button name="QST_RewardItem2" toplevel="true" inherits="QST_RewardTemplate">
318 <Anchors>
319 <Anchor point="CENTER"/>
320 </Anchors>
321 </Button>
322 <Button name="QST_RewardItem3" toplevel="true" inherits="QST_RewardTemplate">
323 <Anchors>
324 <Anchor point="CENTER"/>
325 </Anchors>
326 </Button>
327 <Button name="QST_RewardItem4" toplevel="true" inherits="QST_RewardTemplate">
328 <Anchors>
329 <Anchor point="CENTER"/>
330 </Anchors>
331 </Button>
332 <Button name="QST_RewardItem5" toplevel="true" inherits="QST_RewardTemplate">
333 <Anchors>
334 <Anchor point="CENTER"/>
335 </Anchors>
336 </Button>
337 <Button name="QST_RewardItem6" toplevel="true" inherits="QST_RewardTemplate">
338 <Anchors>
339 <Anchor point="CENTER"/>
340 </Anchors>
341 </Button>
342 <Button name="QST_RewardItem7" toplevel="true" inherits="QST_RewardTemplate">
343 <Anchors>
344 <Anchor point="CENTER"/>
345 </Anchors>
346 </Button>
347 <Button name="QST_RewardItem8" toplevel="true" inherits="QST_RewardTemplate">
348 <Anchors>
349 <Anchor point="CENTER"/>
350 </Anchors>
351 </Button>
352 <Button name="QST_RewardItem9" toplevel="true" inherits="QST_RewardTemplate">
353 <Anchors>
354 <Anchor point="CENTER"/>
355 </Anchors>
356 </Button>
357 <Button name="QST_RewardItem10" toplevel="true" inherits="QST_RewardTemplate">
358 <Anchors>
359 <Anchor point="CENTER"/>
360 </Anchors>
361 </Button>
362 <Frame name="QST_RewardMoneyFrame" toplevel="true" inherits="MoneyFrameTemplate">
363 <Anchors>
364 <Anchor point="BOTTOM">
365 <Offset>
366 <AbsDimension x="0" y="20"/>
367 </Offset>
368 </Anchor>
369 </Anchors>
370 <Scripts>
371 <OnLoad>
372 MoneyFrame_OnLoad();
373 MoneyFrame_SetType("STATIC");
374 </OnLoad>
375 </Scripts>
376 </Frame>
377 </Frames>
378 <Scripts>
379 <OnLoad>
380 this:SetFrameLevel(WorldMapFrame:GetFrameLevel()+10);
381 </OnLoad>
382 <OnUpdate>
383 if(this:IsVisible()) then
384 if(not MouseIsOver(this)) then
385 this:Hide();
386 end
387 end
388 </OnUpdate>
389 </Scripts>
390 </Frame>
391  
392 <Frame name="QST_EditorFrame" enableMouse="true" hidden="true" frameStrata="FULLSCREEN" toplevel="true" parent="UIParent">
393 <Size><AbsDimension x="350" y="250"/></Size>
394 <Anchors><Anchor point="CENTER"/></Anchors>
395 <Backdrop bgFile="Interface\AddOns\MetaMapQST\background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="false">
396 <BackgroundInsets>
397 <AbsInset left="11" right="12" top="12" bottom="11"/>
398 </BackgroundInsets>
399 <EdgeSize>
400 <AbsValue val="32"/>
401 </EdgeSize>
402 </Backdrop>
403 <Layers>
404 <Layer level="ARTWORK">
405 <FontString name="QST_NotesTitle" inherits="QuestTitleFont" text="QST_NOTES_TITLE">
406 <Anchors>
407 <Anchor point="TOP">
408 <Offset>
409 <AbsDimension x="0" y="-25"/>
410 </Offset>
411 </Anchor>
412 </Anchors>
413 </FontString>
414 </Layer>
415 </Layers>
416 <Frames>
417 <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate" toplevel="true">
418 <Size>
419 <AbsDimension x="300" y="160" />
420 </Size>
421 <Anchors>
422 <Anchor point="CENTER">
423 <Offset><AbsDimension x="-10" y="-5"/></Offset>
424 </Anchor>
425 </Anchors>
426 <ScrollChild>
427 <EditBox name="QST_NotesEditBox" multiLine="true" autofocus="false" toplevel="true">
428 <Size>
429 <AbsDimension x="300" y="150" />
430 </Size>
431 <Anchors>
432 <Anchor point="CENTER">
433 <Offset><AbsDimension x="0" y="0"/></Offset>
434 </Anchor>
435 </Anchors>
436 <Scripts>
437 <OnEscapePressed>
438 this:ClearFocus();
439 </OnEscapePressed>
440 <OnTextChanged>
441 local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
442 this:GetParent():UpdateScrollChildRect();
443 local min, max = scrollBar:GetMinMaxValues();
444 if(max > 0 and (this.max ~= max)) then
445 this.max = max;
446 scrollBar:SetValue(max);
447 end
448 </OnTextChanged>
449 </Scripts>
450 <FontString inherits="QuestFont">
451 <Color r="0" g="0" b="0"/>
452 </FontString>
453 </EditBox>
454 </ScrollChild>
455 </ScrollFrame>
456 <Button name="QST_SaveNote" toplevel="true" inherits="UIPanelButtonTemplate2" text="QST_NOTES_SAVE">
457 <Size><AbsDimension x="80" y="20"/></Size>
458 <Anchors>
459 <Anchor point="BOTTOM">
460 <Offset><AbsDimension x="-70" y="15"/></Offset>
461 </Anchor>
462 </Anchors>
463 <Scripts>
464 <OnClick>
465 QST_QuestNoteUpdate();
466 </OnClick>
467 </Scripts>
468 </Button>
469 <Button name="QST_CancelNote" toplevel="true" inherits="UIPanelButtonTemplate2" text="QST_NOTES_EXIT">
470 <Size><AbsDimension x="80" y="20"/></Size>
471 <Anchors>
472 <Anchor point="BOTTOM">
473 <Offset><AbsDimension x="70" y="15"/></Offset>
474 </Anchor>
475 </Anchors>
476 <Scripts>
477 <OnClick>
478 this:GetParent():Hide();
479 </OnClick>
480 </Scripts>
481 </Button>
482 </Frames>
483 <Scripts>
484 <OnLoad>
485 this:SetFrameLevel(WorldMapFrame:GetFrameLevel()+10);
486 </OnLoad>
487 </Scripts>
488 </Frame>
489  
490 <Frame name="QST_OptionsFrame" inherits="MetaMap_OptionsFrameTemplate" toplevel="true" hidden="true" parent="UIParent">
491 <Frames>
492 <CheckButton name="QST_Check_SaveHistory" inherits="MetaMap_CheckButtonTemplate">
493 <Anchors>
494 <Anchor point="TOPLEFT">
495 <Offset><AbsDimension x="15" y="-35" /></Offset>
496 </Anchor>
497 </Anchors>
498 <Scripts>
499 <OnLoad>
500 this.option = string.gsub(this:GetName(), "QST_Check_", "");
501 getglobal(this:GetName().."Text"):SetText(QST_HISTORY_SAVE);
502 </OnLoad>
503 <OnShow>
504 this:SetChecked(QST_Options[this.option]);
505 </OnShow>
506 <OnClick>
507 QST_ToggleOptions(this.option);
508 </OnClick>
509 </Scripts>
510 </CheckButton>
511 <CheckButton name="QST_Check_SaveDesc" inherits="MetaMap_CheckButtonTemplate">
512 <Anchors>
513 <Anchor point="TOPLEFT" relativeTo="QST_Check_SaveHistory">
514 <Offset><AbsDimension x="0" y="-30" /></Offset>
515 </Anchor>
516 </Anchors>
517 <Scripts>
518 <OnLoad>
519 this.option = string.gsub(this:GetName(), "QST_Check_", "");
520 getglobal(this:GetName().."Text"):SetText(QST_HISTORY_DESC);
521 </OnLoad>
522 <OnShow>
523 this:SetChecked(QST_Options[this.option]);
524 </OnShow>
525 <OnClick>
526 QST_ToggleOptions(this.option);
527 </OnClick>
528 </Scripts>
529 </CheckButton>
530 <CheckButton name="QST_Check_SaveRew" inherits="MetaMap_CheckButtonTemplate">
531 <Anchors>
532 <Anchor point="TOPLEFT" relativeTo="QST_Check_SaveDesc">
533 <Offset><AbsDimension x="0" y="-30" /></Offset>
534 </Anchor>
535 </Anchors>
536 <Scripts>
537 <OnLoad>
538 this.option = string.gsub(this:GetName(), "QST_Check_", "");
539 getglobal(this:GetName().."Text"):SetText(QST_HISTORY_REW);
540 </OnLoad>
541 <OnShow>
542 this:SetChecked(QST_Options[this.option]);
543 </OnShow>
544 <OnClick>
545 QST_ToggleOptions(this.option);
546 </OnClick>
547 </Scripts>
548 </CheckButton>
549 <Slider name="QST_Slider_Padding" inherits="OptionsSliderTemplate">
550 <Size>
551 <AbsDimension x="120" y="16"/>
552 </Size>
553 <Anchors>
554 <Anchor point="BOTTOMLEFT">
555 <Offset>
556 <AbsDimension x="15" y="40" />
557 </Offset>
558 </Anchor>
559 </Anchors>
560 <Scripts>
561 <OnLoad>
562 this.option = string.gsub(this:GetName(), "QST_Slider_", "");
563 getglobal(this:GetName().."High"):SetText();
564 getglobal(this:GetName().."Low"):SetText();
565 this:SetMinMaxValues(0, 30);
566 this:SetValueStep(1);
567 </OnLoad>
568 <OnShow>
569 this:SetValue(QST_Options[this.option]);
570 getglobal(this:GetName().."Text"):SetText(QST_TEXT_PADDING.." |cff00ff00"..this:GetValue());
571 </OnShow>
572 <OnValueChanged>
573 getglobal(this:GetName().."Text"):SetText(QST_TEXT_PADDING.." |cff00ff00"..this:GetValue());
574 QST_ToggleOptions(this.option, this:GetValue());
575 QST_ShowDisplay();
576 </OnValueChanged>
577 </Scripts>
578 </Slider>
579 </Frames>
580 <Scripts>
581 <OnLoad>
582 getglobal(this:GetName().."Text"):SetText("MetaMapQST");
583 getglobal(this:GetName().."Text"):SetTextHeight(14);
584 </OnLoad>
585 <OnShow>
586 </OnShow>
587 <OnHide>
588 </OnHide>
589 </Scripts>
590 </Frame>
591  
592 <Frame name="QST_EventFrame" parent="UIParent">
593 <Scripts>
594 <OnLoad>
595 QST_OnLoad();
596 </OnLoad>
597 <OnUpdate>
598 QST_OnUpdate(arg1);
599 </OnUpdate>
600 <OnEvent>
601 QST_OnEvent(event, arg1);
602 </OnEvent>
603 </Scripts>
604 </Frame>
605 </Ui>