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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
        <Script file="BGAssist.lua"/>
        <Frame name="BGAssist" enableMouse="false" parent="UIParent" >
                <Scripts>
                        <OnLoad>
                                BGAssist_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                BGAssist_OnEvent(event);
                        </OnEvent>
                        <OnUpdate>
                                BGAssist_OnUpdate(arg1);
                        </OnUpdate>
                </Scripts>
        </Frame>
        <StatusBar name="BGAssist_Timer_Template" inherits="TextStatusBar" hidden="false" virtual="true">
                <Size>
                        <AbsDimension x="120" y="12"/>
                </Size>
                <Scripts>
                        <OnEnter>
                                BGAssist_Timer_SetTooltip();
                        </OnEnter>
                        <OnLeave>
                                BGAssist_Timers.updateTooltip = nil;
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
                <Layers>
                        <Layer level="OVERLAY">
                                <FontString name="$parentText" inherits="TextStatusBarText">
                                        <Anchors>
                                                <Anchor point="CENTER"/>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
        </StatusBar>
        <CheckButton name="BGAssist_Item_Template" inherits="ActionButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="36" y="36"/>
                </Size>
                <Scripts>
                        <OnEnter>
                                BGAssist_Item_SetTooltip();
                        </OnEnter>
                        <OnLeave>
                                this.updateToolTip = nil;
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </CheckButton>
        <Frame name="BGAssist_Timers" toplevel="true" parent="UIParent" enableMouse="true" hidden="true" movable="true">
                <Size>
                        <AbsDimension x="132" y="72"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Scripts>
                        <OnShow>
                                BGAssist_Timers_OnShow();
                        </OnShow>
                        <OnUpdate>
                                BGAssist_Timers_OnUpdate(arg1);
                        </OnUpdate>
                        <OnLeave>
                                this.updateToolTip = nil;
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
                <Frames>
                        <Frame name="$parent_Backdrop" frameStrata="BACKGROUND" setAllPoints="true">
                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="16"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel("1");
                                                this:SetBackdropBorderColor(
                                                        TOOLTIP_DEFAULT_COLOR.r,
                                                        TOOLTIP_DEFAULT_COLOR.g,
                                                        TOOLTIP_DEFAULT_COLOR.b);
                                                this:SetBackdropColor(
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        <Button name="$parent_Title" >
                                <Size>
                                        <AbsDimension x="132" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-4"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Frames>
                                        <Frame name="$parent_Backdrop" setAllPoints="true">
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <BackgroundInsets>
                                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                                        </BackgroundInsets>
                                                        <TileSize>
                                                                <AbsValue val="16"/>
                                                        </TileSize>
                                                        <EdgeSize>
                                                                <AbsValue val="16"/>
                                                        </EdgeSize>
                                                </Backdrop>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetFrameLevel("1");
                                                                this:SetBackdropBorderColor(
                                                                        TOOLTIP_DEFAULT_COLOR.r,
                                                                        TOOLTIP_DEFAULT_COLOR.g,
                                                                        TOOLTIP_DEFAULT_COLOR.b);
                                                                this:SetBackdropColor(
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                </Frames>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString name="$parentText" inherits="GameTooltipTextSmall">
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
                                        </OnLoad>
                                        <OnClick>
                                                BGAssist_TimersTitle_OnClick();
                                        </OnClick>
                                </Scripts>
                        </Button>

                        <Frame name="$parent_Menu" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
                                <Size>
                                        <AbsDimension x="10" y="10"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="-20" y="-10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>

                        <StatusBar name="$parent1" inherits="BGAssist_Timer_Template" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="6" y="-6"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <StatusBar name="$parent2" inherits="BGAssist_Timer_Template" id="2">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent1">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <StatusBar name="$parent3" inherits="BGAssist_Timer_Template" id="3">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent2">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <StatusBar name="$parent4" inherits="BGAssist_Timer_Template" id="4">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent3">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <StatusBar name="$parent5" inherits="BGAssist_Timer_Template" id="5">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent4">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <StatusBar name="$parent6" inherits="BGAssist_Timer_Template" id="6">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent5">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </StatusBar>
                        <CheckButton name="$parent_Icon1" inherits="BGAssist_Item_Template" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-6"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon2" inherits="BGAssist_Item_Template" id="2">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon1"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon3" inherits="BGAssist_Item_Template" id="3">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon2"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon4" inherits="BGAssist_Item_Template" id="4">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon3"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon5" inherits="BGAssist_Item_Template" id="5">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon4"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon6" inherits="BGAssist_Item_Template" id="6">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Icon1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-3"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon7" inherits="BGAssist_Item_Template" id="7">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon6"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon8" inherits="BGAssist_Item_Template" id="8">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon7"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon9" inherits="BGAssist_Item_Template" id="9">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon8"/>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_Icon10" inherits="BGAssist_Item_Template" id="10">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_Icon9"/>
                                </Anchors>
                        </CheckButton>
                </Frames>
        </Frame>
        <Button name="BGAssist_FlagsTemplate" enableMouse="false" virtual="true">
                <Size>
                        <AbsDimension x="75" y="25" />
                </Size>
                <Layers>
                        <Layer level="BACKGROUND"> 
                                <FontString name="$parent_Text" inherits="GameFontNormal" justifyH="LEFT">
                                        <Size>
                                                <AbsDimension x="90" y="25" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT"/>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
                        </OnLoad>
                        <OnClick>
                                BGAssist_Flags_OnClick();
                        </OnClick>
                </Scripts>
        </Button>
        <Frame name="BGAssist_Flags" enableMouse="false" parent="UIParent" hidden="true">
                <Anchors>
                        <Anchor point="TOPLEFT"/>
                </Anchors>
                <Frames>
                        <Button name="$parent_Alliance" inherits="BGAssist_FlagsTemplate">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AlwaysUpFrame1">
                                                <Offset>
                                                        <AbsDimension x="40" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
                                                this.faction = "Alliance";
                                        </OnLoad>
                                </Scripts>
                        </Button>
                        <Button name="$parent_Horde" inherits="BGAssist_FlagsTemplate">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AlwaysUpFrame2">
                                                <Offset>
                                                        <AbsDimension x="40" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
                                                this.faction = "Horde";
                                        </OnLoad>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                        <OnShow>
                                BGAssist_WSGFlags_OnShow();
                        </OnShow>
                </Scripts>
        </Frame>
        <Frame name="BGAssist_TargetTemplate" frameStrata="LOW" virtual="true" hidden="false">
                <Size>
                        <AbsDimension x="90" y="40"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parent_Class" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="4" y="-4"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.375" top="0" bottom="0.75"/>
                                </Texture>
                        </Layer>
                        <Layer level="OVERLAY">
                                <FontString name="$parent_Text" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="GameFontNormalSmall" text="">
                                        <Size>
                                                <AbsDimension x="55" y="16"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="32" y="-7"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <Texture name="$parent_Background_Health" file="Interface\TargetingFrame\UI-StatusBar">
                                        <Size>
                                                <AbsDimension x="70" y="6"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="10" y="-22"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                getglobal(this:GetName() .. "_Background_Health"):SetVertexColor(0, 1, 0, 0.2);
                        </OnLoad>
                </Scripts>
                <Frames>
                        <Frame name="$parent_Backdrop" frameStrata="BACKGROUND" setAllPoints="true">
                                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="16"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel("1");
                                                this:SetBackdropBorderColor(
                                                        TOOLTIP_DEFAULT_COLOR.r,
                                                        TOOLTIP_DEFAULT_COLOR.g,
                                                        TOOLTIP_DEFAULT_COLOR.b);
                                                this:SetBackdropColor(
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        <StatusBar name="$parent_Bar_Health" inherits="TextStatusBar">
                                <Size>
                                        <AbsDimension x="70" y="6"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="10" y="-22"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetMinMaxValues(0, 100);
                                                this:SetValue(100);
                                        </OnLoad>
                                </Scripts>
                                <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
                                <BarColor r="0" g="1" b="0"/>
                        </StatusBar>
                        <Button name="$parent_Clickable" hidden="false" frameStrata="HIGH">
                                <Size>
                                        <AbsDimension x="90" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks('LeftButtonDown', 'RightButtonDown', 'MiddleButtonDown');
                                        </OnLoad>
                                        <OnClick>
                                                BGAssist_Target_OnClick(arg1);
                                        </OnClick>
                                </Scripts>
                        </Button>
                </Frames>
        </Frame>
        <Frame name="BGAssist_Targets" toplevel="true" parent="UIParent" enableMouse="true" hidden="true" movable="true">
                <Size>
                        <AbsDimension x="90" y="22"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Scripts>
                        <OnShow>
                                BGAssist_Targets_OnShow();
                        </OnShow>
                        <OnUpdate>
                                BGAssist_Targets_OnUpdate(arg1);
                        </OnUpdate>
                </Scripts>
                <Frames>
                        <Button name="$parent_Title" >
                                <Size>
                                        <AbsDimension x="90" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-4"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Frames>
                                        <Frame name="$parent_Backdrop" setAllPoints="true">
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <BackgroundInsets>
                                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                                        </BackgroundInsets>
                                                        <TileSize>
                                                                <AbsValue val="16"/>
                                                        </TileSize>
                                                        <EdgeSize>
                                                                <AbsValue val="16"/>
                                                        </EdgeSize>
                                                </Backdrop>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetFrameLevel("1");
                                                                this:SetBackdropBorderColor(
                                                                        TOOLTIP_DEFAULT_COLOR.r,
                                                                        TOOLTIP_DEFAULT_COLOR.g,
                                                                        TOOLTIP_DEFAULT_COLOR.b);
                                                                this:SetBackdropColor(
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
                                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                </Frames>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString name="$parentText" inherits="GameTooltipTextSmall">
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
                                        </OnLoad>
                                        <OnClick>
                                                BGAssist_TargetsTitle_OnClick();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Frame name="$parent_Menu" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
                                <Size>
                                        <AbsDimension x="10" y="10"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="-20" y="-10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent1" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent2" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent1" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent3" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent2" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent4" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent3" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent5" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent4" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent6" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent5" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent7" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent6" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent8" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent7" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent9" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent8" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="$parent10" inherits="BGAssist_TargetTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parent9" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                </Frames>
        </Frame>
        <Frame name="BGAssist_ClassBreakdownTemplate" virtual="true">
                <Size>
                        <AbsDimension x="150" y="200"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parent1" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="4" y="-4"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.25" top="0" bottom="0.25"/>
                                </Texture>
                                <Texture name="$parent2" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent1" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.25" right="0.49609375" top="0" bottom="0.25"/>
                                </Texture>
                                <Texture name="$parent3" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent2" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.49609375" right="0.7421875" top="0" bottom="0.25"/>
                                </Texture>
                                <Texture name="$parent4" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent3" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.7421875" right="0.98828125" top="0" bottom="0.25"/>
                                </Texture>
                                <Texture name="$parent5" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent4" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0" right="0.25" top="0.25" bottom="0.5"/>
                                </Texture>
                                <Texture name="$parent6" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent5" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.49609375" right="0.7421875" top="0.25" bottom="0.5"/>
                                </Texture>
                                <Texture name="$parent7" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent6" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.7421875" right="0.98828125" top="0.25" bottom="0.5"/>
                                </Texture>
                                <Texture name="$parent8" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                        <Size>
                                                <AbsDimension x="24" y="24"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parent7" relativePoint="BOTTOM"/>
                                        </Anchors>
                                        <TexCoords left="0.25" right="0.49609375" top="0.25" bottom="0.5"/>
                                </Texture>
                        </Layer>
                        <Layer level="OVERLAY">
                                <FontString name="$parent1Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent1" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent2Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent2" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent3Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent3" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent4Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent4" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent5Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent5" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent6Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent6" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent7Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent7" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parent8Text" inherits="GameFontHighlight">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent8" relativePoint="RIGHT"/>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Frame name="$parent_Backdrop" frameStrata="BACKGROUND" setAllPoints="true">
                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="16"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel("1");
                                                this:SetBackdropBorderColor(
                                                        TOOLTIP_DEFAULT_COLOR.r,
                                                        TOOLTIP_DEFAULT_COLOR.g,
                                                        TOOLTIP_DEFAULT_COLOR.b);
                                                this:SetBackdropColor(
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
                                                        TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                </Frames>
        </Frame>
        <Frame name="WorldStateScoreFrame_Alliance" inherits="BGAssist_ClassBreakdownTemplate" parent="WorldStateScoreFrame">
                <Anchors>
                        <Anchor point="RIGHT" relativePoint="LEFT">
                                <Offset>
                                        <AbsDimension x="15" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                WorldStateScoreFrame_Alliance1:ClearAllPoints();
                                WorldStateScoreFrame_Alliance1:SetPoint("TOPRIGHT","WorldStateScoreFrame_Alliance","TOPRIGHT",-4,-4);
                                WorldStateScoreFrame_Alliance8:SetTexCoord(0,0.25,0.5,0.75);

                                local i;
                                for i = 1, 8, 1 do
                                        getglobal("WorldStateScoreFrame_Alliance"..i.."Text"):ClearAllPoints();
                                        getglobal("WorldStateScoreFrame_Alliance"..i.."Text"):SetPoint("RIGHT","WorldStateScoreFrame_Alliance"..i,"LEFT",0,0);
                                end
                        </OnLoad>
                </Scripts>
        </Frame>
        <Frame name="WorldStateScoreFrame_Horde" inherits="BGAssist_ClassBreakdownTemplate" parent="WorldStateScoreFrame">
                <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT">
                                <Offset>
                                        <AbsDimension x="-120" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </Frame>
        <Button name="BGAssist_AutoInvite" inherits="UIPanelButtonTemplate" parent="WorldStateScoreFrame" text="Invite All">
                <Size>
                        <AbsDimension x="131" y="21"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOM" relativePoint="TOP">
                                <Offset>
                                        <AbsDimension x="0" y="-15"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnClick>
                                BGAssist_AutoInvite_OnClick();
                        </OnClick>
                </Scripts>
        </Button>
</Ui>