<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/
..\FrameXML\UI.xsd">
<Script file="WorldStateFrame.lua"/>
<Frame name="WorldStateAlwaysUpTemplate" virtual="true" hidden="true" enableMouse="true">
<Size>
<AbsDimension x="45" y="24"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon">
<Size>
<AbsDimension x="42" y="42"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-6" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-12" y="10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="$parentDynamicIconButton" enableMouse="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="40" y="9"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnter>
if ( self.tooltip ) then
GameTooltip:SetOwner(self, ANCHOR_BOTTOMLEFT);
GameTooltip:SetText(self.tooltip);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Frame name="$parentFlash">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentDynamicIconButton">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture" alphaMode="ADD">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnEnter>
if ( self.tooltip ) then
GameTooltip:SetOwner(self, ANCHOR_BOTTOMLEFT);
GameTooltip:SetText(self.tooltip);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Button name="WorldStateScoreColumnTemplate" enableMouse="true" virtual="true">
<Size>
<AbsDimension x="75" y="30"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentText" inherits="GameFontHighlightSmall">
<Size>
<AbsDimension x="75" y="24"/>
</Size>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
</OnEnter>
<OnClick>
if ( self.sortType ) then
SortBattlefieldScoreData(self.sortType);
end
PlaySound("igMainMenuOptionCheckBoxOn");
</OnClick>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="WorldStateScoreTemplate" virtual="true">
<Size>
<AbsDimension x="505" y="16"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentFactionLeft" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight" parentKey="factionLeft">
<Size>
<AbsDimension x="256" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1" top="0" bottom="1"/>
</Texture>
<Texture name="$parentFactionRight" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight" parentKey="factionRight">
<Size>
<AbsDimension x="20" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentFactionLeft" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="1" right="0" top="0" bottom="1"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentTeam" inherits="GameFontNormal" justifyH="LEFT" parentKey="team">
<Size>
<AbsDimension x="175" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentHonorableKills" inherits="GameFontNormalSmall" parentKey="honorableKills">
<Anchors>
<Anchor point="CENTER" relativePoint="LEFT">
<Offset>
<AbsDimension x="127" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentKillingBlows" inherits="GameFontNormalSmall" parentKey="killingBlows">
<Anchors>
<Anchor point="CENTER" relativePoint="LEFT">
<Offset>
<AbsDimension x="127" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentDeaths" inherits="GameFontNormalSmall" parentKey="deaths">
<Anchors>
<Anchor point="CENTER" relativePoint="LEFT">
<Offset>
<AbsDimension x="127" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentHonorGained" inherits="GameFontNormalSmall" parentKey="honorGained">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentMatchmakingRating" inherits="GameFontNormalSmall" parentKey="matchmakingRating">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentBgRating" inherits="GameFontNormalSmall" parentKey="bgRating">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentRatingChange" inherits="GameFontNormalSmall" parentKey="ratingChange">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentDamage" inherits="GameFontNormalSmall" parentKey="damage">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentHealing" inherits="GameFontNormalSmall" parentKey="healing">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-7" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentColumn1Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn1Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn1Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn2Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn2Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn2Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn3Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn3Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn3Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn4Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn4Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn4Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn5Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn5Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn5Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn6Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn6Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn6Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentColumn7Text" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<Texture name="$parentColumn7Icon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentColumn7Text" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentClassButton" enableMouse="true" parentKey="class">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon" parentKey="icon"/>
</Layer>
</Layers>
<Scripts>
<OnEnter>
if ( self.tooltip ) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltip);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Button name="$parentName" parentKey="name">
<Size>
<AbsDimension x="215" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="20" y="1"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT" parentKey="text">
<Size>
<AbsDimension x="175" y="16"/>
</Size>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnEnter>
if ( self.tooltip ) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(self.name);
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
ScorePlayer_OnClick(self, button);
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<Frame name="WorldStateCaptureBarTemplate" virtual="true" toplevel="true" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="173" y="26"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="0" y="15"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeftBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="61" y="9"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="26" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.8203125" right="1.0" top="0" bottom="0.140625"/>
</Texture>
<Texture name="$parentRightBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="60" y="9"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-26" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.8203125" right="1.0" top="0.171875" bottom="0.3125"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentMiddleBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="25" y="9"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.8203125" right="1.0" top="0.34375" bottom="0.484375"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="173" y="26"/>
</Size>
<Anchors>
<Anchor point="TOP"/>
</Anchors>
<TexCoords left="0" right="0.67578125" top="0" bottom="0.40625"/>
</Texture>
<Texture name="$parentRightLine" file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="3" y="8"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddleBar" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.74609375" right="0.7578125" top="0" bottom="0.125"/>
</Texture>
<Texture name="$parentLeftLine" file="Interface\WorldStateFrame\WorldState-CaptureBar">
<Size>
<AbsDimension x="3" y="8"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentMiddleBar" relativePoint="LEFT">
<Offset>
<AbsDimension x="1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.74609375" right="0.7578125" top="0" bottom="0.125"/>
</Texture>
<Texture name="$parentLeftIconHighlight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="true" alphaMode="ADD">
<Size>
<AbsDimension x="27" y="28"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.10546875" top="0.4375" bottom="0.875"/>
</Texture>
<Texture name="$parentRightIconHighlight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="true" alphaMode="ADD">
<Size>
<AbsDimension x="27" y="28"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.10546875" top="0.4375" bottom="0.875"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentIndicator">
<Size>
<AbsDimension x="5" y="18"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\WorldStateFrame\WorldState-CaptureBar" setAllPoints="true">
<Size>
<AbsDimension x="5" y="18"/>
</Size>
<TexCoords left="0.77734375" right="0.796875" top="0" bottom="0.28125"/>
</Texture>
</Layer>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="false">
<Size>
<AbsDimension x="8" y="15"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.7265625" right="0.76171875" top="0.140625" bottom="0.375"/>
</Texture>
<Texture name="$parentRight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="false">
<Size>
<AbsDimension x="8" y="15"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.76171875" right="0.7265625" top="0.140625" bottom="0.375"/>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnShow>
UIParent_ManageFramePositions();
</OnShow>
<OnHide>
UIParent_ManageFramePositions();
</OnHide>
</Scripts>
</Frame>
<Frame name="WorldStateAlwaysUpFrame" toplevel="true" parent="UIParent">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="-5" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad function="WorldStateAlwaysUpFrame_OnLoad"/>
<OnEvent function="WorldStateAlwaysUpFrame_OnEvent"/>
<OnEnter>
if ( self.tooltip ) then
GameTooltip:SetOwner(self);
GameTooltip:SetText(self.tooltip);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Frame>
<!-- Score Frame -->
<Frame name="WorldStateScoreFrame" inherits="ButtonFrameTemplate" toplevel="true" parent="UIParent" movable="true" hidden="true">
<Size>
<AbsDimension x="510" y="428"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="1">
<FontString name="WorldStateScoreFrameLabel" inherits="GameFontNormal" text="BATTLEFIELDS">
<Anchors>
<Anchor point="TOP" x="0" y="-6"/>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<FontString name="WorldStateScoreFrameTimerLabel" inherits="GameFontHighlightSmall" text="TIME_TO_PORT">
<Anchors>
<Anchor point="BOTTOM" x="0" y="26"/>
</Anchors>
</FontString>
<FontString name="WorldStateScoreFrameTimer" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameTimerLabel" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="WorldStateScoreBattlegroundRunTime" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="BOTTOMLEFT" x="14" y="8"/>
</Anchors>
</FontString>
<FontString name="WorldStateScorePlayerCount" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="WorldStateScoreBattlegroundRunTime" relativePoint="TOPLEFT" x="0" y="5"/>
</Anchors>
</FontString>
<FontString name="$parentEnemyTeamAverageBGRating" inherits="GameFontNormalSmall" justifyH="RIGHT" parentKey="enemyTeamAverageRating">
<Anchors>
<Anchor point="BOTTOMRIGHT" x="-16" y="8"/>
</Anchors>
</FontString>
<FontString name="$parentTeamAverageBGRating" inherits="GameFontNormalSmall" justifyH="RIGHT" parentKey="teamAverageRating">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentEnemyTeamAverageBGRating" relativePoint="TOPRIGHT" x="0" y="5"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="WorldStateScoreFrameClass" inherits="WorldStateScoreColumnTemplate">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parentInset" relativePoint="TOPLEFT" x="3" y="8"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\PvPRankBadges\PvPRank06">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self.sortType = "class";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameName" inherits="WorldStateScoreColumnTemplate">
<Size>
<AbsDimension x="175" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameClass">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameNameText:SetPoint("LEFT", "WorldStateScoreFrameName", "LEFT", 20, 0);
WorldStateScoreFrameNameText:SetJustifyH("LEFT");
WorldStateScoreFrameNameText:SetText(NAME);
self.sortType = "name";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameTeam" inherits="WorldStateScoreColumnTemplate">
<Size>
<AbsDimension x="175" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameName" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameTeamText:SetPoint("LEFT", "WorldStateScoreFrameTeam", "LEFT", 0, 0);
WorldStateScoreFrameTeamText:SetText(TEAM);
WorldStateScoreFrameTeamText:SetJustifyH("LEFT");
self.sortType = "team";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameKB" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameName" relativePoint="RIGHT">
<Offset x="4" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameKBText:SetText(SCORE_KILLING_BLOWS);
self.tooltip = KILLING_BLOW_TOOLTIP;
self.sortType = "kills";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameDeaths" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameKB" relativePoint="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameDeathsText:SetText(DEATHS);
self.tooltip = DEATHS_TOOLTIP;
self.sortType = "deaths";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameHK" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameDeaths" relativePoint="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameHKText:SetText(SCORE_HONORABLE_KILLS);
self.tooltip = HONORABLE_KILLS_TOOLTIP;
self.sortType = "hk";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameDamageDone" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHK" relativePoint="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameDamageDoneText:SetText(SCORE_DAMAGE_DONE);
self.tooltip = DAMAGE_DONE_TOOLTIP;
self.sortType = "damage";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameHealingDone" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameDamageDone" relativePoint="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameHealingDoneText:SetText(SCORE_HEALING_DONE);
self.tooltip = HEALING_DONE_TOOLTIP;
self.sortType = "healing";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameMatchmakingRating" inherits="WorldStateScoreColumnTemplate">
<Scripts>
<OnLoad>
WorldStateScoreFrameMatchmakingRatingText:SetText(SCORE_TEAM_SKILL);
self.tooltip = TEAM_SKILL_TOOLTIP;
self.sortType = "mmr";
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
</OnEnter>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameBgRating" inherits="WorldStateScoreColumnTemplate">
<Scripts>
<OnLoad>
WorldStateScoreFrameBgRatingText:SetText(BATTLEGROUND_RATING);
self.tooltip = BATTLEGROUND_RATING;
self.sortType = "bgRating";
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
</OnEnter>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameRatingChange" inherits="WorldStateScoreColumnTemplate">
<Scripts>
<OnLoad>
WorldStateScoreFrameRatingChangeText:SetText(SCORE_RATING_CHANGE);
self.tooltip = RATING_CHANGE_TOOLTIP;
self.sortType = "team";
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
</OnEnter>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameHonorGained" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHealingDone" relativePoint="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
WorldStateScoreFrameHonorGainedText:SetText(SCORE_HONOR_GAINED);
self.tooltip = HONOR_GAINED_TOOLTIP;
self.sortType = "cp";
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
GameTooltip:Show();
</OnEnter>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn1" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHealingDone" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat1";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn2" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn1" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat2";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn3" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn2" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat3";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn4" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn3" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat4";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn5" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn4" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat5";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn6" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn5" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat6";
</OnLoad>
</Scripts>
</Button>
<Button name="WorldStateScoreColumn7" inherits="WorldStateScoreColumnTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="WorldStateScoreColumn6" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.sortType = "stat7";
</OnLoad>
</Scripts>
</Button>
<!-- Unit drop down for the Notify AFK -->
<Frame name="ScorePlayerDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true" />
<Frame name="WorldStateScoreButton1" inherits="WorldStateScoreTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentInset" relativePoint="TOPLEFT" x="4" y="-4"/>
<Anchor point="TOPRIGHT" relativeTo="$parentInset" relativePoint="TOPRIGHT" x="-4" y="-4"/>
</Anchors>
</Frame>
<ScrollFrame name="WorldStateScoreScrollFrame" inherits="FauxScrollFrameTemplate">
<Size>
<AbsDimension x="300" y="300"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentInset" x="4" y="-4"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentInset" x="-27" y="0"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="254"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-2" y="3"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top="0.0078125" bottom="1.0"/>
</Texture>
<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="56"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parentScrollBarTop" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top="0.78125" bottom="1.0"/>
</Texture>
<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="105"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.515625" right="1.0" top="0" bottom="0.41015625"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnVerticalScroll>
FauxScrollFrame_OnVerticalScroll(self, offset, SCORE_BUTTON_HEIGHT, WorldStateScoreFrame_Update);
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
<Button name="WorldStateScoreFrameTab1" inherits="CharacterFrameTabButtonTemplate" id="1" text="ALL">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="5" y="1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick function="WorldStateScoreFrameTab_OnClick"/>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameTab2" inherits="CharacterFrameTabButtonTemplate" id="2" text="FACTION_ALLIANCE">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="WorldStateScoreFrameTab1">
<Offset>
<AbsDimension x="-16" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick function="WorldStateScoreFrameTab_OnClick"/>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameTab3" inherits="CharacterFrameTabButtonTemplate" id="3" text="FACTION_HORDE">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="WorldStateScoreFrameTab2">
<Offset>
<AbsDimension x="-16" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick function="WorldStateScoreFrameTab_OnClick"/>
</Scripts>
</Button>
<Button name="WorldStateScoreFrameLeaveButton" inherits="UIPanelButtonTemplate" text="LEAVE_BATTLEGROUND">
<Size>
<AbsDimension x="153" y="21"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" x="0" y="3"/>
</Anchors>
<Scripts>
<OnClick>
ConfirmOrLeaveBattlefield();
</OnClick>
</Scripts>
</Button>
<Frame name="WorldStateScoreWinnerFrame" hidden="true" useParentLevel="true">
<Size>
<AbsDimension x="10" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" x="2" y="-3"/>
<Anchor point="TOPRIGHT" x="-2" y="-3"/>
</Anchors>
<Layers>
<Layer level="BORDER" textureSubLevel="-2">
<Texture name="$parentLeft" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
<Size>
<AbsDimension x="256" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1" top="0" bottom="1"/>
</Texture>
<Texture name="$parentRight" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
<Size>
<AbsDimension x="50" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="1" right="0" top="0" bottom="1"/>
</Texture>
<FontString name="$parentText" inherits="GameFontHighlight">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnLoad function="WorldStateScoreFrame_OnLoad"/>
<OnEvent>
if ( event == "UPDATE_BATTLEFIELD_SCORE" or event == "UPDATE_WORLD_STATES") then
if ( InActiveBattlefield() and (WorldStateScoreFrame:IsVisible() or GetBattlefieldWinner() ) ) then
WorldStateScoreFrame_Resize();
WorldStateScoreFrame_Update();
end
end
if ( event == "PLAYER_ENTERING_WORLD" ) then
HideUIPanel(WorldStateScoreFrame);
WorldStateScoreFrame.firstOpen = false;
WorldStateScoreFrame.leaving = nil;
BATTLEFIELD_SHUTDOWN_TIMER = 0;
end
</OnEvent>
<OnShow>
WorldStateScoreFrame_Resize();
WorldStateScoreFrame_Update();
WorldStateScoreFrameTab_OnClick(WorldStateScoreFrameTab1);
</OnShow>
<OnUpdate function="RequestBattlefieldScoreData"/>
</Scripts>
</Frame>
<Frame name="WorldStateChallengeModeFrame" hidden="true">
<Size x="198" y="55"/>
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture file="Interface\Challenges\challenges-main">
<Size x="207" y="64"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.71972656" right="0.92187500" top="0.21289063" bottom="0.33789063"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="medalIcon" alphaMode="ADD">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="LEFT" x="5" y="-2"/>
</Anchors>
</Texture>
<Texture parentKey="noMedal" file="Interface\Challenges\challenges-main" hidden="true">
<Size x="9" y="10"/>
<Anchors>
<Anchor point="LEFT" x="24" y="-2"/>
</Anchors>
<TexCoords left="0.93847656" right="0.94726563" top="0.00195313" bottom="0.02148438"/>
</Texture>
</Layer>
</Layers>
<Frames>
<StatusBar parentKey="statusBar">
<Size>
<AbsDimension x="133" y="17"/>
</Size>
<Anchors>
<Anchor point="CENTER" x="22" y="-2"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\Challenges\challenges-main">
<Size x="140" y="32"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
<TexCoords left="0.00097656" right="0.13769531" top="0.47265625" bottom="0.51757813"/>
</Texture>
<FontString inherits="GameFontHighlight" justifyH="LEFT" parentKey="timeLeft">
<Anchors>
<Anchor point="LEFT" x="42" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:SetStatusBarColor(0, 0.33, 0.61);
</OnLoad>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
<Frame parentKey="GlowFrame">
<Layers>
<Layer level="OVERLAY">
<Texture parentKey="MedalGlow" file="Interface\Challenges\challenges-metalglow">
<Size x="150" y="150"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.$parent.medalIcon" />
</Anchors>
</Texture>
<Texture parentKey="MedalIcon" alphaMode="ADD">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.$parent.medalIcon"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self.MedalGlow:SetAlpha(0);
self.MedalIcon:SetAlpha(0);
</OnLoad>
</Scripts>
<Animations>
<AnimationGroup parentKey="MedalGlowAnim">
<Alpha targetKey="$parent.$parent.MedalGlow" change="1" duration="0.4" order="1"/>
<Alpha targetKey="$parent.$parent.MedalGlow" change="-1" duration="2" order="2"/>
</AnimationGroup>
<AnimationGroup parentKey="MedalPulseAnim">
<Alpha targetKey="$parent.$parent.MedalIcon" change="1" duration="0.25" order="1"/>
<Alpha targetKey="$parent.$parent.MedalIcon" change="-1" endDelay=".5" duration="0.25" order="2"/>
<Scripts>
<OnFinished function="WorldStateChallengeModeAnim_OnFinished" />
</Scripts>
</AnimationGroup>
</Animations>
</Frame>
</Frames>
</Frame>
<Frame name="WorldStateChallengeModeTimer" hidden="true">
<Scripts>
<OnUpdate function="WorldStateChallengeModeTimer_OnUpdate"/>
</Scripts>
</Frame>
</Ui>