<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="Blizzard_ArenaUI.lua"/>
<StatusBar name="ArenaCastingBarFrameTemplate" drawLayer="BORDER" virtual="true" hidden="true">
<Size>
<AbsDimension x="80" y="14"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentBorderShield" file="Interface\CastingBar\UI-CastingBar-Arena-Shield" hidden="true">
<Size>
<AbsDimension x="42" y="42"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-25" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="GameFontHighlightSmall">
<Size>
<AbsDimension x="80" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="$parentIcon" hidden="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
<Texture name="$parentFlash" file="" alphaMode="ADD">
<Size>
<AbsDimension x="256" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="28"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
CastingBarFrame_OnLoad(self, "arena"..self:GetParent():GetID(), false, true);
_G[self:GetName().."Icon"]:Show();
</OnLoad>
<OnEvent>
CastingBarFrame_OnEvent(self, event, ...);
</OnEvent>
<OnUpdate>
CastingBarFrame_OnUpdate(self, elapsed);
</OnUpdate>
<OnShow>
CastingBarFrame_OnShow(self);
</OnShow>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="1.0" g="0.7" b="0.0"/>
</StatusBar>
<Button name="ArenaEnemyPetFrameTemplate" frameStrata="LOW" toplevel="true" inherits="SecureUnitButtonTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="77" y="31"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="15" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentFlash" file="Interface\TargetingFrame\UI-PartyFrame-Flash" hidden="true">
<Size>
<AbsDimension x="64" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="1" y="1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentPortrait">
<Size>
<AbsDimension x="22" y="22"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-3" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame setAllPoints="true">
<Frames>
<Frame setAllPoints="true">
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\TargetingFrame\UI-PartyFrame">
<Size>
<AbsDimension x="77" y="39"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="9"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="1.0" right="0" top="1.0" bottom="0.0"/>
</Texture>
<FontString name="$parentName" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-25" y="21"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
</Frames>
</Frame>
<StatusBar name="$parentHealthBar" inherits="TextStatusBar">
<Size>
<AbsDimension x="42" y="4"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-28" y="-14"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnValueChanged>
UnitFrameHealthBar_OnValueChanged(self, value);
</OnValueChanged>
<OnMouseUp>
self:GetParent():Click(button);
</OnMouseUp>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
<StatusBar name="$parentManaBar" inherits="TextStatusBar">
<Size>
<AbsDimension x="42" y="4"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-28" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnMouseUp>
self:GetParent():Click(button);
</OnMouseUp>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true" parentKey="DropDown">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="-20" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnLoad>
ArenaEnemyPetFrame_OnLoad(self);
</OnLoad>
<OnShow>
UnitFrame_Update(self);
</OnShow>
<OnEvent>
ArenaEnemyPetFrame_OnEvent(self, event, ...);
</OnEvent>
<OnEnter>
UnitFrame_OnEnter(self, motion);
</OnEnter>
<OnLeave>
UnitFrame_OnLeave(self, motion);
</OnLeave>
</Scripts>
</Button>
<Button name="ArenaEnemyFrameTemplate" frameStrata="LOW" toplevel="true" movable="true" hidden="true" inherits="SecureUnitButtonTemplate" virtual="true">
<Size>
<AbsDimension x="102" y="32"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentFlash" file="Interface\TargetingFrame\UI-PartyFrame-Flash" hidden="true">
<Size>
<AbsDimension x="128" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-3" y="2"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentClassPortrait" file="Interface\TargetingFrame\UI-Classes-Circles">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-1" y="-4"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentBackground">
<Size>
<AbsDimension x="72" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true" parentKey="DropDown">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="-20" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame setAllPoints="true">
<Frames>
<Frame setAllPoints="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture" file="Interface\ArenaEnemyFrame\UI-ArenaTargetingFrame">
<Size>
<AbsDimension x="102" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-2"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.0" right="0.796" top="0.0" bottom="0.5"/>
</Texture>
<FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="name">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="24"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentHealthBarText" inherits="TextStatusBarText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-20" y="3"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentManaBarText" inherits="TextStatusBarText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-20" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentStatus" file="Interface\Buttons\UI-Debuff-Overlays" hidden="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentPortrait">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.0" right="0.2734375" top="0.0" bottom="0.5625"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentDisconnect" file="Interface\CharacterFrame\Disconnect-Icon" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-7" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
</Frame>
<StatusBar name="$parentHealthBar" inherits="TextStatusBar">
<Size>
<AbsDimension x="70" y="8"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-12"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
TextStatusBar_Initialize(self);
self.textLockable = 1;
self.cvar = "partyStatusText";
self.cvarLabel = "STATUS_TEXT_PARTY";
</OnLoad>
<OnMouseUp>
self:GetParent():Click(button);
</OnMouseUp>
<OnValueChanged>
UnitFrameHealthBar_OnValueChanged(self, value);
</OnValueChanged>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
<StatusBar name="$parentManaBar" inherits="TextStatusBar">
<Size>
<AbsDimension x="70" y="8"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
TextStatusBar_Initialize(self);
self.textLockable = 1;
self.cvar = "partyStatusText";
self.cvarLabel = "STATUS_TEXT_PARTY";
</OnLoad>
<OnMouseUp>
self:GetParent():Click(button);
</OnMouseUp>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0" g="0" b="1.0"/>
</StatusBar>
<Button name="$parentPetFrame" inherits="ArenaEnemyPetFrameTemplate" parentKey="petFrame"/>
<StatusBar name="$parentCastingBar" inherits="ArenaCastingBarFrameTemplate">
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT">
<Offset>
<AbsDimension x="-15" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</StatusBar>
</Frames>
<Scripts>
<OnLoad>
local id = self:GetID();
self.debuffCountdown = 0;
self.numDebuffs = 0;
self.noTextPrefix = 1;
local prefix = "ArenaEnemyFrame"..id;
UnitFrame_Initialize(self, "arena"..id, _G[prefix.."Name"], nil,
_G[prefix.."HealthBar"], _G[prefix.."HealthBarText"],
_G[prefix.."ManaBar"], _G[prefix.."ManaBarText"],
_G[prefix.."Flash"]);
SetTextStatusBarTextZeroText(_G[prefix.."HealthBar"], DEAD);
ArenaEnemyFrame_OnLoad(self);
</OnLoad>
<OnShow>
self:SetFrameLevel(2);
</OnShow>
<OnEvent>
ArenaEnemyFrame_OnEvent(self, event, ...);
</OnEvent>
<OnEnter>
UnitFrame_OnEnter(self);
</OnEnter>
<OnLeave>
UnitFrame_OnLeave(self);
</OnLeave>
</Scripts>
</Button>
<Frame name="ArenaEnemyFrames" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="1" y="1"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-100" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Button name="ArenaEnemyFrame1" inherits="ArenaEnemyFrameTemplate" id="1">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="ArenaEnemyFrame2" inherits="ArenaEnemyFrameTemplate" id="2">
<Anchors>
<Anchor point="TOP" relativeTo="ArenaEnemyFrame1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="ArenaEnemyFrame3" inherits="ArenaEnemyFrameTemplate" id="3">
<Anchors>
<Anchor point="TOP" relativeTo="ArenaEnemyFrame2" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="ArenaEnemyFrame4" inherits="ArenaEnemyFrameTemplate" id="4">
<Anchors>
<Anchor point="TOP" relativeTo="ArenaEnemyFrame3" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="ArenaEnemyFrame5" inherits="ArenaEnemyFrameTemplate" id="5">
<Anchors>
<Anchor point="TOP" relativeTo="ArenaEnemyFrame4" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Frame name="ArenaEnemyBackground" frameStrata="LOW" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="125" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="ArenaEnemyFrame1">
<Offset>
<AbsDimension x="-15" y="6"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\ArenaEnemyFrame\UI-Arena-Border" tile="true">
<BackgroundInsets>
<AbsInset left="32" right="32" top="32" bottom="32"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Scripts>
<OnLoad>
self:RegisterEvent("VARIABLES_LOADED");
UpdateArenaEnemyBackground();
</OnLoad>
<OnShow>
self:SetFrameLevel(1);
</OnShow>
<OnEvent>
if ( event == "VARIABLES_LOADED" ) then
UpdateArenaEnemyBackground();
OpacityFrameSlider:SetValue(tonumber(GetCVar("partyBackgroundOpacity")));
ArenaEnemyBackground_SetOpacity();
end
</OnEvent>
<OnMouseUp>
if ( button == "RightButton" ) then
PartyMemberBackground_ToggleOpacity(self);
end
</OnMouseUp>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad function="ArenaEnemyFrames_OnLoad"/>
<OnEvent function="ArenaEnemyFrames_OnEvent"/>
<OnShow function="ArenaEnemyFrames_OnShow"/>
<OnHide function="ArenaEnemyFrames_OnHide"/>
</Scripts>
</Frame>
</Ui>