<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<FontString name="agUFShadowFont" font="Fonts\FRIZQT__.TTF" inherits="GameFontNormalSmall" virtual="true">
		<FontHeight>
			<AbsValue val="8"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
		<Shadow>
			<Color r="0" g="0" b="0" />
			<Offset>
				<AbsDimension x="0.8" y="-0.8" />
			</Offset>
		</Shadow>
	</FontString>

	<FontString name="agUFCombatFont" font="Fonts\FRIZQT__.TTF" outline="NORMAL" virtual="true">
		<FontHeight>
			<AbsValue val="16"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>

	<FontString name="agUFAuraFont" font="Fonts\FRIZQT__.TTF" outline="NORMAL" virtual="true">
		<FontHeight>
			<AbsValue val="7"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>

	<Button name="AGAuraTemplate" virtual="true" hidden="false" frameStrata="MEDIUM">
		<Size>
			<AbsDimension x="15" y="15"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentOverlay" file="Interface\AddOns\ag_UnitFrames\Images\UI-Debuff-Overlays">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentCount" inherits="agUFAuraFont" justifyH="RIGHT">
					<Size>
						<AbsDimension x="18" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon" setAllPoints="true"/>
			</Layer>
		</Layers>
	</Button>

	<Button name="AGUnitTemplate" movable="true" parent="UIParent" hidden="true" virtual="true" inherits="SecureUnitButtonTemplate" frameStrata="LOW">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parent_HealthBar_BG"/>
				<Texture name="$parent_ManaBar_BG"/>
				<Texture name="$parent_XPBar_BG" hidden="true"/>
				<Texture name="$parent_CastBar_BG" hidden="true"/>
	  </Layer>
		</Layers>
		<Frames>
			<PlayerModel name="$parent_PortraitModel" drawLayer="BORDER"/>
			<StatusBar name="$parent_HealthBar" drawLayer="BORDER"/>
			<StatusBar name="$parent_ManaBar" drawLayer="BORDER"/>
			<StatusBar name="$parent_XPBar" drawLayer="BORDER"/>
			<StatusBar name="$parent_CastBar" drawLayer="BORDER" minValue="0" maxValue="1" defaultValue="0"  hidden="true"/>
			<Frame name="$parent_Overlays" frameStrata="MEDIUM">
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parent_HealthText" inherits="agUFShadowFont" justifyH="RIGHT" nonspacewrap="false"/>
						<FontString name="$parent_ManaText" inherits="agUFShadowFont" justifyH="RIGHT" nonspacewrap="false"/>
						<FontString name="$parent_StatusText" inherits="GameFontNormalSmall"/>
						<FontString name="$parent_CastText" inherits="agUFShadowFont" justifyH="RIGHT" text="" hidden="true"/>
						<FontString name="$parent_BarCastText" inherits="agUFShadowFont" justifyH="CENTER" text="" hidden="true"/>

						<FontString name="$parent_ComboText" inherits="agUFShadowFont"/>
						<FontString name="$parent_ClassText" inherits="agUFShadowFont" justifyH="RIGHT">
							<Size>
								<AbsDimension x="60" y="1"/>
							</Size>
						</FontString>
						<FontString name="$parent_NameLabel" inherits="agUFShadowFont" justifyH="LEFT">
							<Size>
								<AbsDimension x="60" y="1"/>
							</Size>
						</FontString>
						<FontString name="$parent_HitIndicator" inherits="agUFCombatFont" hidden="true"/>

						<Texture name="$parent_PVPIcon" hidden="true">
							<Size>
								<AbsDimension x="27" y="27"/>
							</Size>
						</Texture>
						<Texture name="$parent_LeaderIcon" file="Interface\GroupFrame\UI-Group-LeaderIcon" hidden="true">
							<Size>
								<AbsDimension x="12" y="12"/>
							</Size>
						</Texture>
						<Texture name="$parent_MasterIcon" file="Interface\GroupFrame\UI-Group-MasterLooter" hidden="true">
							<Size>
								<AbsDimension x="10" y="10"/>
							</Size>
						</Texture>
						<Texture name="$parent_InCombatIcon" file="Interface\CharacterFrame\UI-StateIcon" hidden="true">
							<Size>
								<AbsDimension x="18" y="18"/>
							</Size>
							<TexCoords left="0.5" right="1.0" top="0" bottom="0.5"/>
						</Texture>
						<Texture name="$parent_RestingIcon" file="Interface\CharacterFrame\UI-StateIcon" hidden="true">
							<Size>
								<AbsDimension x="18" y="18"/>
							</Size>
							<TexCoords left="0" right="0.5" top="0" bottom="0.421875"/>
						</Texture>
						<Texture name="$parent_RaidTargetIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" hidden="true">
							<Size>
								<AbsDimension x="18" y="18"/>
							</Size>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parent_Highlights" setAllPoints="true" frameStrata="MEDIUM">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parent_Highlight" file="Interface\AddOns\ag_UnitFrames\Images\mouseoverHighlight.tga" alphaMode="ADD" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="5" y="-5"/>
									</Offset>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-5" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<Texture name="$parent_Debuff" file="Interface\AddOns\ag_UnitFrames\Images\debuffHighlight.tga" alphaMode="ADD" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="5" y="-5"/>
									</Offset>
								</Anchor>
								<Anchor point="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-5" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				if not (this.visible) then
					if this.parent.unit then
						this.parent:UpdateAll()
					end
					this.visible = true
				end
			</OnShow>
			<OnHide>
				if this.visible == true then
					this.parent:UpdateAll(true)
					this.visible = nil
					this:StopMovingOrSizing()
				end
			</OnHide>
			<OnAttributeChanged>
				this.parent:AttributeChanged(name,value)
			</OnAttributeChanged>
		</Scripts>
	</Button>

	<Button name="AGUnitMetroTemplate" virtual="true" inherits="AGUnitTemplate">
		<Scripts>
			<OnShow>
				this.parent:Start()
				this.parent:UpdateAll()
			</OnShow>
			<OnHide>
				this.parent:Stop()
				this.parent:UpdateAll(true)
			</OnHide>
		</Scripts>
	</Button>

	<Button name="AGraidAnchorTemplate" frameStrata="MEDIUM" movable="true" parent="UIParent" virtual="true">
		<Size>
			<AbsDimension x="120" y="16"/>
		</Size>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" inherits="agUFAuraFont" justifyH="CENTER">
					<Size>
						<AbsDimension x="120" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0.5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Button>
</Ui>
