<Ui>
	<Button name='PA_AuraTemplate' inherits='BackdropTemplate' virtual='true' frameLevel='4' >
		<Size x='16' y='16'/>
		<Frames>
			<Cooldown parentKey='Cooldown' inherits='CooldownFrameTemplate' hidden='true'>
				<Anchors>
					<Anchor point='TOPLEFT' x='1' y='-1'/>
					<Anchor point='BOTTOMRIGHT' x='-1' y='1'/>
				</Anchors>
			</Cooldown>
			<StatusBar parentKey='StatusBar' hidden='true'>
				<Layers>
					<Layer level='OVERLAY' textureSubLevel='1'>
						<FontString parentKey='Name' inherits='NumberFontNormal' justifyH='LEFT' hidden='true'>
							<Anchors>
								<Anchor point='BOTTOMLEFT' x='-1'/>
							</Anchors>
						</FontString>
						<FontString parentKey='Time' inherits='NumberFontNormal' justifyH='RIGHT' hidden='true'>
							<Anchors>
								<Anchor point='BOTTOMRIGHT' x='-1'/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Anchors>
					<Anchor point='TOP' relativePoint='BOTTOM' x='0' y='-1'/>
				</Anchors>
			</StatusBar>
		</Frames>
		<Layers>
			<Layer level='ARTWORK'>
				<Texture parentKey='Icon'>
					<Anchors>
						<Anchor point='TOPLEFT' x='1' y='-1'/>
						<Anchor point='BOTTOMRIGHT' x='-1' y='1'/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level='OVERLAY'>
				<FontString parentKey='Count' inherits='NumberFontNormal' justifyH='RIGHT' hidden='true'>
					<Anchors>
						<Anchor point='BOTTOMRIGHT' x='-1'/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Button>

	<!--Enhanced Battle Pet UI-->
	<Frame name='EnhancedPetBattleFrame_Pet' inherits='BackdropTemplate' virtual='true' frameLevel='4' hidden='true' enableMouse='true'>
		<Size x='260' y='60'/>
		<Frames>
			<Frame parentKey='Icon' frameLevel='5'>
				<Size x='40' y='40'/>
				<Layers>
					<Layer level='ARTWORK' textureSubLevel='1'>
						<Texture parentKey='PetTexture'>
							<Anchors>
								<Anchor point='TOPLEFT' x='1' y='-1'/>
								<Anchor point='BOTTOMRIGHT' x='-1' y='1'/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level='OVERLAY' textureSubLevel='1'>
						<Texture parentKey='Dead' file='Interface\AddOns\ProjectAzilroka\Media\Textures\Dead' hidden='true'>
							<Anchors>
								<Anchor point='TOPLEFT' x='-8' y='8'/>
								<Anchor point='BOTTOMRIGHT' x='8' y='-8'/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey='PetType' enableMouse='true'>
				<Size x='32' y='32'/>
				<Layers>
					<Layer level='ARTWORK' textureSubLevel='1'>
						<Texture parentKey='Texture'>
							<Anchors>
								<Anchor point='TOPLEFT' x='1' y='-1'/>
								<Anchor point='BOTTOMRIGHT' x='-1' y='1'/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<StatusBar parentKey='Health' frameLevel='6'>
				<Size x='150' y='11'/>
				<Layers>
					<Layer level='OVERLAY' textureSubLevel='1'>
						<FontString parentKey='StatusText' inherits='GameFontHighlightSmallOutline'/>
					</Layer>
				</Layers>
			</StatusBar>
			<StatusBar parentKey='Power' frameLevel='6'>
				<Size x='150' y='11'/>
				<Layers>
					<Layer level='OVERLAY' textureSubLevel='1'>
						<FontString parentKey='StatusText' inherits='GameFontHighlightSmallOutline'/>
					</Layer>
				</Layers>
			</StatusBar>
		</Frames>
		<Layers>
			<Layer level='OVERLAY' textureSubLevel='1'>
				<FontString parentKey='Power' inherits='NumberFontNormal'/>
				<FontString parentKey='Speed' inherits='NumberFontNormal'/>
				<FontString parentKey='Name' inherits='NumberFontNormal'/>
				<FontString parentKey='Level' inherits='NumberFontNormal'/>
				<FontString parentKey='BreedID' inherits='NumberFontNormal'/>
			</Layer>
		</Layers>
	</Frame>

	<!-- Square Minimap Buttons / Bar-->
	<Frame name='SMB_TrackingTemplate' virtual='true' inherits='BackdropTemplate'>
		<Size x='32' y='32'/>
		<Layers>
			<Layer level='ARTWORK'>
				<Texture name='$parentIcon'>
					<Size x='20' y='20'/>
					<Anchors>
						<Anchor point='TOPLEFT' x='6' y='-6'/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<DropdownButton name='$parentButton' mixin='MiniMapTrackingButtonMixin'>
				<Size x='32' y='32'/>
				<Anchors>
					<Anchor point='TOPLEFT'/>
				</Anchors>
				<Scripts>
					<OnLoad method='OnLoad'/>
					<OnEvent method='OnEvent'/>
					<OnEnter method='OnEnter'/>
					<OnLeave method='OnLeave'/>
				</Scripts>
			</DropdownButton>
		</Frames>
	</Frame>

	<Button name='SMB_LFGTemplate' virtual='true' inherits='BackdropTemplate'>
		<Size x='33' y='33'/>
		<Anchors>
			<Anchor point='TOPLEFT' x='25' y='-100'/>
		</Anchors>
		<Layers>
			<Layer level='OVERLAY'>
				<Texture name='$parentBorder' file='Interface\Minimap\MiniMap-TrackingBorder'>
					<Size x='52' y='52'/>
					<Anchors>
						<Anchor point='TOPLEFT' x='1' y='-1'/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name='$parentIcon' inherits='EyeTemplate' hidden='false' parentKey='eye'>
				<Size x='30' y='30'/>
				<Anchors>
					<Anchor point='CENTER'/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function='MiniMapLFGFrame_OnLoad'/>
			<OnClick function='MiniMapLFGFrame_OnClick'/>
			<OnEvent function='MiniMapLFGFrame_OnEvent'/>
			<OnEnter function='MiniMapLFGFrame_OnEnter'/>
			<OnLeave function='MiniMapLFGFrame_OnLeave'/>
		</Scripts>						
	</Button>	

	<!-- stAddOnManager -->
	<CheckButton name='stAMCheckButton' mixin='stAMCheckButtonMixin' inherits='BackdropTemplate' virtual='true' frameLevel='4'>
		<Size x='22' y='18'/>
		<Layers>
			<Layer level='OVERLAY' textureSubLevel='1'>
				<Texture parentKey='StatusIcon' file='Interface\AddOns\ProjectAzilroka\Media\Textures\QuestBang' hidden='true'>
					<Size x='32' y='32'/>
					<Anchors>
						<Anchor point='CENTER' relativePoint='RIGHT' x='10' y='0' />
					</Anchors>
				</Texture>
				<Texture parentKey='Icon' hidden='true'>
					<Size x='32' y='32'/>
					<Anchors>
						<Anchor point='TOP'/>
						<Anchor point='BOTTOM'/>
						<Anchor point='CENTER' relativeKey='$parent.StatusIcon' relativePoint='RIGHT' x='10' y='0' />
					</Anchors>
				</Texture>
				<FontString parentKey='Text' inherits='GameFontHighlightSmallOutline' justifyH='LEFT'>
					<Anchors>
						<Anchor point='TOP' relativeKey='$parent'/>
						<Anchor point='BOTTOM' relativeKey='$parent'/>
						<Anchor point='LEFT' relativeKey='$parent.Icon' relativePoint='RIGHT' x='10' y='0'/>
						<Anchor point='RIGHT' relativeKey='$parent.$parent' relativePoint='CENTER'/>
					</Anchors>
				</FontString>
				<FontString parentKey='StatusText' inherits='GameFontHighlightSmallOutline' justifyH='LEFT' hidden='true'>
					<Anchors>
						<Anchor point='TOP' relativeKey='$parent'/>
						<Anchor point='BOTTOM' relativeKey='$parent'/>
						<Anchor point='LEFT' relativeKey='$parent.Text' relativePoint='RIGHT' x='0' y='0'/>
						<Anchor point='RIGHT' relativeKey='$parent.$parent' relativePoint='RIGHT' x='-10'/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Scripts>
			<OnLoad method ='OnLoad'/>
			<OnClick method ='OnClick'/>
			<OnEnter method ='OnEnter'/>
			<OnLeave method ='OnLeave'/>
		</Scripts>

		<CheckedTexture parentKey='CheckedTexture' file='Interface\Buttons\UI-CheckBox-Check'/>
	</CheckButton>

	<!-- TorghastBuffs -->
	<Button name='TorghastBuffsTemplate' inherits='SecureActionButtonTemplate, BackdropTemplate' registerForClicks='LeftButtonUp, RightButtonUp' virtual='true' framelevel='4'>
		<Size x='26' y='26'/>
		<Layers>
			<Layer level='ARTWORK' textureSubLevel='1'>
				<Texture parentKey='Icon'/>
			</Layer>
			<Layer level='HIGHLIGHT' textureSubLevel='1'>
				<Texture parentKey='Highlight'>
					<Color r='1' g='1' b='1' a='.45'/>
				</Texture>
			</Layer>
			<Layer level='OVERLAY' textureSubLevel='1'>
				<FontString parentKey='Count' inherits='GameFontHighlightSmallOutline' justifyH='LEFT'>
					<Anchors>
						<Anchor point='TOP' relativeKey='$parent'/>
						<Anchor point='BOTTOM' relativeKey='$parent'/>
						<Anchor point='LEFT' relativeKey='$parent.Icon' relativePoint='RIGHT' x='10' y='0'/>
						<Anchor point='RIGHT' relativeKey='$parent.$parent' relativePoint='CENTER'/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Attributes>
			<Attribute name='type' value='cancelaura'/>
		</Attributes>
		<Scripts>
			<OnLoad>
				TorghastBuffs:CreateIcon(self)
			</OnLoad>
			<OnEnter>
				GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMLEFT', -5, -5)
				GameTooltip:SetUnitAura(SecureButton_GetUnit(self:GetParent()), self:GetID(), self:GetParent():GetAttribute('filter'))
			</OnEnter>
			<OnLeave function='GameTooltip_Hide'/>
		</Scripts>
	</Button>

	<Frame name='TorghastBuffsHeaderTemplate' inherits='SecureAuraHeaderTemplate' clampedToScreen='true' virtual='true'>
		<Layers>
			<Layer level='OVERLAY' textureSubLevel='1'>
				<FontString parentKey='unitName' inherits='GameFontHighlightSmallOutline'>
					<Anchors>
							<Anchor point='BOTTOM' relativeKey='$parent' relativePoint='TOP'/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Attributes>
			<Attribute name='filter' value='MAW'/>
			<Attribute name='consolidateDuration' value='-1'/>
			<Attribute name='consolidateTo' value='0'/>
		</Attributes>
	</Frame>
</Ui>
