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="localization.lua"/>
        <Script file="BGBuddy.lua"/>
        <Include file="UIPanelTemplates.xml"/>
        <Include file="UIDropDownMenuTemplates.xml"/>

<!-- Virtual Definitions -->
<Button name="virtual_BGBuddyCustomizeFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
        <Scripts>
                <OnClick>
                        PanelTemplates_Tab_OnClick(BGBuddy_ConfigPanel_Customize_BGTabFrame);
                </OnClick>
        </Scripts>
</Button>

<!-- Customize line checkbox template -->
<CheckButton name="virtual_BGBuddy_ConfigPanel_Customize_CheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
        <Size>
                <AbsDimension x="24" y="24"/>
        </Size>
        <Scripts>
                <OnClick>
                        if ( this:GetChecked() ) then
                                PlaySound("igMainMenuOptionCheckBoxOff");
                        else
                                PlaySound("igMainMenuOptionCheckBoxOn");
                        end
                </OnClick>
                <OnEnter>
                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                        GameTooltip:SetText("Activate the contents of this line when checked.", 1.0, 1.0, 1.0, 1.0, 1);
                </OnEnter>
                <OnLeave>
                        GameTooltip:Hide();
                </OnLeave>
        </Scripts>
</CheckButton>

<!-- Virtual Sub-frame definition -->
<Frame name="virtual_BGBuddy_ConfigPanel_Customize_BoxTemplate" parent="BGBuddy_ConfigPanel_CustomizeDisplay"  virtual="true">
        <Size>
                <AbsDimension x="330" y="129"/>
        </Size>
        <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                <EdgeSize>
                        <AbsValue val="8"/>
                </EdgeSize>
                <TileSize>
                        <AbsValue val="8"/>
                </TileSize>
                <BackgroundInsets>
                        <AbsInset left="2" right="2" top="2" bottom="2"/>
                </BackgroundInsets>
        </Backdrop>
        <Scripts>
                <OnLoad>
                        this:SetFrameLevel(2);
                        this:SetBackdropColor(0.3,0.3,0.3,0.8);
                        this:SetBackdropBorderColor(1,1,1,0.5);
                </OnLoad>
        </Scripts>
</Frame>

<!-- Virtual customize tab frame -->
<Frame name="BGBuddy_ConfigPanel_Customize_BG" parent="BGBuddy_ConfigPanel_CustomizeDisplay" virtual="true">
        <Size>
                <AbsDimension x="330" y="129"/>
        </Size>
        <Backdrop bgFile="Interface\Stationery\StationeryTest1" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false">
                <EdgeSize>
                        <AbsValue val="8"/>
                </EdgeSize>
                <TileSize>
                        <AbsValue val="8"/>
                </TileSize>
                <BackgroundInsets>
                        <AbsInset left="2" right="2" top="2" bottom="2"/>
                </BackgroundInsets>
        </Backdrop>
        <Scripts>
                <OnLoad>
                        this:SetFrameLevel(2);
                        this:SetBackdropColor(0.3,0.3,0.3,0.8);
                        this:SetBackdropBorderColor(1,1,1,0.5);
                </OnLoad>
        </Scripts>
        <Layers>
                <Layer level="ARTWORK">
                        <!-- BG LABELS -->
                        <FontString name="AVLabel" inherits="GameFontNormal" text="Alterac Valley Settings" hidden="false" >
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="9" y="8" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="WSGLabel" inherits="GameFontNormal" text="Warsong Gulch Settings" hidden="true">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="9" y="8" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="ABLabel" inherits="GameFontNormal" text="Arathi Basin Settings" hidden="true">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="9" y="8" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <!-- END BG LABELS -->
                </Layer>
        </Layers>
        <Frames>
                <ScrollFrame name="ConfigureScrollFrame" inherits="UIPanelScrollFrameTemplate">
                        <Size>
                                <AbsDimension x="320" y="129"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="ARTWORK">
                                        <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                <Size>
                                                        <AbsDimension x="31" y="256"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
                                        </Texture>
                                        <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                <Size>
                                                        <AbsDimension x="31" y="106"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-2"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
                                        </Texture>
                                </Layer>
                        </Layers>
                        <ScrollChild>
                                <Frame name="ConfigureScrollChildFrame" enableMouse="true">
                                        <Size>
                                                <AbsDimension x="320" y="120"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Frames>
                                                <EditBox name="ConfigureBodyEditBox" letters="500" multiLine="true" enableMouse="true" autoFocus="false">
                                                        <Size>
                                                                <AbsDimension x="270" y="200"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="20" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnEscapePressed>
                                                                        this:ClearFocus();
                                                                </OnEscapePressed>
                                                                <OnTextChanged>
                                                                        local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar")
                                                                        this:GetParent():GetParent():UpdateScrollChildRect();
                                                                        local min;
                                                                        local max;
                                                                        min, max = scrollBar:GetMinMaxValues();
                                                                        if ( max > 0 and (this.max ~= max) ) then
                                                                                this.max = max;
                                                                                scrollBar:SetValue(max);
                                                                        end
                                                                </OnTextChanged>
                                                                <OnClick>
                                                                        this:SetFocus();
                                                                </OnClick>
                                                        </Scripts>
                                                        <FontString inherits="GameFontNormal" justifyH="LEFT" />
                                                </EditBox>
                                        </Frames>
                                </Frame>
                                <OnClick>
                                        ConfigureBodyEditBox:SetFocus();
                                </OnClick>
                        </ScrollChild>
                </ScrollFrame>
        </Frames>
</Frame>


<!-- -->
                <Slider name="virtual_BGBuddy_SliderTemplate" orientation="HORIZONTAL" virtual="true" hidden="true">
                        <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>
                        <Size>
                                <AbsDimension x="135" y="17" />
                        </Size>
                        <Layers>
                                <Layer level="BACKGROUND">
                                        <Texture name="BGBuddy_ConfigPanel_SliderBackground1" setAllPoints="true">
                                                <Color r="0" g="1" b="0" a="0.0" />
                                        </Texture>
                                </Layer>
                                <Layer level="ARTWORK">
                                        <FontString name="$parentHeading" inherits="GameFontNormalSmall" text="Heading">
                                                <Anchors>
                                                        <Anchor point="BOTTOM" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="2" y="0" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                        <FontString name="$parentValueText" inherits="GameFontNormalSmall" text="Value">
                                                <Color r=".4" g=".6" b="1" a="1" />
                                                <Anchors>
                                                        <Anchor point="BOTTOM" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="2" y="-11" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                        <FontString name="$parentLeftText" inherits="GameFontHighlightSmall" text="0%">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="2" y="3" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                        <FontString name="$parentRightText" inherits="GameFontHighlightSmall" text="100%">
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-2" y="3" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                        <Scripts>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                        <ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
                                <Size>
                                        <AbsDimension x="32" y="32" />
                                </Size>
                        </ThumbTexture>
                </Slider>

<!-- Non BG Config Frame -->
<Frame name="BGBuddy_ConfigPanel_Customize_NonBG" inherits="virtual_BGBuddy_ConfigPanel_Customize_BoxTemplate" virtual="true">
        <Layers>
                <Layer level="ARTWORK">
                        <!-- LABELS -->
                        <FontString name="NotQueueLabel" inherits="GameFontNormal" text="Not Queued Settings" hidden="true">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="10" y="10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="QueueLabel" inherits="GameFontNormal" text="Queued Settings" hidden="true">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="10" y="10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<Button name="virtual_BGBuddy_TinyTabButtonTemplate" virtual="true" hidden="true">
        <Size>
            <AbsDimension x="128" y="64"/>
        </Size>
        <HitRectInsets>
                <AbsInset left="15" right="14" top="13" bottom="15"/>
        </HitRectInsets>
        <Scripts>
                <!--OnClick>
                        ToggleSpellBook(this.bookType);
                </OnClick -->
                <!--OnEnter>
                        GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                        GameTooltip:SetText(MicroButtonTooltipText(this:GetText(), this.binding), 1.0,1.0,1.0 );
                </OnEnter -->
                <OnLeave>
                        GameTooltip:Hide();
                </OnLeave>
        </Scripts>
        <NormalText inherits="GameFontNormalSmall">
                <Anchors>
                        <Anchor point="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="3"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </NormalText>
        <HighlightText inherits="GameFontHighlightSmall">
                <Anchors>
                        <Anchor point="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="3"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </HighlightText>
        <DisabledText inherits="GameFontHighlightSmall">
                <Anchors>
                        <Anchor point="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="6"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </DisabledText>
        <NormalTexture file="Interface\SpellBook\UI-SpellBook-Tab-Unselected"/>
        <HighlightTexture file="Interface\SpellBook\UI-SpellbookPanel-Tab-Highlight"/>
</Button>

<!-- START VIRTUAL LEGEND FRAME -->
<Frame name="virtual_BGBuddy_ConfigPanel_Customize_Legend" inherits="virtual_BGBuddy_ConfigPanel_Customize_BoxTemplate" virtual="true">
        <Size>
                <AbsDimension x="330" y="139"/>
        </Size>
        <Layers>
                <Layer level="OVERLAY">
                        <FontString inherits="GameFontNormal" text="Variable Reference">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="9" y="8" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- LEGEND ROW 1 KEYS -->
<Frame name="row1Key" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row1Key1" inherits="GameFontNormalSmall" text="~S">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key2" inherits="GameFontNormalSmall" text="~K">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key3" inherits="GameFontNormalSmall" text="~KB">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key2">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key4" inherits="GameFontNormalSmall" text="~LK">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key3" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key5" inherits="GameFontNormalSmall" text="~D">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key4" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key6" inherits="GameFontNormalSmall" text="~SH">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key5" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>

                        <FontString name="row1Key7" inherits="GameFontNormalSmall" text="~KH">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key6" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key8" inherits="GameFontNormalSmall" text="~BH">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key7" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row1Key9" inherits="GameFontNormalSmall" text="~LKH">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Key8" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- ROW 1 EQUAL SIGNS -->
<Frame name="row1Equals" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row1Equals1" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals2" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals1" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals3" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals2">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals4" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals3">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals5" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals4">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals6" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals7" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals6">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals8" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals7">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row1Equals9" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Equals8">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- ROW 1 LEGEND VALUES -->
<Frame name="row1Value" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true">
        <Layers>
                <Layer level="OVERLAY" >
                        <FontString name="row1Value1" inherits="GameFontNormalSmall" text="Standing">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value2" inherits="GameFontNormalSmall" text="Kills">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value3" inherits="GameFontNormalSmall" text="Killing Blows">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value2">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value4" inherits="GameFontNormalSmall" text="Lifetime Kills">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value3">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value5" inherits="GameFontNormalSmall" text="Deaths">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value4">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value6" inherits="GameFontNormalSmall" text="Total Honor">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value7" inherits="GameFontNormalSmall" text="Kill Honor">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value6">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value8" inherits="GameFontNormalSmall" text="Bonus Honor">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value7">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="row1Value9" inherits="GameFontNormalSmall" text="Last Kill Honor">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row1Value8">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>
<!-- END LEGEND FRAME -->

<!-- ROW 2 KEYS -->
<Frame name="row2Key" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Value8" inherits="GameFontNormalSmall" text="~BG">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- ROW 2 EQUALS -->
<Frame name="row2Equals" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Equals1" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-10" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- ROW 2 VALUES -->
<Frame name="row2Value" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString inherits="GameFontNormalSmall" text="Battleground Name">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-5" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- AV SPECIFIC LEGEND -->
<Frame name="virtual_row2Key_AV" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Value1AV" inherits="GameFontNormalSmall" text="~GYA">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value2AV" inherits="GameFontNormalSmall" text="~GYD">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value1AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value3AV" inherits="GameFontNormalSmall" text="~TA">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value2AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value4AV" inherits="GameFontNormalSmall" text="~TD">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value3AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value5AV" inherits="GameFontNormalSmall" text="~MC">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value4AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value6AV" inherits="GameFontNormalSmall" text="~LDK">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value5AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value7AV" inherits="GameFontNormalSmall" text="~SO">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value6AV">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>
<Frame name="virtual_LegendEquals2_AV" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Equals2" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals3" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals2">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals4" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals3">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals5" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals4">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals6" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals7" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals6">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals8" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals7">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>
<Frame name="virtual_LegendValue2_AV" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="virtual_LegendValue2_AV1" inherits="GameFontNormalSmall" text="Graveyards Assaulted">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV2" inherits="GameFontNormalSmall" text="Graveyards Defended">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV3" inherits="GameFontNormalSmall" text="Towers Assaulted">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV2">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV4" inherits="GameFontNormalSmall" text="Towers Defended">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV3">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV5" inherits="GameFontNormalSmall" text="Mines Captured">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV4">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV6" inherits="GameFontNormalSmall" text="Leaders Killed">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AV7" inherits="GameFontNormalSmall" text="Secondary Objectives">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AV6" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- WSG SPECIFIC LEGEND -->
<Frame name="virtual_row2Key_WSG" parent="virtual_BGBuddy_ConfigPanel_Customize_Legend" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Value1WSG" inherits="GameFontNormalSmall" text="~GYA">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                        <FontString name="row2Value2WSG" inherits="GameFontNormalSmall" text="~GYD">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Value1WSG">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>
</Frame>
<Frame name="virtual_LegendEquals2_WSG" virtual="true" >
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="row2Equals2wsg" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" >
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                        <FontString name="row2Equals3wsg" inherits="GameFontNormalSmall" text="=">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="row2Equals2wsg">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="0.5" b="0.5"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>
<Frame name="virtual_LegendValue2_WSG" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="virtual_LegendValue2_WSG1" inherits="GameFontNormalSmall" text="Flags Captured">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_WSG2" inherits="GameFontNormalSmall" text="Flags Returned">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_WSG1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- AB SPECIFIC LEGEND VALUES -->
<Frame name="virtual_LegendValue2_AB" virtual="true">
        <Layers>
                <Layer level="OVERLAY">
                        <FontString name="virtual_LegendValue2_AB1" inherits="GameFontNormalSmall" text="Bases Assaulted">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                        <FontString name="virtual_LegendValue2_AB2" inherits="GameFontNormalSmall" text="Bases Defended">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="virtual_LegendValue2_AB1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1" g="1" b="1"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<!-- START: Main Frame -->
<!-- START: Main Frame -->
<!-- START: Main Frame -->
<!-- START: Main Frame -->
<!-- START: Main Frame -->
<Frame name="BGBuddy_MainFrame">
        <Scripts>
                <OnLoad>BGBuddy_OnLoad();</OnLoad>
                <OnEvent>BGBuddy_OnEvent();</OnEvent>
                <OnUpdate>BGBuddy_OnUpdate();</OnUpdate>
        </Scripts>
</Frame>
<!-- END: Main Frame -->

<!-- START: Standard Frame -->
<Frame name="BGBuddy_StandardFrame" parent="UIParent" movable="true" enableMouse="true" hidden="true"> 
        <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                <EdgeSize>
                        <AbsValue val="16"/>
                </EdgeSize>
                <BackgroundInsets>
                        <AbsInset left="5" right="5" top="5" bottom="5"/>
                </BackgroundInsets>
        </Backdrop>
        <Size>
                <AbsDimension x="200" y="57"/>
        </Size>
        <Anchors>
                <Anchor point="TOPLEFT">
                        <Offset>
                                <AbsDimension x="50" y="-100"/>
                        </Offset>
                </Anchor>
        </Anchors>
</Frame>
<Frame name="BGBuddy_OverlayFrame" parent="BGBuddy_StandardFrame" enableMouse="true" moveable="true" >
        <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_StandardFrame">
                        <AbsDimension x="0" y="0" />
                </Anchor>
                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGBuddy_StandardFrame">
                        <AbsDimension x="0" y="0" />
                </Anchor>
        </Anchors>
        <Scripts>
                <OnLoad>
                        this:Raise();
                </OnLoad>
                <OnMouseDown>
                        BGBuddy_OnMouseDown(arg1);
                </OnMouseDown>
                <OnMouseUp>
                        BGBuddy_OnMouseUp(arg1);
                </OnMouseUp>
                <OnEnter>
                        BGBuddy_OnEnter();
                </OnEnter>
                <OnLeave>
                        GameTooltip:Hide();
                </OnLeave>
        </Scripts>
        <Frames>
                <Button name="BGBuddy_OverlayFrame_SwitchButton" inherits="OptionsButtonTemplate" hidden="true" text="Change Instance">
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="BGBuddy_OverlayFrame">
                                        <Offset>
                                                <AbsDimension x="0" y="13" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Size>
                                <AbsDimension x="145" y="20"/>
                        </Size>
                        <Scripts>
                                <OnClick>
                                        PlaySound("gsTitleOptionOK");
                                        ShowBattlefieldList();
                                </OnClick>
                        </Scripts>
                </Button>
                <Button name="BGBuddy_OverlayFrame_LeaveButton" inherits="OptionsButtonTemplate" hidden="true" text="X">
                        <Anchors>
                                <Anchor point="RIGHT" relativePoint="TOPRIGHT" relativeTo="BGBuddy_OverlayFrame">
                                        <Offset>
                                                <AbsDimension x="-3" y="-3" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Size>
                                <AbsDimension x="14" y="14"/>
                        </Size>
                        <Scripts>
                                <OnClick>
                                        PlaySound("gsTitleOptionOK");
                                        AcceptBattlefieldPort();
                                </OnClick>
                        </Scripts>
                </Button>
                <Frame name="BGBuddy_ScoreFrame" parent="BGBuddy_OverlayFrame" movable="true" enableMouse="true" hidden="true"> 
                        <Size>
                                <AbsDimension x="20" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPRIGHT" relativeTo="BGBuddy_OverlayFrame">
                                        <Offset>
                                                <AbsDimension x="-5" y="-7"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>

                        <Frames>
                                <Button name="BGBuddy_ScoreIcon">
                                        <Size>
                                                <AbsDimension x="18" y="18"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="BGBuddy_OverlayFrame">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Layers>
                                                <Layer level="BACKGROUND">
                                                        <Texture name="MiniMapBattlefieldIcon" file="Interface\Minimap\UI-Minimap-ZoomInButton-Up">
                                                                <Size>
                                                                        <AbsDimension x="18" y="18"/>
                                                                </Size>
                                                                <Anchors>
                                                                        <Anchor point="CENTER">
                                                                                <Offset>
                                                                                        <AbsDimension x="-1" y="0"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                        </Texture>
                                                </Layer>
                                        </Layers>
                                        <Frames>
                                                <Frame name="BGBuddy_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
                                                        <Anchor point="TOPLEFT" relativeTo="BGBuddy_OverlayFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="-5" y="-7"/>
                                                                </Offset>
                                                        </Anchor>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        BGBuddy_DropDown_OnLoad();
                                                                </OnLoad>
                                                        </Scripts>
                                                </Frame>
                                        </Frames>
                                        <Scripts>
                                                <OnLoad>
                                                        this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
                                                </OnLoad>
                                                <OnClick>
                                                        PlaySound("gsTitleOptionOK");
                                                        if ( BGBuddy_StandardFrame.status == "active") then
                                                                if ( arg1 == "RightButton" ) then
                                                                        ToggleBattlefieldMinimap();
                                                                else
                                                                        ToggleWorldStateScoreFrame();
                                                                end
                                                        elseif ( BGBuddy_StandardFrame.status == "confirm") then
                                                                ToggleDropDownMenu(1, nil, BGBuddy_DropDown, "BGBuddy_ScoreIcon", -113, 27);
                                                        else
                                                                ToggleDropDownMenu(1, nil, BGBuddy_DropDown, "BGBuddy_ScoreIcon", -129, 27);
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        BGBuddy_OnEnterScoreFrame();
                                                </OnEnter>
                                                <OnLeave>
                                                        GameTooltip:Hide();
                                                </OnLeave>
                                        </Scripts>
                                        <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
                                </Button>
                                <!-- enter button -->
                                <Button name="BGBuddy_OverlayFrame_EnterButton" inherits="OptionsButtonTemplate" parent="BGBuddy_OverlayFrame" text="Enter Battle">
                                        <Size>
                                                <AbsDimension x="110" y="25"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="BGBuddy_OverlayFrame">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnClick>
                                                        PlaySound("gsTitleOptionOK");
                                                        BattlefieldFrame_EnterBattlefield();
                                                </OnClick>
                                        </Scripts>
                                </Button>
                        </Frames>
                </Frame>
        </Frames>
</Frame>

<Frame name="BGBuddy_RankFrame" hidden="false" parent="BGBuddy_StandardFrame">
        <Size>
                <AbsDimension x="16" y="16"/>
        </Size>
        <Anchors>
                <Anchor point="TOPLEFT" relativeTo="BGBuddy_StandardFrame">
                        <Offset>
                                <AbsDimension x="7" y="-7"/>
                        </Offset>
                </Anchor>
        </Anchors>
        <Layers>
                <Layer level="BACKGROUND">
                        <Texture name="$parentIcon">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                        </Texture>
                        <FontString name="BGBuddy_RankName" font="Fonts\skurri.ttf" text="Current Rank" virtual="true">
                                <FontHeight>
                                        <AbsValue val="14"/>
                                </FontHeight>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="BGBuddy_RankFrame">
                                                <Offset>
                                                        <AbsDimension x="18" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="0.5" g="1.0" b="1.0"/>
                        </FontString>
                </Layer>
        </Layers>
</Frame>

<Frame name="BGBuddy_KillFrame" hidden="false" parent="BGBuddy_StandardFrame">
        <Size>
                <AbsDimension x="200" y="20"/>
        </Size>
        <Anchors>
                <Anchor point="BOTTOMLEFT" relativeTo="BGBuddy_RankFrame" relativePoint="BOTTOMLEFT">
                        <Offset>
                                <AbsDimension x="0" y="-3"/>
                        </Offset>
                </Anchor>
        </Anchors>
        <Layers>
                <Layer level="BACKGROUND">
                        <FontString name="BGBuddy_Line1" inherits="GameFontNormalSmall" text="Line1" justifyH="LEFT">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="BGBuddy_KillFrame">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Color r="1.0" g="1.0" b="1.0"/>
                        </FontString>
                </Layer>
        </Layers>
        <Scripts>
                <OnShow>
                        if ( BGBuddy_SavedVars["config"]["displayRank"] == 1 ) then
                                this:SetPoint("TOPLEFT", "BGBuddy_RankFrame", "BOTTOMLEFT", 0, -3);
                        else
                                this:SetPoint("TOPLEFT", "BGBuddy_RankFrame", "TOPLEFT", 0, 0);
                        end
                </OnShow>
        </Scripts> 
</Frame>

<!-- Battleground Page -->
<Frame name="virtual_BGBuddy_ConfigPanel_CustomizeBG" parent="BGBuddy_ConfigPanel_CustomizeDisplay" virtual="true" hidden="true">
        <Scripts>
                <OnShow>
                        BGBuddy_ConfigPanel_CustomizeBG_UpperFrame:Show();
                        BGBuddy_ConfigPanel_CustomizeBG_Legend:Show();
                </OnShow>
                <OnHide>
                        BGBuddy_ConfigPanel_CustomizeBG_UpperFrame:Hide();
                        BGBuddy_ConfigPanel_CustomizeBG_Legend:Hide();
                </OnHide>
        </Scripts>
        <Frames>
                <Frame name="BGBuddy_ConfigPanel_CustomizeBG_UpperFrame" parent="BGBuddy_ConfigPanel_CustomizeDisplay" inherits="BGBuddy_ConfigPanel_Customize_BG" hidden="true">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="15" y="-70" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </Frame>
                <Frame name="BGBuddy_ConfigPanel_CustomizeBG_Legend" parent="BGBuddy_ConfigPanel_CustomizeDisplay" inherits="virtual_BGBuddy_ConfigPanel_Customize_Legend" hidden="true">
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="15" y="-215" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </Frame>
                <!-- LEGEND ROW 1 INSTANCE -->
                <Frame name="LegendKeys1" inherits="row1Key"  parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Size>
                                <AbsDimension x="50" y="139" />
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                                        <Offset>
                                                <AbsDimension x="15" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </Frame>
                <Frame name="LegendEqual1" inherits="row1Equals"  parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Size>
                                <AbsDimension x="10" y="139" />
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="LegendKeys1">
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        </Frame>
                <Frame name="LegendValues1" inherits="row1Value"  parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Size>
                                <AbsDimension x="50" y="139" />
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="LegendEqual1">
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </Frame>
                <!-- LEGEND ROW 2 INSTANCE -->
                <Frame name="LegendKeys2" inherits="row2Key" parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Anchors>
                                <Anchor point="TOP" relativePoint="TOP" relativeTo="BGBuddy_ConfigPanel_CustomizeBG_Legend" >
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                                <Anchor point="LEFT" relativePoint="CENTER" relativeTo="BGBuddy_ConfigPanel_CustomizeBG_Legend" >
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGBuddy_ConfigPanel_CustomizeBG_Legend" >
                                        <Offset>
                                                <AbsDimension x="-125" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Frames>
                                <Frame name="LegendKeys2_AV" inherits="virtual_row2Key_AV" parent="LegendKeys2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                                <Frame name="LegendKeys2_WSG" inherits="virtual_row2Key_WSG" parent="LegendKeys2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                        </Frames>
                </Frame>
                
                <Frame name="LegendEqual2" inherits="row2Equals"  parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Size>
                                <AbsDimension x="10" y="139" />
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="LegendKeys2">
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Frames>
                                <Frame name="LegendEquals2_AV" inherits="virtual_LegendEquals2_AV" parent="LegendEqual2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                                <Frame name="LegendEquals2_WSG" inherits="virtual_LegendEquals2_WSG" parent="LegendEqual2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                        </Frames>
                </Frame>
                
                <Frame name="LegendValues2" inherits="row2Value"  parent="BGBuddy_ConfigPanel_CustomizeBG_Legend">
                        <Size>
                                <AbsDimension x="50" y="139" />
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="LegendEqual2">
                                        <Offset>
                                                <AbsDimension x="0" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Frames>
                                <Frame name="LegendValue2_AV" inherits="virtual_LegendValue2_AV" parent="LegendValues2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                                <Frame name="LegendValue2_WSG" inherits="virtual_LegendValue2_WSG" parent="LegendValues2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                                <Frame name="LegendValue2_AB" inherits="virtual_LegendValue2_AB" parent="LegendValues2" hidden="true">
                                        <Size>
                                                <RelDimension x="1.0" y="1.0" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                </Anchor>
                                        </Anchors>
                                </Frame>
                        </Frames>
                </Frame>
                        
                <!-- START TAB BUTTONS -->
                <Button name="BGBuddy_ConfigPanel_CustomizeDisplayTab1" inherits="virtual_BGBuddyCustomizeFrameTabTemplate" id="1" text="Alterac Valley">
                        <Size>
                                <AbsDimension x="105" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="5" y="-6" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGBuddy_Config_SetCustomDisplay();
                                        BGBuddy_Config_ChangeCustomDisplay("AV");
                                        BGBuddy_Config_SetButtonState(1);
                                </OnClick>
                        </Scripts>
                </Button>
                <Button name="BGBuddy_ConfigPanel_CustomizeDisplayTab2" inherits="virtual_BGBuddyCustomizeFrameTabTemplate"  id="2" text="Warsong Gulch">
                        <Size>
                                <AbsDimension x="105" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="165" y="-6" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGBuddy_Config_SetCustomDisplay();
                                        BGBuddy_Config_ChangeCustomDisplay("WSG");
                                        BGBuddy_Config_SetButtonState(2);
                                </OnClick>
                        </Scripts>
                </Button>
                <Button name="BGBuddy_ConfigPanel_CustomizeDisplayTab3" inherits="virtual_BGBuddyCustomizeFrameTabTemplate" id="3" text="Arathi Basin">
                        <Size>
                                <AbsDimension x="105" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="RIGHT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="315" y="-6" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGBuddy_Config_SetCustomDisplay();
                                        BGBuddy_Config_ChangeCustomDisplay("AB");
                                        BGBuddy_Config_SetButtonState(3);
                                </OnClick>
                        </Scripts>
                </Button>
                <!-- END TAB BUTTONS -->
        </Frames>
</Frame>

<!-- CheckButton template -->
<CheckButton name="BGBuddy_ConfigPanel_CheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
        <HitRectInsets>
                <AbsInset left="0" right="-120" top="0" bottom="0"/>
        </HitRectInsets>
        <Size>
                <AbsDimension x="24" y="24"/>
        </Size>
        <Scripts>
                <OnClick>
                        if ( this:GetChecked() ) then
                                PlaySound("igMainMenuOptionCheckBoxOff");
                        else
                                PlaySound("igMainMenuOptionCheckBoxOn");
                        end
                        BGBuddy_Config_SetEnabled();
                </OnClick>
                <OnLeave>
                        GameTooltip:Hide();
                </OnLeave>
        </Scripts>
</CheckButton>

<!-- GENERAL PAGE -->
<Frame name="virtual_BGBuddy_ConfigPanel_CustomizeGeneral" parent="BGBuddy_ConfigPanel_CustomizeDisplay" virtual="true" hidden="true">
        <Scripts>
                <OnShow>
                        virtual_BGBuddy_ConfigPanel_CustomizeGeneral_Box:Show();
                        BGBuddy_ConfigPanel_AboutBox:Show();
                </OnShow>
                <OnHide>
                        virtual_BGBuddy_ConfigPanel_CustomizeGeneral_Box:Hide();
                        BGBuddy_ConfigPanel_AboutBox:Hide();
                </OnHide>
        </Scripts>
        <Frames>
                <Frame name="virtual_BGBuddy_ConfigPanel_CustomizeGeneral_Box" parent="BGBuddy_ConfigPanel_CustomizeDisplay" inherits="virtual_BGBuddy_ConfigPanel_Customize_BoxTemplate" hidden="true">
                        <Size>
                                <AbsDimension x="330" y="180"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="15" y="-70" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Frames>
                                <CheckButton name="BGBuddy_ConfigPanel_EnableBGBuddy" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-85" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["isEnabled"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["isEnabled"] = 1;
                                                                BGBuddy_Config_SetEnabled();
                                                        else
                                                                BGBuddy_SavedVars["config"]["isEnabled"] = 0;
                                                                BGBuddy_Config_SetEnabled();
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetText("Enable or disable BGBuddy. The options menu is always available by typing '/bgbuddy'.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText0" inherits="GameFontNormalSmall" text="Enable BGBuddy">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_EnableBGBuddy">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_Lock" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_EnableBGBuddy">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["isLocked"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["isLocked"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["isLocked"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Lock the BGBuddy window so it cannot be moved.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText1" inherits="GameFontNormalSmall" text="Lock BGBuddy Window">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_Lock">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_AlwaysShow" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_Lock">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["isAlwaysVisible"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["isAlwaysVisible"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["isAlwaysVisible"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Show BGBuddy when you are outside of Battlegrounds.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText2" inherits="GameFontNormalSmall" text="Always Show BGBuddy">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_AlwaysShow">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_AutoJoin" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_AlwaysShow">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["AutoJoin"] == 1 ) then
                                                                this:SetChecked(1);
                                                                BGBuddy_ConfigPanel_Customize_InstantAutoJoin:Enable();
                                                        else
                                                                this:SetChecked(0);
                                                                BGBuddy_ConfigPanel_Customize_InstantAutoJoin:Disable();
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["AutoJoin"] = 1;
                                                                BGBuddy_ConfigPanel_Customize_InstantAutoJoin:Enable();
                                                        else
                                                                BGBuddy_SavedVars["config"]["AutoJoin"] = 0;
                                                                BGBuddy_ConfigPanel_Customize_InstantAutoJoin:Disable();
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Automatically enter the Battleground as soon as it becomes available.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText4" inherits="GameFontNormalSmall" text="Enable Auto-Join">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_AutoJoin">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_Customize_InstantAutoJoin" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_AutoJoin">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["delayedAutoJoin"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["delayedAutoJoin"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["delayedAutoJoin"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetText("When enabled, join Battlegrounds as soon as they are ready. When disabled, battlegrounds are joined 2 seconds before the invite expires.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText0" inherits="GameFontNormalSmall" text="Delayed Auto-Join">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_Customize_InstantAutoJoin">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_AlwaysShowHonor" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_Customize_InstantAutoJoin">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["alwaysShowHonor"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["alwaysShowHonor"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["alwaysShowHonor"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Show or Hide total estimated session honor while in the Queued and Not-Queued state.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText0" inherits="GameFontNormalSmall" text="Always Show Honor">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_AlwaysShowHonor">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_PlaySound" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_AlwaysShowHonor">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["playSound"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["playSound"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["playSound"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Play a sound once the Battleground becomes available.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText3" inherits="GameFontNormalSmall" text="Play Sound When Ready">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_PlaySound">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_HideIcon" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_PlaySound">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["hideBGIcon"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["hideBGIcon"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["hideBGIcon"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Remove the battleground icon from the minimap.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText7" inherits="GameFontNormalSmall" text="Hide Minimap BG Icon">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_HideIcon">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_ShowSeconds" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_EnableBGBuddy">
                                                        <Offset>
                                                                <AbsDimension x="140" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["queued"]["showQueuedSeconds"] == nil ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["queued"]["showQueuedSeconds"] = nil;
                                                        else
                                                                BGBuddy_SavedVars["queued"]["showQueuedSeconds"] = 1;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetText("Toggle the seconds field on the queued display.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText0" inherits="GameFontNormalSmall" text="Show Queued Seconds">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_ShowSeconds">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_Customize_DisplayRank" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_ShowSeconds">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["displayRank"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["displayRank"] = 1;
                                                                BGBuddy_KillFrame:SetPoint("TOPLEFT", "BGBuddy_RankFrame", "BOTTOMLEFT", 0, -2);
                                                        else
                                                                BGBuddy_SavedVars["config"]["displayRank"] = 0;
                                                                BGBuddy_KillFrame:SetPoint("TOPLEFT", "BGBuddy_RankFrame", "TOPLEFT", 0, 0);
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetText("Toggle displaying of rank title and icon.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText0" inherits="GameFontNormalSmall" text="Show Rank">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_Customize_DisplayRank">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_AutoRelease" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_Customize_DisplayRank">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["AutoRelease"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["AutoRelease"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["AutoRelease"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Automatically release from your corpse when you die.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText6" inherits="GameFontNormalSmall" text="Enable Auto-Release">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_AutoRelease">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>   
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                                <CheckButton name="BGBuddy_ConfigPanel_AutoLeaveBG" inherits="BGBuddy_ConfigPanel_CheckTemplate" virtual="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGBuddy_ConfigPanel_AutoRelease">
                                                        <Offset>
                                                                <AbsDimension x="0" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        if ( BGBuddy_SavedVars["config"]["autoLeaveBG"] == 1 ) then
                                                                this:SetChecked(1);
                                                        else
                                                                this:SetChecked(0);
                                                        end
                                                </OnShow>
                                                <OnClick>
                                                        if ( this:GetChecked() == 1 ) then
                                                                BGBuddy_SavedVars["config"]["autoLeaveBG"] = 1;
                                                        else
                                                                BGBuddy_SavedVars["config"]["autoLeaveBG"] = 0;
                                                        end
                                                </OnClick>
                                                <OnEnter>
                                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                                        GameTooltip:SetText("Automatically leave completed battlegrounds.", 1.0, 1.0, 1.0, 1.0, 1);
                                                </OnEnter>
                                        </Scripts>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString name="BGBuddy_ConfigPanel_FrameText6" inherits="GameFontNormalSmall" text="Enable Auto-Leave BG">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="BGBuddy_ConfigPanel_AutoLeaveBG">
                                                                                <Offset>
                                                                                        <AbsDimension x="5" y="0" />
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Color r="1.0" g="0.82" b="0"/>
                                                        </FontString>   
                                                </Layer>
                                        </Layers>
                                </CheckButton>
                        </Frames>
                </Frame>
                <Frame name="BGBuddy_ConfigPanel_AboutBox" parent="BGBuddy_ConfigPanel_CustomizeDisplay" inherits="virtual_BGBuddy_ConfigPanel_Customize_BoxTemplate" hidden="true">
                        <Size>
                                <AbsDimension x="135" y="40"/>
                        </Size>
                        <Anchors>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="-20" y="20" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="ARTWORK">
                                        <FontString name="BGBuddy_ConfigPanel_AboutTitle" inherits="GameFontNormalSmall">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                </Frame>
                <Slider name="BGBuddy_ConfigPanel_Slider1" inherits="virtual_BGBuddy_SliderTemplate" minValue="0" maxvalue="100" valueStep="1" hidden="false">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="20" y="-280" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnLoad>
                                        getglobal(this:GetName().."Heading"):SetText("Background Transparency");
                                        getglobal(this:GetName().."LeftText"):SetText("0%");
                                        getglobal(this:GetName().."RightText"):SetText("100%");
                                </OnLoad>
                                <OnShow>
                                        getglobal(this:GetName().."ValueText"):SetText(BGBuddy_SavedVars["config"]["backgroundAlpha"].."%");
                                        getglobal(this:GetName()):SetValue(BGBuddy_SavedVars["config"]["backgroundAlpha"]);
                                </OnShow>
                                <OnValueChanged>
                                        BGBuddy_Config_SetBackgroundAlpha();
                                </OnValueChanged>
                                <OnEnter>
                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                        GameTooltip:SetText("Adjust transparency of the BGBuddy background.", 1.0, 1.0, 1.0, 1.0, 1);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                </Slider>

                <Slider name="BGBuddy_ConfigPanel_Slider2" inherits="virtual_BGBuddy_SliderTemplate" minValue="0" maxvalue="100" valueStep="1" hidden="false">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="20" y="-335" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnLoad>
                                        getglobal(this:GetName().."Heading"):SetText("Border Transparency");
                                        getglobal(this:GetName().."LeftText"):SetText("0%");
                                        getglobal(this:GetName().."RightText"):SetText("100%");
                                </OnLoad>
                                <OnShow>
                                        getglobal(this:GetName().."ValueText"):SetText(BGBuddy_SavedVars["config"]["borderAlpha"].."%");
                                        getglobal(this:GetName()):SetValue(BGBuddy_SavedVars["config"]["borderAlpha"]);
                                </OnShow>
                                <OnValueChanged>
                                        BGBuddy_Config_SetBorderAlpha();
                                </OnValueChanged>
                                <OnEnter>
                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                        GameTooltip:SetText("Adjust transparency of the BGBuddy border.", 1.0, 1.0, 1.0, 1.0, 1);
                                </OnEnter>
                        </Scripts>
                </Slider>


                <Slider name="BGBuddy_ConfigPanel_Slider3" inherits="virtual_BGBuddy_SliderTemplate" minValue="-50" maxvalue="50" valueStep="1" hidden="false">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="200" y="-280" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnLoad>
                                        getglobal(this:GetName().."Heading"):SetText("Scale");
                                        getglobal(this:GetName().."LeftText"):SetText("50%");
                                        getglobal(this:GetName().."RightText"):SetText("150%");
                                </OnLoad>
                                <OnShow>
                                        getglobal(this:GetName().."ValueText"):SetText((100+(math.floor(BGBuddy_SavedVars["config"]["uiScale"])).."%"));
                                        getglobal(this:GetName()):SetValue(BGBuddy_SavedVars["config"]["uiScale"]);
                                </OnShow>
                                <OnValueChanged>
                                        BGBuddy_Config_SetUiScale();
                                </OnValueChanged>
                                <OnEnter>
                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                        GameTooltip:SetText("Adjust the BGBuddy UI scale.", 1.0, 1.0, 1.0, 1.0, 1);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                </Slider>
        </Frames>
</Frame>

<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<!-- CUSTOMIZE PANE -->
<Frame name="BGBuddy_ConfigPanel_CustomizeDisplay" toplevel="true" movable="false" enableMouse="true" hidden="true" parent="UIParent">
        <Scripts>
                <OnShow>
                        BGBuddy_ConfigPanel_CustomizeDisplay.open = 1;
                </OnShow>
                <OnEscapePressed>
                        BGBuddy_ConfigPanel_CustomizeDisplay.open = 0;
                        PlaySound("gsTitleOptionOK");
                        HideUIPanel(this);
                </OnEscapePressed>
                <OnLoad>
                        UIPanelWindows['BGBuddy_ConfigPanel_CustomizeDisplay'] = {area = 'center', pushable = 0};
                </OnLoad>
        </Scripts>
        <Size>
                <AbsDimension x="360" y="370" />
        </Size>
        <Anchors>
                <Anchor point="CENTER" />
        </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" />  
                        <Size>
                                <AbsDimension x="128" y="17" />
                        </Size>
                </BackgroundInsets>
                <TileSize>
                        <AbsValue val="32" />
                </TileSize>
                <EdgeSize>
                        <AbsValue val="32" />
                </EdgeSize>
        </Backdrop>
        <Layers>
                <Layer level="ARTWORK">
                        <Texture name="BGBuddy_ConfigPanelCustomizeDisplayTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
                                <Size>
                                        <AbsDimension x="350" y="64" />
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="12" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Texture>
                        <FontString inherits="GameFontNormal" text="Customize Display">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </FontString>
                </Layer>
        </Layers>

        <Frames>
                <Frame name="BGBuddy_ConfigPanel_CustomizeDropdown" inherits="UIDropDownMenuTemplate" id="1">
                        <Anchors>
                                <Anchor point="LEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="3" y="-40"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="OVERLAY">
                                        <FontString inherits="GameFontNormal" >
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="5" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                        <Scripts>
                                <OnLoad>
                                        BGBuddy_ConfigPanel_CustomizeDropdown_OnLoad();
                                </OnLoad>
                                <OnShow>
                                        BGBuddy_ShowConfigPanel(2, "gen");
                                        UIDropDownMenu_SetText("General");
                                </OnShow>
                        </Scripts>
                </Frame>

                <Button name="BGBuddy_ConfigPanel_CustomizeButtonClose" inherits="UIPanelCloseButton">
                        <Anchors>
                                <Anchor point="CENTER" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay" relativePoint="TOPRIGHT">
                                        <Offset>
                                                <AbsDimension x="-25" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnLoad>
                                         this:SetFrameLevel(this:GetFrameLevel() + 4);
                                </OnLoad>
                                <OnClick>
                                        BGBuddy_ConfigPanel_CustomizeDisplay.open = 0;
                                        BGBuddy_Config_SetCustomDisplay();
                                        PlaySound("gsTitleOptionOK");
                                        HideUIPanel(BGBuddy_ConfigPanel_CustomizeDisplay);
                                </OnClick>
                        </Scripts>
                </Button>
                
                <!-- BG Customize Frame Wrapper -->
                <Frame name="BGBuddy_ConfigPanel_CustomizeBG" inherits="virtual_BGBuddy_ConfigPanel_CustomizeBG" hidden="true" >
                        <Anchors>
                                <Anchor point="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="-25" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <OnLoad>
                                this:SetLevel(this:GetLevel()+1)
                        </OnLoad>
                </Frame>

                <!-- Non BG Customize Frame Wrapper -->
                <Frame name="BGBuddy_ConfigPanel_CustomizeNonBG" inherits="virtual_BGBuddy_ConfigPanel_CustomizeNonBG" hidden="true" >
                        <Anchors>
                                <Anchor point="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="-25" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <OnLoad>
                                this:SetLevel(this:GetLevel()+1)
                        </OnLoad>
                </Frame>

                <!-- General Frame Wrapper -->
                <Frame name="BGBuddy_ConfigPanel_CustomizeGeneral" inherits="virtual_BGBuddy_ConfigPanel_CustomizeGeneral" hidden="true" >
                        <Anchors>
                                <Anchor point="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay" relativePoint="TOPLEFT">
                                        <Offset>
                                                <AbsDimension x="-25" y="-25"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <OnLoad>
                                this:SetLevel(this:GetLevel()+1)
                        </OnLoad>
                </Frame>
        </Frames>
</Frame>
<!-- END CUSTOMIZE FRAME -->

<!-- CONFIG PANEL -->
<!-- CONFIG PANEL -->
<!-- CONFIG PANEL -->
<!-- CONFIG PANEL -->
<Frame name="BGBuddy_ConfigPanel" >
</Frame>
<!--

                <CheckButton name="BGBuddy_ConfigPanel_Customize_HideDisplay" inherits="UICheckButtonTemplate" virtual="true">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_CustomizeDisplay">
                                        <Offset>
                                                <AbsDimension x="365" y="-235" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Size>
                                <AbsDimension x="24" y="24"/>
                        </Size>
                        <Scripts>
                                <OnShow>
                                        if ( BGBuddy_SavedVars["config"]["hideDisplay"] == 1 ) then
                                                this:SetChecked(1);
                                        else
                                                this:SetChecked(0);
                                        end
                                </OnShow>
                                <OnClick>
                                        if ( this:GetChecked() ) then
                                                PlaySound("igMainMenuOptionCheckBoxOff");
                                        else
                                                PlaySound("igMainMenuOptionCheckBoxOn");
                                        end
                                        BGBuddy_Config_SetVisibility();
                                </OnClick>
                                <OnEnter>
                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                        GameTooltip:SetBackdropColor(0.0, 0.0, 0.5);
                                        GameTooltip:SetText("Hide the BGBuddy window.", 1.0, 1.0, 1.0, 1.0, 1);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                </CheckButton>

                <Frame name="BGBuddy_ConfigPanel_Frame8" parent="BGBuddy_ConfigPanel_Customize_HideDisplay"> 
                        <Anchors>
                                <Anchor point="LEFT" relativeTo="BGBuddy_ConfigPanel_Customize_HideDisplay" relativePoint="LEFT">
                                        <Offset>
                                                <AbsDimension x="20" y="-30" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="BACKGROUND">
                                        <FontString name="BGBuddy_ConfigPanel_FrameText8" inherits="GameFontNormalSmall" text="Hide display">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="BGBuddy_ConfigPanel_Customize_HideDisplay">
                                                                <Offset>
                                                                        <AbsDimension x="25" y="-6" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Color r="1.0" g="0.82" b="0"/>
                                        </FontString>
                                </Layer>
                        </Layers>
                </Frame>
 -->

</Ui>