vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!-- Ralak's Needy List -->
2 <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/">
3 <Script file="NeedyList.lua"/>
4 <Script file="NLConfig.lua"/>
5  
6 <CheckButton name="NLCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
7 <HitRectInsets>
8 <AbsInset left="0" right="0" top="0" bottom="0"/>
9 </HitRectInsets>
10 <Scripts>
11 <OnClick>
12 if ( this:GetChecked() ) then
13 PlaySound("igMainMenuOptionCheckBoxOff");
14 else
15 PlaySound("igMainMenuOptionCheckBoxOn");
16 end
17 </OnClick>
18 <OnLeave>
19 GameTooltip:Hide();
20 </OnLeave>
21 </Scripts>
22 </CheckButton>
23  
24 <Button name="NLButtonTemplate" virtual="true" hidden="false">
25 <Size>
26 <AbsDimension x="28" y="28"/>
27 </Size>
28 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
29 <EdgeSize>
30 <AbsValue val="16"/>
31 </EdgeSize>
32 <TileSize>
33 <AbsValue val="16"/>
34 </TileSize>
35 <BackgroundInsets>
36 <AbsInset left="5" right="5" top="5" bottom="5"/>
37 </BackgroundInsets>
38 </Backdrop>
39 <Scripts>
40 <OnShow>
41 this:SetBackdropColor(0, 0, 0.5, 1);
42 </OnShow>
43 </Scripts>
44 </Button>
45  
46 <Button name="NLNeedTemplate" virtual="true" hidden="true" inherits="NLButtonTemplate">
47 <Size>
48 <AbsDimension x="300" y="30"/>
49 </Size>
50 <Frames>
51 <CheckButton name="$parent_CheckButton" inherits="NLCheckTemplate">
52 <Anchors>
53 <Anchor point="LEFT">
54 <Offset>
55 <AbsDimension x="0" y="0"/>
56 </Offset>
57 </Anchor>
58 </Anchors>
59 </CheckButton>
60 <Button name="$parent_ColorSwatch">
61 <Size>
62 <AbsDimension x="16" y="16"/>
63 </Size>
64 <Anchors>
65 <Anchor point="LEFT" relativeTo="$parent_CheckButton" relativePoint="RIGHT">
66 <Offset>
67 <AbsDimension x="175" y="0"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 <Layers>
72 <Layer level="BACKGROUND">
73 <Texture name="$parent_SwatchBg">
74 <Size>
75 <AbsDimension x="14" y="14"/>
76 </Size>
77 <Anchors>
78 <Anchor point="CENTER">
79 <Offset>
80 <AbsDimension x="0" y="0"/>
81 </Offset>
82 </Anchor>
83 </Anchors>
84 <Color r="1.0" g="1.0" b="1.0"/>
85 </Texture>
86 </Layer>
87 </Layers>
88 <Scripts>
89 <OnClick>
90 NL_OpenColorPicker(this:GetParent());
91 </OnClick>
92 <OnEnter>
93 getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
94 </OnEnter>
95 <OnLeave>
96 getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
97 </OnLeave>
98 </Scripts>
99 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
100 </Button>
101 <Button name="$parentFilters" inherits="GameMenuButtonTemplate">
102 <Size>
103 <AbsDimension x="68" y="21" />
104 </Size>
105 <Anchors>
106 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_ColorSwatch">
107 <Offset>
108 <AbsDimension x="5" y="0" />
109 </Offset>
110 </Anchor>
111 </Anchors>
112 <Scripts>
113 <OnLoad>
114 this:SetText(NL_FILTERS);
115 </OnLoad>
116 <OnClick>
117 PlaySound("gsTitleOptionOK");
118 if( NLFilterListFrame.NeedFrame == this:GetParent():GetName() and NLFilterListFrame:IsVisible() ) then
119 NLFilterListFrame:Hide();
120 else
121 NLFilterListFrame:Hide();
122 if( this:GetParent().Filter == nil ) then
123 this:GetParent().Filter = {Type="Everyone"};
124 end
125 NLFilterListFrame.NeedFrame = this:GetParent():GetName();
126 NLFilterListFrame:SetPoint("TOPLEFT", this:GetName(), "TOPRIGHT");
127 NLFilterListFrame:Show();
128 end
129 </OnClick>
130 </Scripts>
131 </Button>
132 </Frames>
133 <Scripts>
134 <OnShow>
135 this:SetBackdropColor(0, 0, 0.5, 1);
136 </OnShow>
137 <OnMouseDown>
138 if( NLConfigNeedsFrameNeedSticky ~= this and NLConfigNeedsFrameNeedNeverShow ~= this ) then
139 NLMovingFrame = this;
140 end
141 </OnMouseDown>
142 <OnMouseUp>
143 NLMovingFrame = nil;
144 </OnMouseUp>
145 <OnEnter>
146 if( this ~= NLMovingFrame and NLMovingFrame ~= nil ) then
147 if( NLConfigNeedsFrameNeedSticky ~= this and NLConfigNeedsFrameNeedNeverShow ~= this ) then
148 NL_SwapNeedFrames( this, NLMovingFrame );
149 end
150 else
151 NL_SetTooltipOwner(this, "ANCHOR_RIGHT");
152 GameTooltip:SetText(NL_CLICKANDDRAG);
153 this:SetBackdropColor(0, 0.5, 0.5, 1);
154 end
155 </OnEnter>
156 <OnLeave>
157 if( NLMovingFrame == nil ) then
158 this:SetBackdropColor(0, 0, 0.5, 1);
159 GameTooltip:Hide();
160 end
161 </OnLeave>
162 </Scripts>
163 </Button>
164  
165 <Frame name="NLConfigFrameTemplate" virtual="true" toplevel="true" frameStrata="LOW" movable="true" enableMouse="true" hidden="true">
166 <Size>
167 <AbsDimension x="340" y="430" />
168 </Size>
169 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
170 <BackgroundInsets>
171 <AbsInset left="11" right="12" top="12" bottom="11" />
172 <Size>
173 <AbsDimension x="128" y="17" />
174 </Size>
175 </BackgroundInsets>
176 <TileSize>
177 <AbsValue val="32" />
178 </TileSize>
179 <EdgeSize>
180 <AbsValue val="32" />
181 </EdgeSize>
182 </Backdrop>
183 <Scripts>
184 <OnMouseDown>
185 this:StartMoving();
186 </OnMouseDown>
187 <OnMouseUp>
188 this:StopMovingOrSizing();
189 </OnMouseUp>
190 </Scripts>
191 </Frame>
192  
193 <Frame name="NLConfigFrame" inherits="NLConfigFrameTemplate" parent="UIParent">
194 <Size>
195 <AbsDimension x="450" y="510" />
196 </Size>
197 <Anchors>
198 <Anchor point="CENTER" />
199 </Anchors>
200 <Layers>
201 <Layer level="ARTWORK">
202 <Texture name="$parentTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
203 <Size>
204 <AbsDimension x="350" y="64" />
205 </Size>
206 <Anchors>
207 <Anchor point="TOP">
208 <Offset>
209 <AbsDimension x="0" y="12" />
210 </Offset>
211 </Anchor>
212 </Anchors>
213 </Texture>
214 <FontString name="$parentTitleText" inherits="GameFontNormal">
215 <Anchors>
216 <Anchor point="TOP" relativeTo="NLConfigFrame">
217 <Offset>
218 <AbsDimension x="0" y="-3" />
219 </Offset>
220 </Anchor>
221 </Anchors>
222 </FontString>
223 </Layer>
224 </Layers>
225 <Frames>
226 <CheckButton name="$parent_CheckButtonUseWhenSolo" inherits="NLCheckTemplate">
227 <Anchors>
228 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
229 <Offset>
230 <AbsDimension x="30" y="-30" />
231 </Offset>
232 </Anchor>
233 </Anchors>
234 <Scripts>
235 <OnLoad>
236 NLConfigFrame_CheckButtonUseWhenSoloText:SetText(NL_USEWHENSOLO);
237 </OnLoad>
238 </Scripts>
239 </CheckButton>
240 <CheckButton name="$parent_CheckButtonUseInParty" inherits="NLCheckTemplate">
241 <Anchors>
242 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonUseWhenSolo" relativePoint="TOPRIGHT">
243 <Offset>
244 <AbsDimension x="85" y="0" />
245 </Offset>
246 </Anchor>
247 </Anchors>
248 <Scripts>
249 <OnLoad>
250 NLConfigFrame_CheckButtonUseInPartyText:SetText(NL_USEINPARTY);
251 </OnLoad>
252 </Scripts>
253 </CheckButton>
254 <CheckButton name="$parent_CheckButtonUseInRaid" inherits="NLCheckTemplate">
255 <Anchors>
256 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonUseInParty" relativePoint="TOPRIGHT">
257 <Offset>
258 <AbsDimension x="85" y="0" />
259 </Offset>
260 </Anchor>
261 </Anchors>
262 <Scripts>
263 <OnLoad>
264 NLConfigFrame_CheckButtonUseInRaidText:SetText(NL_USEINRAID);
265 </OnLoad>
266 </Scripts>
267 </CheckButton>
268 <CheckButton name="$parent_CheckButtonShowHealth" inherits="NLCheckTemplate">
269 <Anchors>
270 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonUseWhenSolo" relativePoint="BOTTOMLEFT"/>
271 </Anchors>
272 <Scripts>
273 <OnLoad>
274 NLConfigFrame_CheckButtonShowHealthText:SetText(NL_SHOWHEALTHBAR);
275 </OnLoad>
276 </Scripts>
277 </CheckButton>
278 <CheckButton name="$parent_CheckButtonShowMana" inherits="NLCheckTemplate">
279 <Anchors>
280 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowHealth" relativePoint="BOTTOMLEFT"/>
281 </Anchors>
282 <Scripts>
283 <OnLoad>
284 NLConfigFrame_CheckButtonShowManaText:SetText(NL_SHOWRAGEMANAENERGY);
285 </OnLoad>
286 </Scripts>
287 </CheckButton>
288 <CheckButton name="$parent_CheckButtonUseCastParty" inherits="NLCheckTemplate">
289 <Anchors>
290 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowMana" relativePoint="BOTTOMLEFT"/>
291 </Anchors>
292 <Scripts>
293 <OnLoad>
294 NLConfigFrame_CheckButtonUseCastPartyText:SetText(NL_USECASTPARTYCLICKS);
295 </OnLoad>
296 </Scripts>
297 </CheckButton>
298 <CheckButton name="$parent_CheckButtonLargeNeedIcons" inherits="NLCheckTemplate">
299 <Anchors>
300 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonUseCastParty" relativePoint="BOTTOMLEFT"/>
301 </Anchors>
302 <Scripts>
303 <OnLoad>
304 NLConfigFrame_CheckButtonLargeNeedIconsText:SetText(NL_LARGENEEDICONS);
305 </OnLoad>
306 </Scripts>
307 </CheckButton>
308 <CheckButton name="$parent_CheckButtonInvertList" inherits="NLCheckTemplate">
309 <Anchors>
310 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonLargeNeedIcons" relativePoint="BOTTOMLEFT"/>
311 </Anchors>
312 <Scripts>
313 <OnLoad>
314 NLConfigFrame_CheckButtonInvertListText:SetText(NL_GROWLISTUPWARD);
315 </OnLoad>
316 </Scripts>
317 </CheckButton>
318 <CheckButton name="$parent_CheckButtonColorByClass" inherits="NLCheckTemplate">
319 <Anchors>
320 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonInvertList" relativePoint="BOTTOMLEFT"/>
321 </Anchors>
322 <Scripts>
323 <OnLoad>
324 NLConfigFrame_CheckButtonColorByClassText:SetText(NL_COLORFRAMESBYCLASS);
325 </OnLoad>
326 </Scripts>
327 </CheckButton>
328 <CheckButton name="$parent_CheckButtonShowTargetFrame" inherits="NLCheckTemplate">
329 <Anchors>
330 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonColorByClass" relativePoint="BOTTOMLEFT"/>
331 </Anchors>
332 <Scripts>
333 <OnLoad>
334 NLConfigFrame_CheckButtonShowTargetFrameText:SetText(ML_SHOWTARGETMONITOR);
335 </OnLoad>
336 </Scripts>
337 </CheckButton>
338 <CheckButton name="$parent_CheckButtonShowHealthNum" inherits="NLCheckTemplate">
339 <Anchors>
340 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowTargetFrame" relativePoint="BOTTOMLEFT"/>
341 </Anchors>
342 <Scripts>
343 <OnLoad>
344 NLConfigFrame_CheckButtonShowHealthNumText:SetText(NL_SHOWHEALTHASNUMBER);
345 </OnLoad>
346 <OnShow>
347 if( NLConfig.ShowHealthNum == 1 ) then
348 NLConfigFrame_CheckButtonShowHealthLost:Show();
349 else
350 NLConfigFrame_CheckButtonShowHealthLost:Hide();
351 end
352 </OnShow>
353 <OnClick>
354 if( this:GetChecked() == nil ) then
355 NLConfigFrame_CheckButtonShowHealthLost:Hide();
356 else
357 NLConfigFrame_CheckButtonShowHealthLost:Show();
358 end
359 </OnClick>
360 </Scripts>
361 </CheckButton>
362 <CheckButton name="$parent_CheckButtonShowHealthLost" inherits="NLCheckTemplate">
363 <Anchors>
364 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowHealthNum" relativePoint="BOTTOMLEFT"/>
365 </Anchors>
366 <Scripts>
367 <OnLoad>
368 NLConfigFrame_CheckButtonShowHealthLostText:SetText(NL_SHOWHEALTHLOST);
369 if( NLConfigFrame_CheckButtonShowHealthNum:GetChecked() == nil ) then
370 NLConfigFrame_CheckButtonShowHealthLost:Hide();
371 end
372 </OnLoad>
373 </Scripts>
374 </CheckButton>
375 <CheckButton name="$parent_CheckButtonShowNeeds" inherits="NLCheckTemplate">
376 <Anchors>
377 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
378 <Offset>
379 <AbsDimension x="-210" y="-63" />
380 </Offset>
381 </Anchor>
382 </Anchors>
383 <Scripts>
384 <OnLoad>
385 NLConfigFrame_CheckButtonShowNeedsText:SetText(NL_SHOWNEEDICONS);
386 </OnLoad>
387 </Scripts>
388 </CheckButton>
389 <CheckButton name="$parent_CheckButtonShowBuffs" inherits="NLCheckTemplate">
390 <Anchors>
391 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowNeeds" relativePoint="BOTTOMLEFT"/>
392 </Anchors>
393 <Scripts>
394 <OnLoad>
395 NLConfigFrame_CheckButtonShowBuffsText:SetText(NL_SHOWBUFFS);
396 </OnLoad>
397 </Scripts>
398 </CheckButton>
399 <CheckButton name="$parent_CheckButtonShowHealBuffs" inherits="NLCheckTemplate">
400 <Anchors>
401 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowBuffs" relativePoint="BOTTOMLEFT"/>
402 </Anchors>
403 <Scripts>
404 <OnLoad>
405 NLConfigFrame_CheckButtonShowHealBuffsText:SetText(NL_SHOWHEALBUFFS);
406 </OnLoad>
407 </Scripts>
408 </CheckButton>
409 <CheckButton name="$parent_CheckButtonShowDebuffs" inherits="NLCheckTemplate">
410 <Anchors>
411 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowHealBuffs" relativePoint="BOTTOMLEFT"/>
412 </Anchors>
413 <Scripts>
414 <OnLoad>
415 NLConfigFrame_CheckButtonShowDebuffsText:SetText(NL_SHOWDEBUFFS);
416 </OnLoad>
417 </Scripts>
418 </CheckButton>
419 <CheckButton name="$parent_CheckButtonSwapNeedsAndDetails" inherits="NLCheckTemplate">
420 <Anchors>
421 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowDebuffs" relativePoint="BOTTOMLEFT"/>
422 </Anchors>
423 <Scripts>
424 <OnLoad>
425 NLConfigFrame_CheckButtonSwapNeedsAndDetailsText:SetText(NL_SHOWNEEDONLEFT);
426 </OnLoad>
427 </Scripts>
428 </CheckButton>
429 <CheckButton name="$parent_CheckButtonAutoSort" inherits="NLCheckTemplate">
430 <Anchors>
431 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonSwapNeedsAndDetails" relativePoint="BOTTOMLEFT"/>
432 </Anchors>
433 <Scripts>
434 <OnLoad>
435 NLConfigFrame_CheckButtonAutoSortText:SetText(NL_AUTOSORT);
436 </OnLoad>
437 </Scripts>
438 </CheckButton>
439 <CheckButton name="$parent_CheckButtonShowTooltips" inherits="NLCheckTemplate">
440 <Anchors>
441 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonAutoSort" relativePoint="BOTTOMLEFT"/>
442 </Anchors>
443 <Scripts>
444 <OnLoad>
445 NLConfigFrame_CheckButtonShowTooltipsText:SetText(NL_SHOWTOOLTIP);
446 </OnLoad>
447 </Scripts>
448 </CheckButton>
449 <CheckButton name="$parent_CheckButtonSpellNotify" inherits="NLCheckTemplate">
450 <Anchors>
451 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonShowTooltips" relativePoint="BOTTOMLEFT"/>
452 </Anchors>
453 <Scripts>
454 <OnLoad>
455 NLConfigFrame_CheckButtonSpellNotifyText:SetText(NL_WISPERCASTNOTIFY);
456 </OnLoad>
457 </Scripts>
458 </CheckButton>
459 <CheckButton name="$parent_CheckButtonHideHeader" inherits="NLCheckTemplate">
460 <Anchors>
461 <Anchor point="TOPLEFT" relativeTo="$parent_CheckButtonSpellNotify" relativePoint="BOTTOMLEFT"/>
462 </Anchors>
463 <Scripts>
464 <OnLoad>
465 NLConfigFrame_CheckButtonHideHeaderText:SetText(NL_HIDELISTWHENEMTPY);
466 </OnLoad>
467 </Scripts>
468 </CheckButton>
469 <Button name="$parentDefaults" inherits="GameMenuButtonTemplate">
470 <Anchors>
471 <Anchor point="CENTER" relativePoint="BOTTOM">
472 <Offset>
473 <AbsDimension x="0" y="60" />
474 </Offset>
475 </Anchor>
476 </Anchors>
477 <Scripts>
478 <OnLoad>
479 this:SetText(NL_LOAD_DEFAULTS);
480 </OnLoad>
481 <OnClick>
482 PlaySound("gsTitleOptionOK");
483 NLConfig = NL_GetConfigForCurrentPlayer( true );
484 NL_InitializeConfigFrame();
485 NL_SaveConfig();
486 NLHeader:ClearAllPoints();
487 NLHeader:SetPoint("TOPRIGHT", "UIParent", "TOPRIGHT", -150, -150);
488 NLMembertarget:ClearAllPoints();
489 NLMembertarget:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 150, -150);
490 </OnClick>
491 </Scripts>
492 </Button>
493 <EditBox name="$parent_MaxUnits" letters="50" historyLines="0" autoFocus="false">
494 <Size>
495 <AbsDimension x="50" y="20"/>
496 </Size>
497 <Anchors>
498 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="NLConfigFrame">
499 <Offset>
500 <AbsDimension x="-30" y="100"/>
501 </Offset>
502 </Anchor>
503 </Anchors>
504 <Layers>
505 <Layer level="BACKGROUND">
506 <FontString name="$parentDescription" inherits="GameFontNormalSmall" justifyH="RIGHT">
507 <Anchors>
508 <Anchor point="RIGHT" relativePoint="LEFT">
509 <Offset>
510 <AbsDimension x="-15" y="0" />
511 </Offset>
512 </Anchor>
513 </Anchors>
514 </FontString>
515 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
516 <Size>
517 <AbsDimension x="8" y="20"/>
518 </Size>
519 <Anchors>
520 <Anchor point="TOPLEFT">
521 <Offset>
522 <AbsDimension x="-8" y="0"/>
523 </Offset>
524 </Anchor>
525 </Anchors>
526 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
527 </Texture>
528 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
529 <Size>
530 <AbsDimension x="50" y="20"/>
531 </Size>
532 <Anchors>
533 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
534 </Anchors>
535 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
536 </Texture>
537 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
538 <Size>
539 <AbsDimension x="8" y="20"/>
540 </Size>
541 <Anchors>
542 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
543 </Anchors>
544 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
545 </Texture>
546 </Layer>
547 </Layers>
548 <Scripts>
549 <OnLoad>
550 NLConfigFrame_MaxUnitsDescription:SetText(NL_STR_MAX_UNITS);
551 </OnLoad>
552 <OnEditFocusLost>
553 this:HighlightText(0, 0);
554 </OnEditFocusLost>
555 <OnEditFocusGained>
556 this:HighlightText();
557 </OnEditFocusGained>
558 <OnEscapePressed>
559 if( NLConfig.BlackListDelay ) then
560 this:SetNumber(NLConfig.MaxUnits);
561 end
562 this:ClearFocus();
563 </OnEscapePressed>
564 </Scripts>
565 <FontString inherits="ChatFontNormal"/>
566 </EditBox>
567 <EditBox name="$parent_BlackListDelay" letters="50" historyLines="0" autoFocus="false">
568 <Size>
569 <AbsDimension x="50" y="20"/>
570 </Size>
571 <Anchors>
572 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="NLConfigFrame">
573 <Offset>
574 <AbsDimension x="-30" y="80"/>
575 </Offset>
576 </Anchor>
577 </Anchors>
578 <Layers>
579 <Layer level="BACKGROUND">
580 <FontString name="$parentDescription" inherits="GameFontNormalSmall" justifyH="RIGHT">
581 <Anchors>
582 <Anchor point="RIGHT" relativePoint="LEFT">
583 <Offset>
584 <AbsDimension x="-15" y="0" />
585 </Offset>
586 </Anchor>
587 </Anchors>
588 </FontString>
589 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
590 <Size>
591 <AbsDimension x="8" y="20"/>
592 </Size>
593 <Anchors>
594 <Anchor point="TOPLEFT">
595 <Offset>
596 <AbsDimension x="-8" y="0"/>
597 </Offset>
598 </Anchor>
599 </Anchors>
600 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
601 </Texture>
602 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
603 <Size>
604 <AbsDimension x="50" y="20"/>
605 </Size>
606 <Anchors>
607 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
608 </Anchors>
609 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
610 </Texture>
611 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
612 <Size>
613 <AbsDimension x="8" y="20"/>
614 </Size>
615 <Anchors>
616 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
617 </Anchors>
618 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
619 </Texture>
620 </Layer>
621 </Layers>
622 <Scripts>
623 <OnLoad>
624 NLConfigFrame_BlackListDelayDescription:SetText(NL_STR_BLACKLIST_TIMER);
625 </OnLoad>
626 <OnEditFocusLost>
627 this:HighlightText(0, 0);
628 </OnEditFocusLost>
629 <OnEditFocusGained>
630 this:HighlightText();
631 </OnEditFocusGained>
632 <OnEscapePressed>
633 if( NLConfig.BlackListDelay ) then
634 this:SetNumber(NLConfig.BlackListDelay);
635 end
636 this:ClearFocus();
637 </OnEscapePressed>
638 </Scripts>
639 <FontString inherits="ChatFontNormal"/>
640 </EditBox>
641 <Slider name="$parent_SliderFrameWidth" orientation="HORIZONTAL" minValue="60" maxValue="200" valueStep="5" defaultValue="80">
642 <Size>
643 <AbsDimension x="128" y="16"/>
644 </Size>
645 <Anchors>
646 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeTo="$parentDefaults">
647 <Offset>
648 <AbsDimension x="0" y="80" />
649 </Offset>
650 </Anchor>
651 </Anchors>
652 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
653 <EdgeSize>
654 <AbsValue val="8"/>
655 </EdgeSize>
656 <TileSize>
657 <AbsValue val="8"/>
658 </TileSize>
659 <BackgroundInsets>
660 <AbsInset left="3" right="3" top="6" bottom="6"/>
661 </BackgroundInsets>
662 </Backdrop>
663 <Layers>
664 <Layer level="ARTWORK">
665 <FontString name="$parentText" inherits="GameFontNormalSmall">
666 <Anchors>
667 <Anchor point="BOTTOM" relativePoint="TOP">
668 <Offset>
669 <AbsDimension x="0" y="3"/>
670 </Offset>
671 </Anchor>
672 </Anchors>
673 </FontString>
674 <FontString inherits="GameFontHighlightSmall" text="60">
675 <Anchors>
676 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
677 <Offset>
678 <AbsDimension x="0" y="3"/>
679 </Offset>
680 </Anchor>
681 </Anchors>
682 </FontString>
683 <FontString inherits="GameFontHighlightSmall" text="200">
684 <Anchors>
685 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
686 <Offset>
687 <AbsDimension x="0" y="3"/>
688 </Offset>
689 </Anchor>
690 </Anchors>
691 </FontString>
692 </Layer>
693 </Layers>
694 <Scripts>
695 <OnValueChanged>
696 getglobal( this:GetName() .. "Text" ):SetText(string.format( NL_STR_FRAME_WIDTH.." %d", this:GetValue()));
697 </OnValueChanged>
698 </Scripts>
699 <ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
700 <Size>
701 <AbsDimension x="32" y="32"/>
702 </Size>
703 </ThumbTexture>
704 </Slider>
705 <Button name="$parentConfigureSpells" inherits="GameMenuButtonTemplate">
706 <Anchors>
707 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentDefaults">
708 <Offset>
709 <AbsDimension x="5" y="0" />
710 </Offset>
711 </Anchor>
712 </Anchors>
713 <Scripts>
714 <OnLoad>
715 this:SetText(NL_CONFIG_SPELLS);
716 </OnLoad>
717 <OnClick>
718 PlaySound("gsTitleOptionOK");
719 NLConfigFrame:Hide();
720 NLFilterListFrame:Hide();
721 NLConfigSpellsFrame:Show();
722 </OnClick>
723 </Scripts>
724 </Button>
725 <Button name="$parentConfigureNeeds" inherits="GameMenuButtonTemplate">
726 <Anchors>
727 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentDefaults">
728 <Offset>
729 <AbsDimension x="-5" y="0" />
730 </Offset>
731 </Anchor>
732 </Anchors>
733 <Scripts>
734 <OnLoad>
735 this:SetText(NL_CONFIG_NEEDS);
736 </OnLoad>
737 <OnClick>
738 PlaySound("gsTitleOptionOK");
739 NLConfigFrame:Hide();
740 NLFilterListFrame:Hide();
741 NLConfigNeedsFrame:Show();
742 </OnClick>
743 </Scripts>
744 </Button>
745 <Button name="$parentSave" inherits="GameMenuButtonTemplate">
746 <Size>
747 <AbsDimension x="64" y="21" />
748 </Size>
749 <Anchors>
750 <Anchor point="RIGHT" relativePoint="BOTTOM">
751 <Offset>
752 <AbsDimension x="-5" y="30" />
753 </Offset>
754 </Anchor>
755 </Anchors>
756 <Scripts>
757 <OnLoad>
758 this:SetText(NL_SAVE);
759 </OnLoad>
760 <OnClick>
761 PlaySound("gsTitleOptionOK");
762 if ( ColorPickerFrame:IsVisible() ) then
763 ColorPickerFrame:Hide();
764 end
765 NL_SaveConfig();
766 NLConfigFrame:Hide();
767 </OnClick>
768 </Scripts>
769 </Button>
770 <Button name="$parentCancel" inherits="GameMenuButtonTemplate">
771 <Size>
772 <AbsDimension x="64" y="21" />
773 </Size>
774 <Anchors>
775 <Anchor point="LEFT" relativePoint="BOTTOM">
776 <Offset>
777 <AbsDimension x="5" y="30" />
778 </Offset>
779 </Anchor>
780 </Anchors>
781 <Scripts>
782 <OnLoad>
783 this:SetText(NL_CANCEL);
784 </OnLoad>
785 <OnClick>
786 PlaySound("gsTitleOptionOK");
787 NLConfigFrame:Hide();
788 </OnClick>
789 </Scripts>
790 </Button>
791 </Frames>
792 <Scripts>
793 <OnShow>
794 NLConfigFrameTitleText:SetText(NL_NEEDY_CONFIG);
795 tinsert(UISpecialFrames,"NLConfigFrame");
796 NL_InitializeConfigFrame();
797 </OnShow>
798 </Scripts>
799 </Frame>
800  
801 <Frame name="NLConfigNeedsFrame" movable="true" inherits="NLConfigFrameTemplate" parent="UIParent">
802 <Anchors>
803 <Anchor point="CENTER">
804 <Offset>
805 <AbsDimension x="-150" y="0" />
806 </Offset>
807 </Anchor>
808 </Anchors>
809 <Layers>
810 <Layer level="ARTWORK">
811 <Texture name="$parentTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
812 <Size>
813 <AbsDimension x="250" y="64" />
814 </Size>
815 <Anchors>
816 <Anchor point="TOP">
817 <Offset>
818 <AbsDimension x="0" y="12" />
819 </Offset>
820 </Anchor>
821 </Anchors>
822 </Texture>
823 <FontString name="$parentTitleText" inherits="GameFontNormal">
824 <Anchors>
825 <Anchor point="TOP">
826 <Offset>
827 <AbsDimension x="0" y="-3" />
828 </Offset>
829 </Anchor>
830 </Anchors>
831 </FontString>
832 </Layer>
833 </Layers>
834  
835 <Frames>
836 <Button name="$parentNeedSticky" inherits="NLNeedTemplate">
837 <Scripts>
838 <OnLoad>
839 getglobal("NLConfigNeedsFrameNeedSticky_CheckButtonText"):SetText(NL_STICKYUNITS);
840 </OnLoad>
841 </Scripts>
842 </Button>
843  
844 <Button name="$parentNeedNeverShow" inherits="NLNeedTemplate">
845 <Scripts>
846 <OnLoad>
847 getglobal("NLConfigNeedsFrameNeedNeverShow_CheckButtonText"):SetText(NL_NEVERSHOW);
848 </OnLoad>
849 </Scripts>
850 </Button>
851  
852 <Button name="$parentNeedHealth" inherits="NLNeedTemplate">
853 <Frames>
854 <EditBox name="$parent_EditBox" letters="3" historyLines="0" numeric="true" autoFocus="false">
855 <Size>
856 <AbsDimension x="38" y="20"/>
857 </Size>
858 <Anchors>
859 <Anchor point="LEFT">
860 <Offset>
861 <AbsDimension x="80" y="0"/>
862 </Offset>
863 </Anchor>
864 </Anchors>
865 <Layers>
866 <Layer level="BACKGROUND">
867 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
868 <Size>
869 <AbsDimension x="8" y="20"/>
870 </Size>
871 <Anchors>
872 <Anchor point="TOPLEFT">
873 <Offset>
874 <AbsDimension x="-5" y="0"/>
875 </Offset>
876 </Anchor>
877 </Anchors>
878 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
879 </Texture>
880 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
881 <Size>
882 <AbsDimension x="8" y="20"/>
883 </Size>
884 <Anchors>
885 <Anchor point="RIGHT">
886 <Offset>
887 <AbsDimension x="-10" y="0"/>
888 </Offset>
889 </Anchor>
890 </Anchors>
891 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
892 </Texture>
893 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
894 <Size>
895 <AbsDimension x="10" y="20"/>
896 </Size>
897 <Anchors>
898 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
899 <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
900 </Anchors>
901 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
902 </Texture>
903 </Layer>
904 </Layers>
905 <Scripts>
906 <OnTextChanged>
907 if( NLConfigNeedsFrameNeedHealth_EditBox:GetNumber() > 100 ) then
908 NLConfigNeedsFrameNeedHealth_EditBox:SetNumber(100);
909 end
910 </OnTextChanged>
911 <OnEditFocusLost>
912 this:HighlightText(0, 0);
913 </OnEditFocusLost>
914 <OnEditFocusGained>
915 this:HighlightText();
916 </OnEditFocusGained>
917 </Scripts>
918 <FontString inherits="ChatFontNormal"/>
919 </EditBox>
920 </Frames>
921 <Scripts>
922 <OnLoad>
923 getglobal("NLConfigNeedsFrameNeedHealth_CheckButtonText"):SetText("Health %");
924 </OnLoad>
925 </Scripts>
926 </Button>
927  
928 <Button name="$parentNeedMana" inherits="NLNeedTemplate">
929 <Frames>
930 <EditBox name="$parent_EditBox" letters="3" historyLines="0" numeric="true" autoFocus="false">
931 <Size>
932 <AbsDimension x="38" y="20"/>
933 </Size>
934 <Anchors>
935 <Anchor point="LEFT">
936 <Offset>
937 <AbsDimension x="80" y="0"/>
938 </Offset>
939 </Anchor>
940 </Anchors>
941 <Layers>
942 <Layer level="BACKGROUND">
943 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
944 <Size>
945 <AbsDimension x="8" y="20"/>
946 </Size>
947 <Anchors>
948 <Anchor point="TOPLEFT">
949 <Offset>
950 <AbsDimension x="-5" y="0"/>
951 </Offset>
952 </Anchor>
953 </Anchors>
954 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
955 </Texture>
956 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
957 <Size>
958 <AbsDimension x="8" y="20"/>
959 </Size>
960 <Anchors>
961 <Anchor point="RIGHT">
962 <Offset>
963 <AbsDimension x="-10" y="0"/>
964 </Offset>
965 </Anchor>
966 </Anchors>
967 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
968 </Texture>
969 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
970 <Size>
971 <AbsDimension x="10" y="20"/>
972 </Size>
973 <Anchors>
974 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
975 <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
976 </Anchors>
977 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
978 </Texture>
979 </Layer>
980 </Layers>
981 <Scripts>
982 <OnTextChanged>
983 if( NLConfigNeedsFrameNeedMana_EditBox:GetNumber() > 100 ) then
984 NLConfigNeedsFrameNeedMana_EditBox:SetNumber(100);
985 end
986 </OnTextChanged>
987 <OnEditFocusLost>
988 this:HighlightText(0, 0);
989 </OnEditFocusLost>
990 <OnEditFocusGained>
991 this:HighlightText();
992 </OnEditFocusGained>
993 </Scripts>
994 <FontString inherits="ChatFontNormal"/>
995 </EditBox>
996 </Frames>
997 <Scripts>
998 <OnLoad>
999 getglobal("NLConfigNeedsFrameNeedMana_CheckButtonText"):SetText("Mana %");
1000 </OnLoad>
1001 </Scripts>
1002 </Button>
1003  
1004 <Button name="$parentNeedFortitude" inherits="NLNeedTemplate">
1005 <Scripts>
1006 <OnLoad>
1007 NLConfigNeedsFrameNeedFortitude_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["Fortitude"][1]);
1008 </OnLoad>
1009 </Scripts>
1010 </Button>
1011  
1012 <Button name="$parentNeedMark" inherits="NLNeedTemplate">
1013 <Scripts>
1014 <OnLoad>
1015 NLConfigNeedsFrameNeedMark_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_DRUID_NAME]["Mark"][1]);
1016 </OnLoad>
1017 </Scripts>
1018 </Button>
1019  
1020 <Button name="$parentNeedThorns" inherits="NLNeedTemplate">
1021 <Scripts>
1022 <OnLoad>
1023 NLConfigNeedsFrameNeedThorns_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_DRUID_NAME]["Thorns"][1]);
1024 </OnLoad>
1025 </Scripts>
1026 </Button>
1027  
1028 <Button name="$parentNeedClarity" inherits="NLNeedTemplate">
1029 <Scripts>
1030 <OnLoad>
1031 NLConfigNeedsFrameNeedClarity_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_DRUID_NAME]["Clarity"][1]);
1032 </OnLoad>
1033 </Scripts>
1034 </Button>
1035  
1036 <Button name="$parentNeedIntellect" inherits="NLNeedTemplate">
1037 <Scripts>
1038 <OnLoad>
1039 NLConfigNeedsFrameNeedIntellect_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["Intellect"][1]);
1040 </OnLoad>
1041 </Scripts>
1042 </Button>
1043  
1044 <Button name="$parentNeedFrostArmor" inherits="NLNeedTemplate">
1045 <Scripts>
1046 <OnLoad>
1047 NLConfigNeedsFrameNeedFrostArmor_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["FrostArmor"][1]);
1048 </OnLoad>
1049 </Scripts>
1050 </Button>
1051  
1052 <Button name="$parentNeedIceArmor" inherits="NLNeedTemplate">
1053 <Scripts>
1054 <OnLoad>
1055 NLConfigNeedsFrameNeedIceArmor_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["IceArmor"][1]);
1056 </OnLoad>
1057 </Scripts>
1058 </Button>
1059  
1060 <Button name="$parentNeedAmplifyMagic" inherits="NLNeedTemplate">
1061 <Scripts>
1062 <OnLoad>
1063 NLConfigNeedsFrameNeedAmplifyMagic_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["AmplifyMagic"][1]);
1064 </OnLoad>
1065 </Scripts>
1066 </Button>
1067  
1068 <Button name="$parentNeedDampenMagic" inherits="NLNeedTemplate">
1069 <Scripts>
1070 <OnLoad>
1071 NLConfigNeedsFrameNeedDampenMagic_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["DampenMagic"][1]);
1072 </OnLoad>
1073 </Scripts>
1074 </Button>
1075  
1076 <Button name="$parentNeedManaShield" inherits="NLNeedTemplate">
1077 <Scripts>
1078 <OnLoad>
1079 NLConfigNeedsFrameNeedManaShield_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["ManaShield"][1]);
1080 </OnLoad>
1081 </Scripts>
1082 </Button>
1083  
1084 <Button name="$parentNeedMageArmor" inherits="NLNeedTemplate">
1085 <Scripts>
1086 <OnLoad>
1087 NLConfigNeedsFrameNeedMageArmor_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_MAGE_NAME]["MageArmor"][1]);
1088 </OnLoad>
1089 </Scripts>
1090 </Button>
1091  
1092 <Button name="$parentNeedShadowProt" inherits="NLNeedTemplate">
1093 <Scripts>
1094 <OnLoad>
1095 NLConfigNeedsFrameNeedShadowProt_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["ShadowProt"][1]);
1096 </OnLoad>
1097 </Scripts>
1098 </Button>
1099  
1100 <Button name="$parentNeedDivineSpirit" inherits="NLNeedTemplate">
1101 <Scripts>
1102 <OnLoad>
1103 NLConfigNeedsFrameNeedDivineSpirit_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["DivineSpirit"][1]);
1104 </OnLoad>
1105 </Scripts>
1106 </Button>
1107  
1108 <Button name="$parentNeedFearWard" inherits="NLNeedTemplate">
1109 <Scripts>
1110 <OnLoad>
1111 NLConfigNeedsFrameNeedFearWard_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["FearWard"][1]);
1112 </OnLoad>
1113 </Scripts>
1114 </Button>
1115  
1116 <Button name="$parentNeedShadowguard" inherits="NLNeedTemplate">
1117 <Scripts>
1118 <OnLoad>
1119 NLConfigNeedsFrameNeedShadowguard_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["Shadowguard"][1]);
1120 </OnLoad>
1121 </Scripts>
1122 </Button>
1123  
1124 <Button name="$parentNeedTouchOfWeakness" inherits="NLNeedTemplate">
1125 <Scripts>
1126 <OnLoad>
1127 NLConfigNeedsFrameNeedTouchOfWeakness_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["TouchOfWeakness"][1]);
1128 </OnLoad>
1129 </Scripts>
1130 </Button>
1131  
1132 <Button name="$parentNeedInnerFire" inherits="NLNeedTemplate">
1133 <Scripts>
1134 <OnLoad>
1135 NLConfigNeedsFrameNeedInnerFire_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["InnerFire"][1]);
1136 </OnLoad>
1137 </Scripts>
1138 </Button>
1139  
1140 <Button name="$parentNeedPWShield" inherits="NLNeedTemplate">
1141 <Scripts>
1142 <OnLoad>
1143 NLConfigNeedsFrameNeedPWShield_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["PWShield"][1]);
1144 </OnLoad>
1145 </Scripts>
1146 </Button>
1147  
1148 <Button name="$parentNeedFeedback" inherits="NLNeedTemplate">
1149 <Scripts>
1150 <OnLoad>
1151 NLConfigNeedsFrameNeedFeedback_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PRIEST_NAME]["Feedback"][1]);
1152 </OnLoad>
1153 </Scripts>
1154 </Button>
1155  
1156 <Button name="$parentNeedBlessMight" inherits="NLNeedTemplate">
1157 <Scripts>
1158 <OnLoad>
1159 NLConfigNeedsFrameNeedBlessMight_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessMight"][1]);
1160 </OnLoad>
1161 </Scripts>
1162 </Button>
1163  
1164 <Button name="$parentNeedBlessWisdom" inherits="NLNeedTemplate">
1165 <Scripts>
1166 <OnLoad>
1167 NLConfigNeedsFrameNeedBlessWisdom_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessWisdom"][1]);
1168 </OnLoad>
1169 </Scripts>
1170 </Button>
1171  
1172 <Button name="$parentNeedBlessKings" inherits="NLNeedTemplate">
1173 <Scripts>
1174 <OnLoad>
1175 NLConfigNeedsFrameNeedBlessKings_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessKings"][1]);
1176 </OnLoad>
1177 </Scripts>
1178 </Button>
1179  
1180 <Button name="$parentNeedBlessSalvation" inherits="NLNeedTemplate">
1181 <Scripts>
1182 <OnLoad>
1183 NLConfigNeedsFrameNeedBlessSalvation_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessSalvation"][1]);
1184 </OnLoad>
1185 </Scripts>
1186 </Button>
1187  
1188 <Button name="$parentNeedBlessLight" inherits="NLNeedTemplate">
1189 <Scripts>
1190 <OnLoad>
1191 NLConfigNeedsFrameNeedBlessLight_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessLight"][1]);
1192 </OnLoad>
1193 </Scripts>
1194 </Button>
1195  
1196 <Button name="$parentNeedBlessSanctuary" inherits="NLNeedTemplate">
1197 <Scripts>
1198 <OnLoad>
1199 NLConfigNeedsFrameNeedBlessSanctuary_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_PALADIN_NAME]["BlessSanctuary"][1]);
1200 </OnLoad>
1201 </Scripts>
1202 </Button>
1203  
1204 <Button name="$parentNeedSoulstone" inherits="NLNeedTemplate">
1205 <Scripts>
1206 <OnLoad>
1207 NLConfigNeedsFrameNeedSoulstone_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["Soulstone"][1]);
1208 </OnLoad>
1209 </Scripts>
1210 </Button>
1211  
1212 <Button name="$parentNeedFireShield" inherits="NLNeedTemplate">
1213 <Scripts>
1214 <OnLoad>
1215 NLConfigNeedsFrameNeedFireShield_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["FireShield"][1]);
1216 </OnLoad>
1217 </Scripts>
1218 </Button>
1219  
1220 <Button name="$parentNeedDemonSkin" inherits="NLNeedTemplate">
1221 <Scripts>
1222 <OnLoad>
1223 NLConfigNeedsFrameNeedDemonSkin_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["DemonSkin"][1]);
1224 </OnLoad>
1225 </Scripts>
1226 </Button>
1227  
1228 <Button name="$parentNeedDemonArmor" inherits="NLNeedTemplate">
1229 <Scripts>
1230 <OnLoad>
1231 NLConfigNeedsFrameNeedDemonArmor_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["DemonArmor"][1]);
1232 </OnLoad>
1233 </Scripts>
1234 </Button>
1235  
1236 <Button name="$parentNeedUnendingBreath" inherits="NLNeedTemplate">
1237 <Scripts>
1238 <OnLoad>
1239 NLConfigNeedsFrameNeedUnendingBreath_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["UnendingBreath"][1]);
1240 </OnLoad>
1241 </Scripts>
1242 </Button>
1243  
1244 <Button name="$parentNeedDetectLesserInvis" inherits="NLNeedTemplate">
1245 <Scripts>
1246 <OnLoad>
1247 NLConfigNeedsFrameNeedDetectLesserInvis_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["DetectLesserInvis"][1]);
1248 </OnLoad>
1249 </Scripts>
1250 </Button>
1251  
1252 <Button name="$parentNeedDetectInvis" inherits="NLNeedTemplate">
1253 <Scripts>
1254 <OnLoad>
1255 NLConfigNeedsFrameNeedDetectInvis_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["DetectInvis"][1]);
1256 </OnLoad>
1257 </Scripts>
1258 </Button>
1259  
1260 <Button name="$parentNeedDetectGreaterInvis" inherits="NLNeedTemplate">
1261 <Scripts>
1262 <OnLoad>
1263 NLConfigNeedsFrameNeedDetectGreaterInvis_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARLOCK_NAME]["DetectGreaterInvis"][1]);
1264 </OnLoad>
1265 </Scripts>
1266 </Button>
1267  
1268 <Button name="$parentNeedDetectTraps" inherits="NLNeedTemplate">
1269 <Scripts>
1270 <OnLoad>
1271 NLConfigNeedsFrameNeedDetectTraps_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_ROGUE_NAME]["DetectTraps"][1]);
1272 </OnLoad>
1273 </Scripts>
1274 </Button>
1275  
1276 <Button name="$parentNeedLightningShield" inherits="NLNeedTemplate">
1277 <Scripts>
1278 <OnLoad>
1279 NLConfigNeedsFrameNeedLightningShield_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_SHAMAN_NAME]["LightningShield"][1]);
1280 </OnLoad>
1281 </Scripts>
1282 </Button>
1283  
1284 <Button name="$parentNeedRockbiter" inherits="NLNeedTemplate">
1285 <Scripts>
1286 <OnLoad>
1287 NLConfigNeedsFrameNeedRockbiter_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_SHAMAN_NAME]["Rockbiter"][1]);
1288 </OnLoad>
1289 </Scripts>
1290 </Button>
1291  
1292 <Button name="$parentNeedFlametongue" inherits="NLNeedTemplate">
1293 <Scripts>
1294 <OnLoad>
1295 NLConfigNeedsFrameNeedFlametongue_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_SHAMAN_NAME]["Flametongue"][1]);
1296 </OnLoad>
1297 </Scripts>
1298 </Button>
1299  
1300 <Button name="$parentNeedFrostbrand" inherits="NLNeedTemplate">
1301 <Scripts>
1302 <OnLoad>
1303 NLConfigNeedsFrameNeedFrostbrand_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_SHAMAN_NAME]["Frostbrand"][1]);
1304 </OnLoad>
1305 </Scripts>
1306 </Button>
1307  
1308 <Button name="$parentNeedWindfury" inherits="NLNeedTemplate">
1309 <Scripts>
1310 <OnLoad>
1311 NLConfigNeedsFrameNeedWindfury_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_SHAMAN_NAME]["Windfury"][1]);
1312 </OnLoad>
1313 </Scripts>
1314 </Button>
1315  
1316 <Button name="$parentNeedBattleShout" inherits="NLNeedTemplate">
1317 <Scripts>
1318 <OnLoad>
1319 NLConfigNeedsFrameNeedBattleShout_CheckButtonText:SetText(NL_BUFF_SPELLS[NL_WARRIOR_NAME]["BattleShout"][1]);
1320 </OnLoad>
1321 </Scripts>
1322 </Button>
1323  
1324 <Button name="$parentNeedMainhandPoison" inherits="NLNeedTemplate">
1325 <Scripts>
1326 <OnLoad>
1327 NLConfigNeedsFrameNeedMainhandPoison_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_ROGUE_NAME]["MainhandPoison"][1]);
1328 </OnLoad>
1329 </Scripts>
1330 </Button>
1331  
1332 <Button name="$parentNeedOffhandPoison" inherits="NLNeedTemplate">
1333 <Scripts>
1334 <OnLoad>
1335 NLConfigNeedsFrameNeedOffhandPoison_CheckButtonText:SetText(NL_ENCHANT_SPELLS[NL_ROGUE_NAME]["OffhandPoison"][1]);
1336 </OnLoad>
1337 </Scripts>
1338 </Button>
1339  
1340 <Button name="$parentNeedMagic" inherits="NLNeedTemplate">
1341 <Scripts>
1342 <OnLoad>
1343 NLConfigNeedsFrameNeedMagic_CheckButtonText:SetText(NL_MAGIC_DEBUFF);
1344 </OnLoad>
1345 </Scripts>
1346 </Button>
1347  
1348 <Button name="$parentNeedDisease" inherits="NLNeedTemplate">
1349 <Scripts>
1350 <OnLoad>
1351 NLConfigNeedsFrameNeedDisease_CheckButtonText:SetText(NL_DISEASE);
1352 </OnLoad>
1353 </Scripts>
1354 </Button>
1355  
1356 <Button name="$parentNeedPoison" inherits="NLNeedTemplate">
1357 <Scripts>
1358 <OnLoad>
1359 NLConfigNeedsFrameNeedPoison_CheckButtonText:SetText(NL_POISON);
1360 </OnLoad>
1361 </Scripts>
1362 </Button>
1363  
1364 <Button name="$parentNeedCurse" inherits="NLNeedTemplate">
1365 <Scripts>
1366 <OnLoad>
1367 NLConfigNeedsFrameNeedCurse_CheckButtonText:SetText(NL_CURSE);
1368 </OnLoad>
1369 </Scripts>
1370 </Button>
1371  
1372 <Button name="$parentNeedResurrection" inherits="NLNeedTemplate">
1373 <Scripts>
1374 <OnLoad>
1375 NLConfigNeedsFrameNeedResurrection_CheckButtonText:SetText(NL_RESURRECT);
1376 </OnLoad>
1377 </Scripts>
1378 </Button>
1379  
1380 <Button name="$parentNeedWellFed" inherits="NLNeedTemplate">
1381 <Scripts>
1382 <OnLoad>
1383 NLConfigNeedsFrameNeedWellFed_CheckButtonText:SetText(NL_WELLFED);
1384 </OnLoad>
1385 </Scripts>
1386 </Button>
1387  
1388 <Button name="$parentSave" inherits="GameMenuButtonTemplate">
1389 <Size>
1390 <AbsDimension x="60" y="21" />
1391 </Size>
1392 <Anchors>
1393 <Anchor point="RIGHT" relativePoint="BOTTOM">
1394 <Offset>
1395 <AbsDimension x="-5" y="30" />
1396 </Offset>
1397 </Anchor>
1398 </Anchors>
1399 <Scripts>
1400 <OnLoad>
1401 this:SetText(NL_SAVE);
1402 </OnLoad>
1403 <OnClick>
1404 PlaySound("gsTitleOptionOK");
1405 if ( ColorPickerFrame:IsVisible() ) then
1406 ColorPickerFrame:Hide();
1407 end
1408 NL_SaveNeedsConfig();
1409 NLFilterListFrame:Hide();
1410 NLConfigNeedsFrame:Hide();
1411 NLConfigFrame:Show();
1412 </OnClick>
1413 </Scripts>
1414 </Button>
1415  
1416 <Button name="$parentCancel" inherits="GameMenuButtonTemplate">
1417 <Size>
1418 <AbsDimension x="60" y="21" />
1419 </Size>
1420 <Anchors>
1421 <Anchor point="LEFT" relativePoint="BOTTOM">
1422 <Offset>
1423 <AbsDimension x="5" y="30" />
1424 </Offset>
1425 </Anchor>
1426 </Anchors>
1427 <Scripts>
1428 <OnLoad>
1429 this:SetText(NL_CANCEL);
1430 </OnLoad>
1431 <OnClick>
1432 PlaySound("gsTitleOptionOK");
1433 NLFilterListFrame:Hide();
1434 NLConfigNeedsFrame:Hide();
1435 NLConfigFrame:Show();
1436 </OnClick>
1437 </Scripts>
1438 </Button>
1439 </Frames>
1440 <Scripts>
1441 <OnLoad>
1442 NLConfigNeedsFrameTitleText:SetText(NL_CONFIG_NEEDS);
1443 </OnLoad>
1444 <OnShow>
1445 NL_InitializeConfigNeedsFrame();
1446 tinsert(UISpecialFrames,"NLConfigNeedsFrame");
1447 </OnShow>
1448 </Scripts>
1449 </Frame>
1450  
1451 <Button name="NLFilterTargetTemplate" virtual="true" hidden="true" inherits="NLButtonTemplate">
1452 <Size>
1453 <AbsDimension x="85" y="28"/>
1454 </Size>
1455 <Layers>
1456 <Layer level="ARTWORK">
1457 <FontString name="$parentText" inherits="GameFontNormal" text="">
1458 <Anchors>
1459 <Anchor point="LEFT" relativePoint="LEFT">
1460 <Offset>
1461 <AbsDimension x="10" y="0" />
1462 </Offset>
1463 </Anchor>
1464 </Anchors>
1465 </FontString>
1466 </Layer>
1467 </Layers>
1468 <Scripts>
1469 <OnShow>
1470 if( this.Flagged ) then
1471 this:SetBackdropColor(0.5, 0.5, 1, 1);
1472 else
1473 this:SetBackdropColor(0, 0, 0.5, 1);
1474 end
1475 </OnShow>
1476 <OnClick>
1477 if( getglobal(NLFilterListFrame.NeedFrame).Filter.Names == nil ) then
1478 getglobal(NLFilterListFrame.NeedFrame).Filter.Names = {};
1479 end
1480  
1481 if( this.Flagged ) then
1482 getglobal(NLFilterListFrame.NeedFrame).Filter.Names[ getglobal( this:GetName() .. "Text" ):GetText() ] = nil;
1483 this.Flagged = false;
1484 else
1485 getglobal(NLFilterListFrame.NeedFrame).Filter.Names[ getglobal( this:GetName() .. "Text" ):GetText() ] = true;
1486 this.Flagged = true;
1487 end
1488 </OnClick>
1489 <OnEnter>
1490 this:SetBackdropColor(0, 0.5, 0, 1);
1491 </OnEnter>
1492 <OnLeave>
1493 if( this.Flagged ) then
1494 this:SetBackdropColor(0.5, 0.5, 1, 1);
1495 else
1496 this:SetBackdropColor(0, 0, 0.5, 1);
1497 end
1498 </OnLeave>
1499 </Scripts>
1500 </Button>
1501  
1502 <Button name="NLFilterTemplate" virtual="true" inherits="NLButtonTemplate">
1503 <Size>
1504 <AbsDimension x="75" y="28"/>
1505 </Size>
1506 <Layers>
1507 <Layer level="ARTWORK">
1508 <FontString name="$parentText" inherits="GameFontNormal" text="">
1509 <Anchors>
1510 <Anchor point="LEFT" relativePoint="LEFT">
1511 <Offset>
1512 <AbsDimension x="10" y="0" />
1513 </Offset>
1514 </Anchor>
1515 </Anchors>
1516 </FontString>
1517 </Layer>
1518 </Layers>
1519 <Frames>
1520 </Frames>
1521 <Scripts>
1522 <OnShow>
1523 getglobal(this:GetName() .. "Text"):SetText(NL_FILTER_TYPE_NAMES[this.Type]);
1524 if( getglobal(NLFilterListFrame.NeedFrame) ~= nil ) then
1525 if( getglobal(NLFilterListFrame.NeedFrame).Filter.Type == this.Type ) then
1526 -- this is where we show the appropriate subframe based on which filter to show
1527 this:SetBackdropColor(0.5, 0.5, 1, 1);
1528 if( getglobal(this:GetName() .. "Subframe") ~= nil ) then
1529 getglobal(this:GetName() .. "Subframe"):Show();
1530 end
1531 else
1532 -- hide the subframe
1533 this:SetBackdropColor(0, 0, 0.5, 1);
1534 if( getglobal(this:GetName() .. "Subframe") ~= nil ) then
1535 getglobal(this:GetName() .. "Subframe"):Hide();
1536 end
1537 end
1538 else
1539 this:SetBackdropColor(0, 0, 0.5, 1);
1540 end
1541 </OnShow>
1542 <OnClick>
1543 if( getglobal(NLFilterListFrame.NeedFrame) ~= nil ) then
1544 if( getglobal(NLFilterListFrame.NeedFrame).Filter.Type ~= this.Type ) then
1545 -- hide the subframe of the previously selected filter and clear the filter
1546 if( getglobal("NLFilterListFrame" .. getglobal(NLFilterListFrame.NeedFrame).Filter.Type .. "Subframe") ~= nil ) then
1547 getglobal("NLFilterListFrame" .. getglobal(NLFilterListFrame.NeedFrame).Filter.Type .. "Subframe"):Hide();
1548 end
1549  
1550 getglobal("NLFilterListFrame" .. getglobal(NLFilterListFrame.NeedFrame).Filter.Type):SetBackdropColor(0, 0, 0.5, 1);
1551 getglobal(NLFilterListFrame.NeedFrame).Filter = {};
1552 getglobal(NLFilterListFrame.NeedFrame).Filter.Type = this.Type;
1553 getglobal(NLFilterListFrame.NeedFrame).Filter.Names = nil;
1554 if( getglobal("NLFilterListFrame" .. this.Type .. "Subframe") ~= nil ) then
1555 getglobal("NLFilterListFrame" .. this.Type .. "Subframe"):Show();
1556 end
1557 end
1558 end
1559 </OnClick>
1560 <OnEnter>
1561 this:SetBackdropColor(0, 0.5, 0, 1);
1562 </OnEnter>
1563 <OnLeave>
1564 if( getglobal(NLFilterListFrame.NeedFrame) ~= nil ) then
1565 if( getglobal(NLFilterListFrame.NeedFrame).Filter.Type == this.Type ) then
1566 this:SetBackdropColor(0.5, 0.5, 1, 1);
1567 else
1568 this:SetBackdropColor(0, 0, 0.5, 1);
1569 end
1570 else
1571 this:SetBackdropColor(0, 0, 0.5, 1);
1572 end
1573 </OnLeave>
1574 </Scripts>
1575 </Button>
1576  
1577 <Frame name="NLFilterListFrame" toplevel="true" frameStrata="LOW" movable="false" enableMouse="true" hidden="true" parent="NLConfigNeedsFrame">
1578 <Size>
1579 <AbsDimension x="150" y="200" />
1580 </Size>
1581 <Frames>
1582 <Button name="$parentSpacer" inherits="NLButtonTemplate">
1583 <Anchors>
1584 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
1585 <Offset>
1586 <AbsDimension x="0" y="4" />
1587 </Offset>
1588 </Anchor>
1589 </Anchors>
1590 </Button>
1591 <Button name="$parentEveryone" inherits="NLFilterTemplate">
1592 <Anchors>
1593 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentSpacer">
1594 <Offset>
1595 <AbsDimension x="-4" y="0" />
1596 </Offset>
1597 </Anchor>
1598 </Anchors>
1599 <Scripts>
1600 <OnLoad>
1601 this.Type = "Everyone";
1602 </OnLoad>
1603 </Scripts>
1604 </Button>
1605 <Button name="$parentUnits" inherits="NLFilterTemplate" hidden="false">
1606 <Anchors>
1607 <Anchor point="TOPLEFT" relativeTo="$parentEveryone" relativePoint="BOTTOMLEFT">
1608 <Offset>
1609 <AbsDimension x="0" y="5" />
1610 </Offset>
1611 </Anchor>
1612 </Anchors>
1613 <Frames>
1614 <Frame name="$parentSubframe" inherits="NLConfigFrameTemplate">
1615 <Size>
1616 <AbsDimension x="300" y="72" />
1617 </Size>
1618 <Anchors>
1619 <Anchor point="LEFT" relativePoint="RIGHT"/>
1620 </Anchors>
1621 <Frames>
1622 <EditBox name="$parentNames" letters="50" historyLines="0" autoFocus="false">
1623 <Size>
1624 <AbsDimension x="250" y="20"/>
1625 </Size>
1626 <Anchors>
1627 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
1628 <Offset>
1629 <AbsDimension x="25" y="-35" />
1630 </Offset>
1631 </Anchor>
1632 </Anchors>
1633 <Layers>
1634 <Layer level="BACKGROUND">
1635 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="RIGHT">
1636 <Anchors>
1637 <Anchor point="BOTTOM" relativePoint="TOP">
1638 <Offset>
1639 <AbsDimension x="0" y="5" />
1640 </Offset>
1641 </Anchor>
1642 </Anchors>
1643 </FontString>
1644 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
1645 <Size>
1646 <AbsDimension x="8" y="20"/>
1647 </Size>
1648 <Anchors>
1649 <Anchor point="TOPLEFT">
1650 <Offset>
1651 <AbsDimension x="-8" y="0"/>
1652 </Offset>
1653 </Anchor>
1654 </Anchors>
1655 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
1656 </Texture>
1657 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
1658 <Size>
1659 <AbsDimension x="250" y="20"/>
1660 </Size>
1661 <Anchors>
1662 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
1663 </Anchors>
1664 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
1665 </Texture>
1666 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
1667 <Size>
1668 <AbsDimension x="8" y="20"/>
1669 </Size>
1670 <Anchors>
1671 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
1672 </Anchors>
1673 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
1674 </Texture>
1675 </Layer>
1676 </Layers>
1677 <Scripts>
1678 <OnLoad>
1679 getglobal(this:GetName() .. "Description"):SetText(NL_FILTER_NAMES_DESC);
1680 </OnLoad>
1681 <OnEditFocusLost>
1682 getglobal(NLFilterListFrame.NeedFrame).Filter.Names = string.gsub( this:GetText(), " ", "" );
1683 this:HighlightText(0, 0);
1684 </OnEditFocusLost>
1685 <OnEditFocusGained>
1686 this:HighlightText();
1687 </OnEditFocusGained>
1688 <OnEnterPressed>
1689 getglobal(NLFilterListFrame.NeedFrame).Filter.Names = string.gsub( this:GetText(), " ", "" );
1690 </OnEnterPressed>
1691 <OnEscapePressed>
1692 if( getglobal(NLFilterListFrame.NeedFrame).Filter.Names ) then
1693 this:SetText(getglobal(NLFilterListFrame.NeedFrame).Filter.Names);
1694 end
1695 this:ClearFocus();
1696 </OnEscapePressed>
1697 </Scripts>
1698 <FontString inherits="ChatFontNormal"/>
1699 </EditBox>
1700 </Frames>
1701 <Scripts>
1702 <OnShow>
1703 if( getglobal(NLFilterListFrame.NeedFrame) ~= nil ) then
1704 NL_PopulateUnitFilterFrame(getglobal(NLFilterListFrame.NeedFrame).Filter);
1705 end
1706 </OnShow>
1707 </Scripts>
1708 </Frame>
1709 </Frames>
1710 <Scripts>
1711 <OnLoad>
1712 this.Type = "Units";
1713 </OnLoad>
1714 </Scripts>
1715 </Button>
1716 <Button name="$parentMulti" inherits="NLFilterTemplate" hidden="false">
1717 <Anchors>
1718 <Anchor point="TOPLEFT" relativeTo="$parentUnits" relativePoint="BOTTOMLEFT">
1719 <Offset>
1720 <AbsDimension x="0" y="5" />
1721 </Offset>
1722 </Anchor>
1723 </Anchors>
1724 <Frames>
1725 <Frame name="$parentSubframe" inherits="NLConfigFrameTemplate">
1726 <Size>
1727 <AbsDimension x="384" y="190" />
1728 </Size>
1729 <Anchors>
1730 <Anchor point="LEFT" relativePoint="RIGHT"/>
1731 </Anchors>
1732 <Frames>
1733 <Button name="$parentSelectAllParty" inherits="GameMenuButtonTemplate">
1734 <Size>
1735 <AbsDimension x="90" y="21" />
1736 </Size>
1737 <Anchors>
1738 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
1739 <Offset>
1740 <AbsDimension x="12" y="-13" />
1741 </Offset>
1742 </Anchor>
1743 </Anchors>
1744 <Scripts>
1745 <OnLoad>
1746 this:SetText(NL_FILTER_PARTIES_ALL);
1747 </OnLoad>
1748 <OnClick>
1749 NL_SelectAllPartyFilterFrame();
1750 </OnClick>
1751 </Scripts>
1752 </Button>
1753 <Button name="$parentSelectNoneParty" inherits="GameMenuButtonTemplate">
1754 <Size>
1755 <AbsDimension x="90" y="21" />
1756 </Size>
1757 <Anchors>
1758 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentSelectAllParty"/>
1759 </Anchors>
1760 <Scripts>
1761 <OnLoad>
1762 this:SetText(NL_FILTER_PARTIES_NONE);
1763 </OnLoad>
1764 <OnClick>
1765 NL_SelectNonePartyFilterFrame();
1766 </OnClick>
1767 </Scripts>
1768 </Button>
1769 <Button name="$parentParty1" inherits="NLFilterTargetTemplate" hidden="false">
1770 <Anchors>
1771 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="$parentSelectAllParty"/>
1772 </Anchors>
1773 <Scripts>
1774 <OnLoad>
1775 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY1);
1776 </OnLoad>
1777 </Scripts>
1778 </Button>
1779 <Button name="$parentParty3" inherits="NLFilterTargetTemplate" hidden="false">
1780 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty1"/></Anchors>
1781 <Scripts>
1782 <OnLoad>
1783 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY3);
1784 </OnLoad>
1785 </Scripts>
1786 </Button>
1787 <Button name="$parentParty5" inherits="NLFilterTargetTemplate" hidden="false">
1788 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty3"/></Anchors>
1789 <Scripts>
1790 <OnLoad>
1791 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY5);
1792 </OnLoad>
1793 </Scripts>
1794 </Button>
1795 <Button name="$parentParty7" inherits="NLFilterTargetTemplate" hidden="false">
1796 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty5"/></Anchors>
1797 <Scripts>
1798 <OnLoad>
1799 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY7);
1800 </OnLoad>
1801 </Scripts>
1802 </Button>
1803 <Button name="$parentParty2" inherits="NLFilterTargetTemplate" hidden="false">
1804 <Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentParty1"/></Anchors>
1805 <Scripts>
1806 <OnLoad>
1807 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY2);
1808 </OnLoad>
1809 </Scripts>
1810 </Button>
1811 <Button name="$parentParty4" inherits="NLFilterTargetTemplate" hidden="false">
1812 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty2"/></Anchors>
1813 <Scripts>
1814 <OnLoad>
1815 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY4);
1816 </OnLoad>
1817 </Scripts>
1818 </Button>
1819 <Button name="$parentParty6" inherits="NLFilterTargetTemplate" hidden="false">
1820 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty4"/></Anchors>
1821 <Scripts>
1822 <OnLoad>
1823 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY6);
1824 </OnLoad>
1825 </Scripts>
1826 </Button>
1827 <Button name="$parentParty8" inherits="NLFilterTargetTemplate" hidden="false">
1828 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty6"/></Anchors>
1829 <Scripts>
1830 <OnLoad>
1831 getglobal(this:GetName() .. "Text"):SetText(NL_PARTY8);
1832 </OnLoad>
1833 </Scripts>
1834 </Button>
1835 <Button name="$parentParty9" inherits="NLFilterTargetTemplate" hidden="false">
1836 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentParty7"/></Anchors>
1837 <Scripts>
1838 <OnLoad>
1839 getglobal(this:GetName() .. "Text"):SetText(NL_MYPARTY);
1840 </OnLoad>
1841 </Scripts>
1842 </Button>
1843 <Button name="$parentSelectNoneClass" inherits="GameMenuButtonTemplate">
1844 <Size>
1845 <AbsDimension x="90" y="21" />
1846 </Size>
1847 <Anchors>
1848 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
1849 <Offset>
1850 <AbsDimension x="-12" y="-13" />
1851 </Offset>
1852 </Anchor>
1853 </Anchors>
1854 <Scripts>
1855 <OnLoad>
1856 this:SetText(NL_FILTER_CLASSES_NONE);
1857 </OnLoad>
1858 <OnClick>
1859 NL_SelectNoneClassFilterFrame();
1860 </OnClick>
1861 </Scripts>
1862 </Button>
1863 <Button name="$parentSelectAllClass" inherits="GameMenuButtonTemplate">
1864 <Size>
1865 <AbsDimension x="90" y="21" />
1866 </Size>
1867 <Anchors>
1868 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentSelectNoneClass"/>
1869 </Anchors>
1870 <Scripts>
1871 <OnLoad>
1872 this:SetText(NL_FILTER_CLASSES_ALL);
1873 </OnLoad>
1874 <OnClick>
1875 NL_SelectAllClassFilterFrame();
1876 </OnClick>
1877 </Scripts>
1878 </Button>
1879 <Button name="$parentClass1" inherits="NLFilterTargetTemplate" hidden="false">
1880 <Anchors>
1881 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="$parentSelectAllClass"/>
1882 </Anchors>
1883 <Scripts>
1884 <OnShow>
1885 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[1][UnitFactionGroup("player")]);
1886 </OnShow>
1887 </Scripts>
1888 </Button>
1889 <Button name="$parentClass2" inherits="NLFilterTargetTemplate" hidden="false">
1890 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass1"/></Anchors>
1891 <Scripts>
1892 <OnShow>
1893 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[2][UnitFactionGroup("player")]);
1894 </OnShow>
1895 </Scripts>
1896 </Button>
1897 <Button name="$parentClass3" inherits="NLFilterTargetTemplate" hidden="false">
1898 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass2"/></Anchors>
1899 <Scripts>
1900 <OnShow>
1901 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[3][UnitFactionGroup("player")]);
1902 </OnShow>
1903 </Scripts>
1904 </Button>
1905 <Button name="$parentClass4" inherits="NLFilterTargetTemplate" hidden="false">
1906 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass3"/></Anchors>
1907 <Scripts>
1908 <OnShow>
1909 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[4][UnitFactionGroup("player")]);
1910 </OnShow>
1911 </Scripts>
1912 </Button>
1913 <Button name="$parentClass5" inherits="NLFilterTargetTemplate" hidden="false">
1914 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass4"/></Anchors>
1915 <Scripts>
1916 <OnShow>
1917 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[5][UnitFactionGroup("player")]);
1918 </OnShow>
1919 </Scripts>
1920 </Button>
1921 <Button name="$parentClass6" inherits="NLFilterTargetTemplate" hidden="false">
1922 <Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentClass1"/></Anchors>
1923 <Scripts>
1924 <OnShow>
1925 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[6][UnitFactionGroup("player")]);
1926 </OnShow>
1927 </Scripts>
1928 </Button>
1929 <Button name="$parentClass7" inherits="NLFilterTargetTemplate" hidden="false">
1930 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass6"/></Anchors>
1931 <Scripts>
1932 <OnShow>
1933 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[7][UnitFactionGroup("player")]);
1934 </OnShow>
1935 </Scripts>
1936 </Button>
1937 <Button name="$parentClass8" inherits="NLFilterTargetTemplate" hidden="true">
1938 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass7"/></Anchors>
1939 <Scripts>
1940 <OnShow>
1941 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[8][UnitFactionGroup("player")]);
1942 </OnShow>
1943 </Scripts>
1944 </Button>
1945 <Button name="$parentClass9" inherits="NLFilterTargetTemplate" hidden="false">
1946 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass8"/></Anchors>
1947 <Scripts>
1948 <OnShow>
1949 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[9][UnitFactionGroup("player")]);
1950 </OnShow>
1951 </Scripts>
1952 </Button>
1953 <Button name="$parentClass10" inherits="NLFilterTargetTemplate" hidden="false">
1954 <Anchors><Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentClass9"/></Anchors>
1955 <Scripts>
1956 <OnShow>
1957 getglobal(this:GetName() .. "Text"):SetText(NLClassLists[10][UnitFactionGroup("player")]);
1958 </OnShow>
1959 </Scripts>
1960 </Button>
1961 </Frames>
1962 <Scripts>
1963 <OnShow>
1964 if( getglobal(NLFilterListFrame.NeedFrame) ~= nil ) then
1965 NL_PopulatePartyFilterFrame(getglobal(NLFilterListFrame.NeedFrame).Filter);
1966 NL_PopulateClassFilterFrame(getglobal(NLFilterListFrame.NeedFrame).Filter);
1967 end
1968 </OnShow>
1969 </Scripts>
1970 </Frame>
1971 </Frames>
1972 <Scripts>
1973 <OnLoad>
1974 this.Type = "Multi";
1975 </OnLoad>
1976 </Scripts>
1977 </Button>
1978 </Frames>
1979 </Frame>
1980  
1981 <EditBox name="NLSpellEditTemplate" letters="30" historyLines="0" numeric="false" autoFocus="false" virtual="true">
1982 <Size>
1983 <AbsDimension x="200" y="20"/>
1984 </Size>
1985 <Layers>
1986 <Layer level="BACKGROUND">
1987 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
1988 <Size>
1989 <AbsDimension x="8" y="20"/>
1990 </Size>
1991 <Anchors>
1992 <Anchor point="TOPLEFT">
1993 <Offset>
1994 <AbsDimension x="-5" y="0"/>
1995 </Offset>
1996 </Anchor>
1997 </Anchors>
1998 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
1999 </Texture>
2000 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
2001 <Size>
2002 <AbsDimension x="8" y="20"/>
2003 </Size>
2004 <Anchors>
2005 <Anchor point="RIGHT">
2006 <Offset>
2007 <AbsDimension x="-10" y="0"/>
2008 </Offset>
2009 </Anchor>
2010 </Anchors>
2011 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
2012 </Texture>
2013 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
2014 <Size>
2015 <AbsDimension x="10" y="20"/>
2016 </Size>
2017 <Anchors>
2018 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
2019 <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
2020 </Anchors>
2021 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
2022 </Texture>
2023 </Layer>
2024 </Layers>
2025 <Scripts>
2026 <OnEditFocusLost>
2027 this:HighlightText(0, 0);
2028 </OnEditFocusLost>
2029 <OnEditFocusGained>
2030 this:HighlightText();
2031 </OnEditFocusGained>
2032 </Scripts>
2033 <FontString inherits="ChatFontNormal"/>
2034 </EditBox>
2035  
2036 <Frame name="NLConfigSpellsFrame" movable="true" inherits="NLConfigFrameTemplate" parent="UIParent">
2037 <Size>
2038 <AbsDimension x="365" y="220" />
2039 </Size>
2040 <Anchors>
2041 <Anchor point="CENTER"/>
2042 </Anchors>
2043 <Layers>
2044 <Layer level="ARTWORK">
2045 <Texture name="$parentTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
2046 <Size>
2047 <AbsDimension x="250" y="64" />
2048 </Size>
2049 <Anchors>
2050 <Anchor point="TOP">
2051 <Offset>
2052 <AbsDimension x="0" y="12" />
2053 </Offset>
2054 </Anchor>
2055 </Anchors>
2056 </Texture>
2057 <FontString name="$parentTitleText" inherits="GameFontNormal">
2058 <Anchors>
2059 <Anchor point="TOP">
2060 <Offset>
2061 <AbsDimension x="0" y="-3" />
2062 </Offset>
2063 </Anchor>
2064 </Anchors>
2065 </FontString>
2066 <FontString name="$parentDescription" inherits="GameFontNormal">
2067 <Anchors>
2068 <Anchor point="TOP">
2069 <Offset>
2070 <AbsDimension x="0" y="-30" />
2071 </Offset>
2072 </Anchor>
2073 </Anchors>
2074 </FontString>
2075 </Layer>
2076 </Layers>
2077  
2078 <Frames>
2079 <EditBox name="$parentHeal1" inherits="NLSpellEditTemplate">
2080 <Anchors>
2081 <Anchor point="TOPLEFT">
2082 <Offset>
2083 <AbsDimension x="150" y="-50"/>
2084 </Offset>
2085 </Anchor>
2086 </Anchors>
2087 <Layers>
2088 <Layer level="ARTWORK">
2089 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="LEFT">
2090 <Anchors>
2091 <Anchor point="LEFT" relativePoint="LEFT">
2092 <Offset>
2093 <AbsDimension x="-130" y="0" />
2094 </Offset>
2095 </Anchor>
2096 </Anchors>
2097 </FontString>
2098 </Layer>
2099 </Layers>
2100 </EditBox>
2101 <EditBox name="$parentHeal2" inherits="NLSpellEditTemplate">
2102 <Anchors>
2103 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentHeal1">
2104 <Offset>
2105 <AbsDimension x="0" y="-5"/>
2106 </Offset>
2107 </Anchor>
2108 </Anchors>
2109 <Layers>
2110 <Layer level="ARTWORK">
2111 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="LEFT">
2112 <Anchors>
2113 <Anchor point="LEFT" relativePoint="LEFT">
2114 <Offset>
2115 <AbsDimension x="-130" y="0" />
2116 </Offset>
2117 </Anchor>
2118 </Anchors>
2119 </FontString>
2120 </Layer>
2121 </Layers>
2122 </EditBox>
2123 <EditBox name="$parentHeal3" inherits="NLSpellEditTemplate">
2124 <Anchors>
2125 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentHeal2">
2126 <Offset>
2127 <AbsDimension x="0" y="-5"/>
2128 </Offset>
2129 </Anchor>
2130 </Anchors>
2131 <Layers>
2132 <Layer level="ARTWORK">
2133 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="LEFT">
2134 <Anchors>
2135 <Anchor point="LEFT" relativePoint="LEFT">
2136 <Offset>
2137 <AbsDimension x="-130" y="0" />
2138 </Offset>
2139 </Anchor>
2140 </Anchors>
2141 </FontString>
2142 </Layer>
2143 </Layers>
2144 </EditBox>
2145 <EditBox name="$parentHeal4" inherits="NLSpellEditTemplate">
2146 <Anchors>
2147 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentHeal3">
2148 <Offset>
2149 <AbsDimension x="0" y="-5"/>
2150 </Offset>
2151 </Anchor>
2152 </Anchors>
2153 <Layers>
2154 <Layer level="ARTWORK">
2155 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="LEFT">
2156 <Anchors>
2157 <Anchor point="LEFT" relativePoint="LEFT">
2158 <Offset>
2159 <AbsDimension x="-130" y="0" />
2160 </Offset>
2161 </Anchor>
2162 </Anchors>
2163 </FontString>
2164 </Layer>
2165 </Layers>
2166 </EditBox>
2167 <EditBox name="$parentHeal5" inherits="NLSpellEditTemplate">
2168 <Anchors>
2169 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentHeal4">
2170 <Offset>
2171 <AbsDimension x="0" y="-5"/>
2172 </Offset>
2173 </Anchor>
2174 </Anchors>
2175 <Layers>
2176 <Layer level="ARTWORK">
2177 <FontString name="$parentDescription" inherits="GameFontNormal" justifyH="LEFT">
2178 <Anchors>
2179 <Anchor point="LEFT" relativePoint="LEFT">
2180 <Offset>
2181 <AbsDimension x="-130" y="0" />
2182 </Offset>
2183 </Anchor>
2184 </Anchors>
2185 </FontString>
2186 </Layer>
2187 </Layers>
2188 </EditBox>
2189  
2190 <Button name="$parentSave" inherits="GameMenuButtonTemplate">
2191 <Size>
2192 <AbsDimension x="60" y="21" />
2193 </Size>
2194 <Anchors>
2195 <Anchor point="RIGHT" relativePoint="BOTTOM">
2196 <Offset>
2197 <AbsDimension x="-5" y="30" />
2198 </Offset>
2199 </Anchor>
2200 </Anchors>
2201 <Scripts>
2202 <OnLoad>
2203 this:SetText(NL_SAVE);
2204 </OnLoad>
2205 <OnClick>
2206 PlaySound("gsTitleOptionOK");
2207 NL_SaveSpellsConfig();
2208 NLFilterListFrame:Hide();
2209 NLConfigSpellsFrame:Hide();
2210 NLConfigFrame:Show();
2211 </OnClick>
2212 </Scripts>
2213 </Button>
2214  
2215 <Button name="$parentCancel" inherits="GameMenuButtonTemplate">
2216 <Size>
2217 <AbsDimension x="60" y="21" />
2218 </Size>
2219 <Anchors>
2220 <Anchor point="LEFT" relativePoint="BOTTOM">
2221 <Offset>
2222 <AbsDimension x="5" y="30" />
2223 </Offset>
2224 </Anchor>
2225 </Anchors>
2226 <Scripts>
2227 <OnLoad>
2228 this:SetText(NL_CANCEL);
2229 </OnLoad>
2230 <OnClick>
2231 PlaySound("gsTitleOptionOK");
2232 NLFilterListFrame:Hide();
2233 NLConfigSpellsFrame:Hide();
2234 NLConfigFrame:Show();
2235 </OnClick>
2236 </Scripts>
2237 </Button>
2238 </Frames>
2239 <Scripts>
2240 <OnLoad>
2241 NLConfigSpellsFrameTitleText:SetText(NL_CONFIG_SPELLS);
2242 NLConfigSpellsFrameDescription:SetText(NL_CONFIG_SPELL_DESC);
2243 NLConfigSpellsFrameHeal1Description:SetText(NL_CONFIG_SPELL_HEAL1);
2244 NLConfigSpellsFrameHeal2Description:SetText(NL_CONFIG_SPELL_HEAL2);
2245 NLConfigSpellsFrameHeal3Description:SetText(NL_CONFIG_SPELL_HEAL3);
2246 NLConfigSpellsFrameHeal4Description:SetText(NL_CONFIG_SPELL_HEAL4);
2247 NLConfigSpellsFrameHeal5Description:SetText(NL_CONFIG_SPELL_HEAL5);
2248 </OnLoad>
2249 <OnShow>
2250 NL_InitializeConfigSpellsFrame();
2251 tinsert(UISpecialFrames,"NLConfigSpellsFrame");
2252 </OnShow>
2253 </Scripts>
2254 </Frame>
2255 </Ui>