<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="XPerl_RaidPets.lua"/>

	<Button name="XPerl_RaidPet_FrameTemplate" frameStrata="LOW" virtual="true" hidden="true" inherits="SecureActionButtonTemplate">
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("AnyUp")
				XPerl_RaidPet_Single_OnLoad(self)
			</OnLoad>
			<OnEnter>
				XPerl_PlayerTip(self)
				self.highlight:Select()
			</OnEnter>
			<OnLeave>
				self.highlight:Deselect()
				XPerl_PlayerTipHide()
			</OnLeave>
		</Scripts>

		<Size><AbsDimension x="80" y="35"/></Size>

		<Backdrop bgFile="Interface\AddOns\XPerl\images\XPerl_FrameBack" 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>

		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parenttext" justifyH="LEFT" inherits="GameFontNormalSmall" text="Error!">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="-4"/>
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-4" y="-10"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>
			<StatusBar name="$parenthealthBar" inherits="XPerlRaidStatusBar">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-16"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-5" y="5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<BarColor r="0" g="0.8" b="0"/>
			</StatusBar>

			<StatusBar name="$parentexpectedHealth" drawLayer="OVERLAY" hidden="true" setAllPoints="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parenthealthBar">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parenthealthBar">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<BarTexture name="$parenttex" file="Interface\TargetingFrame\UI-StatusBar"/>
				<BarColor r="0" g="1" b="1"/>
				<Scripts>
					<OnLoad>
						XPerl_SetChildMembers(self)
						XPerl_RegisterBar(self)
						self:SetFrameLevel(getglobal(self:GetParent():GetName().."healthBar"):GetFrameLevel() - 1)
					</OnLoad>
				</Scripts>
			</StatusBar>

			<Frame name="$parentHighlight" inherits="XPerl_HighlightTemplate" setAllPoints="true"/>
		</Frames>
	</Button>

	<Frame name="XPerl_Raid_TitlePets" parent="UIParent" inherits="XPerl_Raid_TitleDragTemplate" id="99">
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset><AbsDimension x="720" y="-465"/></Offset>
			</Anchor>
		</Anchors>
	</Frame>

	<Frame name="XPerl_Raid_GrpPets" parent="XPerl_Raid_TitlePets" inherits="XPerl_Raid_TitleFrameTemplate" id="1">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/>
		</Anchors>
		<Attributes>
			<Attribute name="template" type="string" value="XPerl_RaidPet_FrameTemplate"/>
		</Attributes>
	</Frame>

	<Frame name="XPerl_RaidPets_Frame" parent="UIParent" hidden="true">
		<Scripts>
			<OnLoad>
				XPerl_RaidPets_OnLoad(self)
			</OnLoad>
		</Scripts>
	</Frame>
</Ui>
