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 <Script file="BGInviteUI.lua"/>
3  
4 <CheckButton name="BGInvite_Template_CheckBt" enableMouse="true" virtual="true">
5 <Size>
6 <AbsDimension x="24" y="24"/>
7 </Size>
8 <Anchors>
9 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"/>
10 </Anchors>
11 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
12 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
13 <DisabledTexture file="Interface\Buttons\UI-CheckBox-Up"/>
14 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Up"/>
15 <NormalText inherits="GameFontNormalSmall" justifyH="LEFT">
16 <Anchors>
17 <Anchor point="LEFT" relativePoint="RIGHT"/>
18 </Anchors>
19 </NormalText>
20 <HighlightText inherits="GameFontHighlightSmall" justifyH="LEFT">
21 <Anchors>
22 <Anchor point="LEFT" relativePoint="RIGHT"/>
23 </Anchors>
24 </HighlightText>
25 <DisabledText inherits="GameFontDisableSmall" justifyH="LEFT">
26 <Anchors>
27 <Anchor point="LEFT" relativePoint="RIGHT"/>
28 </Anchors>
29 </DisabledText>
30 <PushedTextOffset>
31 <AbsDimension x="2" y="-2"/>
32 </PushedTextOffset>
33 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
34 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
35 <Scripts>
36 <OnEnter>
37 if ( this.tooltipText ) then
38 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
39 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
40 end
41 if ( this.tooltipRequirement ) then
42 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
43 GameTooltip:Show();
44 end
45 </OnEnter>
46 <OnLeave>
47 GameTooltip:Hide();
48 </OnLeave>
49 <OnClick>
50 getglobal(this:GetName().."_Update")(this:GetChecked());
51 </OnClick>
52 </Scripts>
53 </CheckButton>
54  
55 <Slider name="BGInvite_Template_Slider_Seconds" orientation="HORIZONTAL" virtual="true" enableMouse="true" minValue="0" maxValue="120" valueStep="5">
56 <Size>
57 <AbsDimension x="128" y="17"/>
58 </Size>
59 <HitRectInsets>
60 <AbsInset left="0" right="0" top="-10" bottom="-10"/>
61 </HitRectInsets>
62 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
63 <EdgeSize>
64 <AbsValue val="8"/>
65 </EdgeSize>
66 <TileSize>
67 <AbsValue val="8"/>
68 </TileSize>
69 <BackgroundInsets>
70 <AbsInset left="3" right="3" top="6" bottom="6"/>
71 </BackgroundInsets>
72 </Backdrop>
73 <Layers>
74 <Layer level="ARTWORK">
75 <FontString name="$parentText" inherits="GameFontNormalSmall" text="">
76 <Anchors>
77 <Anchor point="BOTTOM" relativePoint="TOP"/>
78 </Anchors>
79 </FontString>
80 <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="0">
81 <Anchors>
82 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
83 <Offset>
84 <AbsDimension x="2" y="3"/>
85 </Offset>
86 </Anchor>
87 </Anchors>
88 </FontString>
89 <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="120">
90 <Anchors>
91 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
92 <Offset>
93 <AbsDimension x="-2" y="3"/>
94 </Offset>
95 </Anchor>
96 </Anchors>
97 </FontString>
98 <FontString name="$parentVal" inherits="GameFontHighlightSmall">
99 <Anchors>
100 <Anchor relativePoint="BOTTOM" point="TOP"/>
101 </Anchors>
102 </FontString>
103 </Layer>
104 </Layers>
105 <Scripts>
106 <OnEnter>
107 if ( this.tooltipText ) then
108 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
109 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
110 end
111 if ( this.tooltipRequirement ) then
112 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
113 GameTooltip:Show();
114 end
115 </OnEnter>
116 <OnLeave>
117 GameTooltip:Hide();
118 </OnLeave>
119 </Scripts>
120 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
121 <Size>
122 <AbsDimension x="32" y="32"/>
123 </Size>
124 </ThumbTexture>
125 </Slider>
126  
127 <EditBox name="BGI_OptionsEditBoxTemplate" letters="24" historyLines="0" virtual="true">
128 <Size>
129 <AbsDimension x="100" y="20"/>
130 </Size>
131 <Layers>
132 <Layer level="BACKGROUND">
133 <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
134 <Size>
135 <AbsDimension x="12" y="29"/>
136 </Size>
137 <Anchors>
138 <Anchor point="TOPLEFT">
139 <Offset>
140 <AbsDimension x="-11" y="2"/>
141 </Offset>
142 </Anchor>
143 </Anchors>
144 <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
145 </Texture>
146 <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
147 <Size>
148 <AbsDimension x="100" y="29"/>
149 </Size>
150 <Anchors>
151 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
152 </Anchors>
153 <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
154 </Texture>
155 <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
156 <Size>
157 <AbsDimension x="12" y="29"/>
158 </Size>
159 <Anchors>
160 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
161 </Anchors>
162 <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
163 </Texture>
164 </Layer>
165 </Layers>
166 <Scripts>
167 <OnEscapePressed>
168 toggleBGInvite();
169 </OnEscapePressed>
170 <OnEnterPressed>
171 </OnEnterPressed>
172 </Scripts>
173 <FontString inherits="ChatFontNormal"/>
174 </EditBox>
175  
176  
177 <Frame name="BGInvite_OptionsFrame" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" id="1">
178 <HitRectInsets>
179 <AbsInset left="0" right="30" top="0" bottom="75"/>
180 </HitRectInsets>
181 <Frames>
182 <CheckButton name="BGInviteOptionsFrame_AutoInvite_CheckBt" text="BGINVITE_AUTOINVITE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
183 <Size>
184 <AbsDimension x="32" y="32"/>
185 </Size>
186 <Anchors>
187 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
188 <Offset>
189 <AbsDimension x="100" y="-50"/>
190 </Offset>
191 </Anchor>
192 </Anchors>
193 <Scripts>
194 <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.AutoInvite);</OnShow>
195 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
196 GameTooltip:SetText(BGINVITE_AUTOINVITE_NOTE);
197 </OnEnter>
198 </Scripts>
199 </CheckButton>
200 <CheckButton name="BGInviteOptionsFrame_AutoPurge_CheckBt" text="BGINVITE_AUTOPURGE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
201 <Size>
202 <AbsDimension x="32" y="32"/>
203 </Size>
204 <Anchors>
205 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGInviteOptionsFrame_AutoInvite_CheckBt">
206 <Offset>
207 <AbsDimension x="0" y="-22"/>
208 </Offset>
209 </Anchor>
210 </Anchors>
211 <Scripts>
212 <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.AutoPurge);</OnShow>
213 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
214 GameTooltip:SetText(BGINVITE_AUTOPURGE_NOTE);
215 </OnEnter>
216 </Scripts>
217 </CheckButton>
218 <CheckButton name="BGInviteOptionsFrame_SendWhisper_CheckBt" text="BGINVITE_WHISPER" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
219 <Size>
220 <AbsDimension x="32" y="32"/>
221 </Size>
222 <Anchors>
223 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteOptionsFrame_AutoInvite_CheckBt">
224 <Offset>
225 <AbsDimension x="100" y="0"/>
226 </Offset>
227 </Anchor>
228 </Anchors>
229 <Scripts>
230 <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.SendWhisper);</OnShow>
231 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
232 GameTooltip:SetText(BGINVITE_WHISPER_NOTE);
233 </OnEnter>
234 </Scripts>
235 </CheckButton>
236 <CheckButton name="BGInviteOptionsFrame_Disable_CheckBt" text="BGINVITE_DISABLE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
237 <Size>
238 <AbsDimension x="32" y="32"/>
239 </Size>
240 <Anchors>
241 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteOptionsFrame_SendWhisper_CheckBt">
242 <Offset>
243 <AbsDimension x="0" y="10"/>
244 </Offset>
245 </Anchor>
246 </Anchors>
247 <Scripts>
248 <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.Disable);</OnShow>
249 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
250 GameTooltip:SetText(BGINVITE_DISABLE_NOTE);
251 </OnEnter>
252 </Scripts>
253 </CheckButton>
254  
255 <Frame name="BGInvite_MagicWord_WidgetGroup" hidden="false">
256 <Size>
257 <AbsDimension x="32" y="32"/>
258 </Size>
259 <Anchors>
260 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
261 <Offset>
262 <AbsDimension x="30" y="-110"/>
263 </Offset>
264 </Anchor>
265 </Anchors>
266 <Layers>
267 <Layer level="OVERLAY">
268 <FontString inherits="GameFontNormalSmall" name="$parent_MagicWord" text="BGINVITE_MAGIC_WORD">
269 <Anchors>
270 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
271 <Offset>
272 <AbsDimension x="0" y="0"/>
273 </Offset>
274 </Anchor>
275 </Anchors>
276 </FontString>
277 </Layer>
278 </Layers>
279 <Layers>
280 <Layer level="OVERLAY">
281 <FontString inherits="GameFontNormal" name="TheMagicWord">
282 <Anchors>
283 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGInvite_MagicWord_WidgetGroup">
284 <Offset>
285 <AbsDimension x="75" y="0"/>
286 </Offset>
287 </Anchor>
288 </Anchors>
289 </FontString>
290 </Layer>
291 </Layers>
292 </Frame>
293 <Button name="BGInviteMagicwordChange" inherits="OptionsButtonTemplate" text="BGINVITE_CHANGE">
294 <Size>
295 <AbsDimension x="70" y="20"/>
296 </Size>
297 <Anchors>
298 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="TheMagicWord">
299 <Offset>
300 <AbsDimension x="10" y="0"/>
301 </Offset>
302 </Anchor>
303 </Anchors>
304 <Scripts>
305 <OnClick>
306 if (BGInvite_OptionsMagicWordDialog:IsVisible()) then
307 BGInvite_OptionsMagicWordDialog:Hide();
308 else
309 BGInvite_OptionsMagicWordDialog:Show();
310 end
311 </OnClick>
312 </Scripts>
313 </Button>
314 <Button name="BGInviteMagicwordDefault" inherits="OptionsButtonTemplate" text="BGINVITE_DEFAULT">
315 <Size>
316 <AbsDimension x="70" y="20"/>
317 </Size>
318 <Anchors>
319 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange">
320 <Offset>
321 <AbsDimension x="0" y="0"/>
322 </Offset>
323 </Anchor>
324 </Anchors>
325 <Scripts>
326 <OnClick>
327 if (BGInvite_OptionsMagicWordDialog:IsVisible()) then
328 BGInvite_OptionsMagicWordDialog:Hide();
329 end
330 BGInvite_Config.MagicWord = "invite";
331 TheMagicWord:SetText(BGInvite_Config.MagicWord);
332 </OnClick>
333 </Scripts>
334 </Button>
335  
336  
337 <Button name="BGInviteOptionsFrameChannelDropDown" inherits="UIDropDownMenuTemplate">
338 <Size>
339 <AbsDimension x="10" y="25"/>
340 </Size>
341 <Anchors>
342 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteMagicwordChange">
343 <Offset>
344 <AbsDimension x="-140" y="0"/>
345 </Offset>
346 </Anchor>
347 </Anchors>
348 <Scripts>
349 <OnLoad>
350 BGInvite_ChannelDropDown_OnLoad();
351 </OnLoad>
352 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
353 GameTooltip:SetText(BGINVITE_CHANNEL_NOTE);
354 </OnEnter>
355 <OnLeave>
356 GameTooltip:Hide();
357 </OnLeave>
358 </Scripts>
359 </Button>
360  
361  
362 <Slider name="BGInvite_AutoInviteTimeout_Slider" inherits="BGInvite_Template_Slider_Seconds">
363 <Anchors>
364 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_MagicWord_WidgetGroup">
365 <Offset>
366 <AbsDimension x="0" y="-30"/>
367 </Offset>
368 </Anchor>
369 </Anchors>
370 <Scripts>
371 <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_INVITE_COOLDOWN);
372 getglobal(this:GetName()):SetValue(BGInvite_Config.AutoInviteTimeout);
373 </OnShow>
374 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
375 GameTooltip:SetText(BGINVITE_INVITE_COOLDOWN_NOTE);
376 </OnEnter>
377 <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
378 getglobal(this:GetName().."_Update")(this:GetValue());
379 </OnValueChanged>
380 </Scripts>
381 </Slider>
382  
383 <Slider name="BGInvite_RetryCooldown_Slider" inherits="BGInvite_Template_Slider_Seconds">
384 <Anchors>
385 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_AutoInviteTimeout_Slider">
386 <Offset>
387 <AbsDimension x="0" y="-25"/>
388 </Offset>
389 </Anchor>
390 </Anchors>
391 <Scripts>
392 <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_COOLDOWN);
393 getglobal(this:GetName()):SetValue(BGInvite_Config.RetryTimeout);
394 </OnShow>
395 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
396 GameTooltip:SetText(BGINVITE_COOLDOWN_NOTE);
397 </OnEnter>
398 <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
399 getglobal(this:GetName().."_Update")(this:GetValue());
400 </OnValueChanged>
401 </Scripts>
402 </Slider>
403 <Slider name="BGInvite_PurgeCooldown_Slider" inherits="BGInvite_Template_Slider_Seconds">
404 <Anchors>
405 <Anchor point="TOPLEFT" relativeTo="BGInvite_RetryCooldown_Slider" relativePoint="TOPRIGHT">
406 <Offset>
407 <AbsDimension x="20" y="0"/>
408 </Offset>
409 </Anchor>
410 </Anchors>
411 <Scripts>
412 <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_PURGE_COOLDOWN);
413 getglobal(this:GetName()):SetValue(BGInvite_Config.PurgeTimeout);
414 </OnShow>
415 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
416 GameTooltip:SetText(BGINVITE_PURGE_COOLDOWN_NOTE);
417 </OnEnter>
418 <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
419 getglobal(this:GetName().."_Update")(this:GetValue());
420 </OnValueChanged>
421 </Scripts>
422 </Slider>
423 <Slider name="BGInvite_MaxInvites_Slider" inherits="BGInvite_Template_Slider_Seconds">
424 <Anchors>
425 <Anchor point="TOPLEFT" relativeTo="BGInvite_RetryCooldown_Slider" relativePoint="BOTTOMLEFT">
426 <Offset>
427 <AbsDimension x="0" y="-25"/>
428 </Offset>
429 </Anchor>
430 </Anchors>
431 <Scripts>
432 <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_MAX_INVITES);
433 getglobal(this:GetName()):SetValue(BGInvite_Config.MaxRetries);
434 BGInvite_MaxInvites_Slider:SetValueStep(1);
435 BGInvite_MaxInvites_Slider:SetMinMaxValues(0,25);
436 BGInvite_MaxInvites_SliderHigh:SetText(25);
437 </OnShow>
438 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
439 GameTooltip:SetText(BGINVITE_MAX_INVITES_NOTE);
440 </OnEnter>
441 <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_RETRIES);
442 getglobal(this:GetName().."_Update")(this:GetValue());
443 </OnValueChanged>
444 </Scripts>
445 </Slider>
446  
447 <Button name="BGInvitesendinvite" inherits="OptionsButtonTemplate" text="BGINVITE_SEND_INVITES">
448 <Size>
449 <AbsDimension x="150" y="25"/>
450 </Size>
451 <Anchors>
452 <Anchor point="CENTER" relativePoint="CENTER" relativeTo="BGInvite_OptionsFrame">
453 <Offset>
454 <AbsDimension x="0" y="-40"/>
455 </Offset>
456 </Anchor>
457 </Anchors>
458 <Scripts>
459 <OnClick>
460 BGinvite_sendinvites();
461 </OnClick>
462 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
463 GameTooltip:SetText(BGINVITE_SENDINVITES_NOTE);
464 </OnEnter>
465 <OnLeave>
466 GameTooltip:Hide();
467 </OnLeave>
468 </Scripts>
469 </Button>
470  
471  
472 <Button name="BGInvitePromoteAll" inherits="OptionsButtonTemplate" text="BGINVITE_PROMOTE_ALL">
473 <Size>
474 <AbsDimension x="150" y="25"/>
475 </Size>
476 <Anchors>
477 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvitesendinvite">
478 <Offset>
479 <AbsDimension x="0" y="0"/>
480 </Offset>
481 </Anchor>
482 </Anchors>
483 <Scripts>
484 <OnClick>
485 BGinvite_promoteall();
486 </OnClick>
487 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
488 GameTooltip:SetText(BGINVITE_PROMOTE_NOTE);
489 </OnEnter>
490 <OnLeave>
491 GameTooltip:Hide();
492 </OnLeave>
493 </Scripts>
494 </Button>
495  
496 <Button name="BGInviteDemoteAll" inherits="OptionsButtonTemplate" text="BGINVITE_DEMOTE_ALL">
497 <Size>
498 <AbsDimension x="150" y="25"/>
499 </Size>
500 <Anchors>
501 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvitePromoteAll">
502 <Offset>
503 <AbsDimension x="0" y="0"/>
504 </Offset>
505 </Anchor>
506 </Anchors>
507 <Scripts>
508 <OnClick>
509 BGinvite_demoteall();
510 </OnClick>
511 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
512 GameTooltip:SetText(BGINVITE_DEMOTE_NOTE);
513 </OnEnter>
514 <OnLeave>
515 GameTooltip:Hide();
516 </OnLeave>
517 </Scripts>
518 </Button>
519  
520 <Button name="BGInviteClearBLButton" inherits="OptionsButtonTemplate" text="BGINVITE_CLEAR_BLACKLIST">
521 <Size>
522 <AbsDimension x="150" y="25"/>
523 </Size>
524 <Anchors>
525 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteDemoteAll">
526 <Offset>
527 <AbsDimension x="0" y="0"/>
528 </Offset>
529 </Anchor>
530 </Anchors>
531 <Scripts>
532 <OnClick>
533 BGInviteClearBlackList();
534 </OnClick>
535 <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
536 GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE);
537 </OnEnter>
538 <OnLeave>
539 GameTooltip:Hide();
540 </OnLeave>
541 </Scripts>
542 </Button>
543 </Frames>
544  
545 <Scripts>
546 <OnShow>
547 BGInviteUI_OnShow();
548 TheMagicWord:SetText(BGInvite_Config.MagicWord);
549 TheMagicWord:SetTextColor(1,1,1);
550 </OnShow>
551 <OnLoad>
552 BGInviteUI_OnLoad();
553 </OnLoad>
554 </Scripts>
555  
556 </Frame>
557  
558  
559 <Frame name="BGInvite_OptionsMagicWordDialog" toplevel="true" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" frameStrata="DIALOG">
560 <Size>
561 <AbsDimension x="200" y="120"/>
562 </Size>
563 <Anchors>
564 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange">
565 <Offset>
566 <AbsDimension x="0" y="0"/>
567 </Offset>
568 </Anchor>
569 </Anchors>
570 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
571 <BackgroundInsets>
572 <AbsInset left="11" right="12" top="12" bottom="11"/>
573 </BackgroundInsets>
574 <TileSize>
575 <AbsValue val="32"/>
576 </TileSize>
577 <EdgeSize>
578 <AbsValue val="32"/>
579 </EdgeSize>
580 </Backdrop>
581  
582 <Frames>
583 <Frame name="BGInvite_MagicWord_WidgetGroupD" hidden="false">
584 <Size>
585 <AbsDimension x="32" y="32"/>
586 </Size>
587 <Anchors>
588 <Anchor point="CENTER" relativePoint="TOP">
589 <Offset>
590 <AbsDimension x="0" y="-45"/>
591 </Offset>
592 </Anchor>
593 </Anchors>
594 <Layers>
595 <Layer level="OVERLAY">
596 <FontString inherits="GameFontNormal" name="$parent_MagicWordD" text="CHANGE_BGINVITE_MAGIC_WORD">
597 <Anchors>
598 <Anchor point="CENTER" relativePoint="TOP">
599 <Offset>
600 <AbsDimension x="0" y="0"/>
601 </Offset>
602 </Anchor>
603 </Anchors>
604 </FontString>
605 </Layer>
606 </Layers>
607 </Frame>
608 <EditBox name="BGInviteMagicwordEditBoxD" letters="20" inherits="BGI_OptionsEditBoxTemplate">
609 <Anchors>
610 <Anchor point="CENTER" relativePoint="CENTER">
611 <Offset>
612 <AbsDimension x="0" y="0"/>
613 </Offset>
614 </Anchor>
615 </Anchors>
616 <Scripts>
617 <OnEnterPressed>
618 BGInvite_Config.MagicWord = BGInviteMagicwordEditBoxD:GetText()
619 TheMagicWord:SetText(BGInvite_Config.MagicWord);
620 MagicWordChanged();
621 BGInvite_OptionsMagicWordDialog:Hide();
622 </OnEnterPressed>
623 <OnShow>getglobal(this:GetName()):SetText(BGInvite_Config.MagicWord);</OnShow>
624 </Scripts>
625 </EditBox>
626  
627  
628 <Button name="BGInviteMagicwordChangeD" inherits="OptionsButtonTemplate" text="OK">
629 <Size>
630 <AbsDimension x="70" y="20"/>
631 </Size>
632 <Anchors>
633 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteMagicwordEditBoxD">
634 <Offset>
635 <AbsDimension x="-20" y="-15"/>
636 </Offset>
637 </Anchor>
638 </Anchors>
639 <Scripts>
640 <OnClick>
641 BGInvite_Config.MagicWord = BGInviteMagicwordEditBoxD:GetText()
642 TheMagicWord:SetText(BGInvite_Config.MagicWord);
643 MagicWordChanged();
644 BGInvite_OptionsMagicWordDialog:Hide();
645 </OnClick>
646 </Scripts>
647 </Button>
648 <Button name="BGInviteMagicwordChangeCancel" inherits="OptionsButtonTemplate" text="Cancel">
649 <Size>
650 <AbsDimension x="70" y="20"/>
651 </Size>
652 <Anchors>
653 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGInviteMagicwordEditBoxD">
654 <Offset>
655 <AbsDimension x="20" y="-15"/>
656 </Offset>
657 </Anchor>
658 </Anchors>
659 <Scripts>
660 <OnClick>
661 BGInvite_OptionsMagicWordDialog:Hide();
662 </OnClick>
663 </Scripts>
664 </Button>
665 </Frames>
666 </Frame>
667 </Ui>
668  
669  
670  
671