vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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/"> 
   <Script file="BGInviteUI.lua"/> 
        
        <CheckButton name="BGInvite_Template_CheckBt" enableMouse="true" virtual="true">
                <Size>
                        <AbsDimension x="24" y="24"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"/>
                </Anchors>
                <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
                <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
                <DisabledTexture file="Interface\Buttons\UI-CheckBox-Up"/>
                <HighlightTexture file="Interface\Buttons\UI-CheckBox-Up"/>
                <NormalText inherits="GameFontNormalSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="RIGHT"/>
                        </Anchors>
                </NormalText>
                <HighlightText inherits="GameFontHighlightSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="RIGHT"/>
                        </Anchors>
                </HighlightText>
                <DisabledText inherits="GameFontDisableSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="RIGHT"/>
                        </Anchors>
                </DisabledText>
                <PushedTextOffset>
                        <AbsDimension x="2" y="-2"/>
                </PushedTextOffset>
                <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
                <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
                <Scripts>
                        <OnEnter>
                                if ( this.tooltipText ) then
                                        GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                        GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
                                end
                                if ( this.tooltipRequirement ) then
                                        GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
                                        GameTooltip:Show();
                                end
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                        <OnClick>
                                getglobal(this:GetName().."_Update")(this:GetChecked());
                        </OnClick>
                </Scripts>
        </CheckButton>

        <Slider name="BGInvite_Template_Slider_Seconds" orientation="HORIZONTAL" virtual="true" enableMouse="true" minValue="0" maxValue="120" valueStep="5">
                <Size>
                        <AbsDimension x="128" y="17"/>
                </Size>
                <HitRectInsets>
                        <AbsInset left="0" right="0" top="-10" bottom="-10"/>
                </HitRectInsets>
                <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="8"/>
                        </EdgeSize>
                        <TileSize>
                                <AbsValue val="8"/>
                        </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="3" right="3" top="6" bottom="6"/>
                        </BackgroundInsets>
                </Backdrop>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="">
                                        <Anchors>
                                                <Anchor point="BOTTOM" relativePoint="TOP"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="0">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
                                                        <Offset>
                                                                <AbsDimension x="2" y="3"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="120">
                                        <Anchors>
                                                <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
                                                        <Offset>
                                                                <AbsDimension x="-2" y="3"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentVal" inherits="GameFontHighlightSmall">
                                        <Anchors>
                                                <Anchor relativePoint="BOTTOM" point="TOP"/>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                if ( this.tooltipText ) then
                                        GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                        GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
                                end
                                if ( this.tooltipRequirement ) then
                                        GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
                                        GameTooltip:Show();
                                end
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
                <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                </ThumbTexture>
        </Slider>

        <EditBox name="BGI_OptionsEditBoxTemplate" letters="24" historyLines="0" virtual="true">
                <Size>
                        <AbsDimension x="100" y="20"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size>
                                                <AbsDimension x="12" y="29"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="-11" y="2"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
                                </Texture>
                                <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size>
                                                <AbsDimension x="100" y="29"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                        </Anchors>
                                        <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
                                </Texture>
                                <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size>
                                                <AbsDimension x="12" y="29"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                        </Anchors>
                                        <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
                                </Texture>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEscapePressed>
                                toggleBGInvite();
                        </OnEscapePressed>
                        <OnEnterPressed>
                        </OnEnterPressed>
                </Scripts>
                <FontString inherits="ChatFontNormal"/>
        </EditBox>

            
<Frame name="BGInvite_OptionsFrame" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" id="1">
        <HitRectInsets>
                <AbsInset left="0" right="30" top="0" bottom="75"/>
        </HitRectInsets>    
    <Frames>
                <CheckButton name="BGInviteOptionsFrame_AutoInvite_CheckBt" text="BGINVITE_AUTOINVITE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="100" y="-50"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.AutoInvite);</OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_AUTOINVITE_NOTE);
                                </OnEnter>                              
                        </Scripts>
                </CheckButton>
                <CheckButton name="BGInviteOptionsFrame_AutoPurge_CheckBt" text="BGINVITE_AUTOPURGE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGInviteOptionsFrame_AutoInvite_CheckBt">
                                        <Offset>
                                                <AbsDimension x="0" y="-22"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.AutoPurge);</OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_AUTOPURGE_NOTE);
                                </OnEnter>                              
                        </Scripts>
                </CheckButton>
                <CheckButton name="BGInviteOptionsFrame_SendWhisper_CheckBt" text="BGINVITE_WHISPER" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteOptionsFrame_AutoInvite_CheckBt">
                                        <Offset>
                                                <AbsDimension x="100" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.SendWhisper);</OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_WHISPER_NOTE);
                                </OnEnter>                              
                        </Scripts>
                </CheckButton>
                <CheckButton name="BGInviteOptionsFrame_Disable_CheckBt" text="BGINVITE_DISABLE" inherits="BGInvite_Template_CheckBt" parent="BGInvite_OptionsFrame">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteOptionsFrame_SendWhisper_CheckBt">
                                        <Offset>
                                                <AbsDimension x="0" y="10"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName()):SetChecked(BGInvite_Config.Disable);</OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_DISABLE_NOTE);
                                </OnEnter>                              
                        </Scripts>
                </CheckButton>
                        
                <Frame name="BGInvite_MagicWord_WidgetGroup" hidden="false">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="30" y="-110"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="OVERLAY">
                                        <FontString inherits="GameFontNormalSmall" name="$parent_MagicWord" text="BGINVITE_MAGIC_WORD">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                        <Layers>
                                <Layer level="OVERLAY">
                                        <FontString inherits="GameFontNormal" name="TheMagicWord">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGInvite_MagicWord_WidgetGroup">
                                                                <Offset>
                                                                        <AbsDimension x="75" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                </Frame>
                <Button name="BGInviteMagicwordChange" inherits="OptionsButtonTemplate" text="BGINVITE_CHANGE">
                        <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="TheMagicWord">
                                        <Offset>
                                                <AbsDimension x="10" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        if (BGInvite_OptionsMagicWordDialog:IsVisible()) then
                                                BGInvite_OptionsMagicWordDialog:Hide();
                                        else
                                                BGInvite_OptionsMagicWordDialog:Show();
                                        end
                                </OnClick>
                        </Scripts>
        </Button>               
                <Button name="BGInviteMagicwordDefault" inherits="OptionsButtonTemplate" text="BGINVITE_DEFAULT">
            <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
            </Anchors>
            <Scripts>
                <OnClick>
                                        if (BGInvite_OptionsMagicWordDialog:IsVisible()) then
                                                BGInvite_OptionsMagicWordDialog:Hide();
                                        end
                                        BGInvite_Config.MagicWord = "invite";
                                        TheMagicWord:SetText(BGInvite_Config.MagicWord);
                </OnClick>
            </Scripts>
        </Button>
                
                
                <Button name="BGInviteOptionsFrameChannelDropDown" inherits="UIDropDownMenuTemplate">
                        <Size>
                                <AbsDimension x="10" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteMagicwordChange">
                                        <Offset>
                                                <AbsDimension x="-140" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnLoad>
                                        BGInvite_ChannelDropDown_OnLoad();                                              
                                </OnLoad>                                               
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_CHANNEL_NOTE);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>                              
                        </Scripts>
                </Button>

                
                <Slider name="BGInvite_AutoInviteTimeout_Slider" inherits="BGInvite_Template_Slider_Seconds">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_MagicWord_WidgetGroup">
                                        <Offset>
                                                <AbsDimension x="0" y="-30"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_INVITE_COOLDOWN);
                                                getglobal(this:GetName()):SetValue(BGInvite_Config.AutoInviteTimeout);
                                </OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_INVITE_COOLDOWN_NOTE);
                                </OnEnter>
                                <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
                                                                getglobal(this:GetName().."_Update")(this:GetValue());
                                </OnValueChanged>
                        </Scripts>
                </Slider>

                <Slider name="BGInvite_RetryCooldown_Slider" inherits="BGInvite_Template_Slider_Seconds">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_AutoInviteTimeout_Slider">
                                        <Offset>
                                                <AbsDimension x="0" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_COOLDOWN);
                                                getglobal(this:GetName()):SetValue(BGInvite_Config.RetryTimeout);
                                </OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_COOLDOWN_NOTE);
                                </OnEnter>
                                <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
                                                                getglobal(this:GetName().."_Update")(this:GetValue());
                                </OnValueChanged>
                        </Scripts>
                </Slider>
                <Slider name="BGInvite_PurgeCooldown_Slider" inherits="BGInvite_Template_Slider_Seconds">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativeTo="BGInvite_RetryCooldown_Slider" relativePoint="TOPRIGHT">
                                        <Offset>
                                                <AbsDimension x="20" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_PURGE_COOLDOWN);
                                                getglobal(this:GetName()):SetValue(BGInvite_Config.PurgeTimeout);
                                </OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_PURGE_COOLDOWN_NOTE);
                                </OnEnter>
                                <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_SECONDS);
                                                                getglobal(this:GetName().."_Update")(this:GetValue());
                                </OnValueChanged>
                        </Scripts>
                </Slider>
                <Slider name="BGInvite_MaxInvites_Slider" inherits="BGInvite_Template_Slider_Seconds">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativeTo="BGInvite_RetryCooldown_Slider" relativePoint="BOTTOMLEFT">
                                        <Offset>
                                                <AbsDimension x="0" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnShow>getglobal(this:GetName().."Text"):SetText(BGINVITE_MAX_INVITES);
                                                getglobal(this:GetName()):SetValue(BGInvite_Config.MaxRetries);
                                                BGInvite_MaxInvites_Slider:SetValueStep(1);
                                                BGInvite_MaxInvites_Slider:SetMinMaxValues(0,25);
                                                BGInvite_MaxInvites_SliderHigh:SetText(25);
                                </OnShow>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_MAX_INVITES_NOTE);
                                </OnEnter>
                                <OnValueChanged>getglobal(this:GetName().."Val"):SetText(this:GetValue()..BGINVITE_RETRIES);
                                                                getglobal(this:GetName().."_Update")(this:GetValue());
                                </OnValueChanged>
                        </Scripts>
                </Slider>
        
                <Button name="BGInvitesendinvite" inherits="OptionsButtonTemplate" text="BGINVITE_SEND_INVITES">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                <Anchor point="CENTER" relativePoint="CENTER" relativeTo="BGInvite_OptionsFrame">
                                        <Offset>
                                                <AbsDimension x="0" y="-40"/>
                                        </Offset>
                                </Anchor>
            </Anchors>
            <Scripts>
                <OnClick>
                    BGinvite_sendinvites();
                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_SENDINVITES_NOTE);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>                                                      
            </Scripts>
        </Button>
                
                
                <Button name="BGInvitePromoteAll" inherits="OptionsButtonTemplate" text="BGINVITE_PROMOTE_ALL">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvitesendinvite">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGinvite_promoteall();
                                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_PROMOTE_NOTE);
                                </OnEnter>                              
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>                              
                        </Scripts>
                </Button>
                
                <Button name="BGInviteDemoteAll" inherits="OptionsButtonTemplate" text="BGINVITE_DEMOTE_ALL">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvitePromoteAll">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGinvite_demoteall();
                                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_DEMOTE_NOTE);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>                              
                        </Scripts>
                </Button>

                <Button name="BGInviteClearBLButton" inherits="OptionsButtonTemplate" text="BGINVITE_CLEAR_BLACKLIST">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteDemoteAll">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGInviteClearBlackList();
                                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>                              
                        </Scripts>
                </Button>       
    </Frames>
    
    <Scripts>
        <OnShow>
            BGInviteUI_OnShow();
            TheMagicWord:SetText(BGInvite_Config.MagicWord);
            TheMagicWord:SetTextColor(1,1,1);
        </OnShow>
        <OnLoad>
                BGInviteUI_OnLoad();
        </OnLoad>
    </Scripts>
   
    </Frame>


<Frame name="BGInvite_OptionsMagicWordDialog" toplevel="true" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" frameStrata="DIALOG">
        <Size>
                <AbsDimension x="200" y="120"/>
        </Size>
        <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange">
                        <Offset>
                                <AbsDimension x="0" y="0"/>
                        </Offset>
                </Anchor>
        </Anchors>
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
                <BackgroundInsets>
                        <AbsInset left="11" right="12" top="12" bottom="11"/>
                </BackgroundInsets>
                <TileSize>
                        <AbsValue val="32"/>
                </TileSize>
                <EdgeSize>
                        <AbsValue val="32"/>
                </EdgeSize>
        </Backdrop>

        <Frames>
                <Frame name="BGInvite_MagicWord_WidgetGroupD" hidden="false">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="TOP">
                                        <Offset>
                                                <AbsDimension x="0" y="-45"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="OVERLAY">
                                        <FontString inherits="GameFontNormal" name="$parent_MagicWordD" text="CHANGE_BGINVITE_MAGIC_WORD">
                                                <Anchors>
                                                        <Anchor point="CENTER" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                </Frame>
                <EditBox name="BGInviteMagicwordEditBoxD" letters="20" inherits="BGI_OptionsEditBoxTemplate">
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnEnterPressed>
                                        BGInvite_Config.MagicWord = BGInviteMagicwordEditBoxD:GetText()
                                        TheMagicWord:SetText(BGInvite_Config.MagicWord);
                                        MagicWordChanged();
                                        BGInvite_OptionsMagicWordDialog:Hide();
                                </OnEnterPressed>
                                <OnShow>getglobal(this:GetName()):SetText(BGInvite_Config.MagicWord);</OnShow>
                        </Scripts>
                </EditBox>
                
                
                <Button name="BGInviteMagicwordChangeD" inherits="OptionsButtonTemplate" text="OK">
                        <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInviteMagicwordEditBoxD">
                                        <Offset>
                                                <AbsDimension x="-20" y="-15"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGInvite_Config.MagicWord = BGInviteMagicwordEditBoxD:GetText()
                                        TheMagicWord:SetText(BGInvite_Config.MagicWord);
                                        MagicWordChanged();
                                        BGInvite_OptionsMagicWordDialog:Hide();
                                </OnClick>
                        </Scripts>
        </Button>
                <Button name="BGInviteMagicwordChangeCancel" inherits="OptionsButtonTemplate" text="Cancel">
                        <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGInviteMagicwordEditBoxD">
                                        <Offset>
                                                <AbsDimension x="20" y="-15"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGInvite_OptionsMagicWordDialog:Hide();
                                </OnClick>
                        </Scripts>
        </Button>
        </Frames>
</Frame>
</Ui>