<Ui>
	<Script file="Templates.lua"/>

	<CheckButton name="CPItemButtonAssetTemplate" virtual="true" mixin="CPActionButtonMixin">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="icon" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\EmptyIcon" desaturated="true" setAllPoints="true"/>
				<MaskTexture parentKey="Mask" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\EmptyIcon" setAllPoints="true">
					<MaskedTextures>
						<MaskedTexture childKey="icon"/>
					</MaskedTextures>
				</MaskTexture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture parentKey="Flash" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Mask" alpha="0.5" hidden="true"/>
				<Texture parentKey="FlyoutBorder" inherits="ActionBarFlyoutButton-IconFrame" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="2">
				<FontString parentKey="HotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
					<Size x="36" y="10"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="1" y="-3"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Count" inherits="NumberFontNormal" justifyH="RIGHT">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Page" inherits="NumberFontNormalYellow" justifyH="RIGHT" hidden="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="2" y="2"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<FontString parentKey="Name" inherits="GameFontHighlightSmallOutline">
					<Size x="80"/>
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-4"/>
					</Anchors>
				</FontString>
				<Texture parentKey="Border" file="Interface\AddOns\ConsolePort\Assets\Textures\Cooldown\Swipe" hidden="true" alphaMode="ADD">
					<Size x="62" y="62"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="1">
				<Texture parentKey="NewActionTexture" atlas="bags-newitem" useAtlasSize="false" alphaMode="ADD" hidden="true">
					<Size x="44" y="44"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Cooldown parentKey="cooldown" inherits="CooldownFrameTemplate" >
				<Size x="36" y="36"/>
				<Anchors>
					<Anchor point="CENTER" x="0" y="-1"/>
				</Anchors>
				<SwipeTexture file="Interface\AddOns\ConsolePort_World\Assets\CooldownEdge">
					<Color color="NORMAL_FONT_COLOR"/>
				</SwipeTexture>
			</Cooldown>
		</Frames>
	</CheckButton>

	<Button name="CPWorldButtonBaseTemplate" inherits="CPItemButtonAssetTemplate" virtual="true">
		<Size x="48" y="48"/>
		<NormalTexture name="$parentNormalTexture" parentKey="NormalTexture" inherits="CPAtlas">
			<KeyValues>
				<KeyValue key="atlas" value="UI-HUD-ActionBar-IconFrame" type="string"/>
				<KeyValue key="useAtlasSize" value="false" type="boolean"/>
			</KeyValues>
			<Anchors>
				<Anchor point="TOPLEFT" x="-1" y="1"/>
				<Anchor point="BOTTOMRIGHT" x="3" y="-2"/>
			</Anchors>
		</NormalTexture>
		<HighlightTexture parentKey="HighlightTexture" alphaMode="ADD" inherits="CPAtlas">
			<Anchors>
				<Anchor point="TOPLEFT" x="0" y="0"/>
				<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
			</Anchors>
			<KeyValues>
				<KeyValue key="atlas" value="UI-HUD-ActionBar-IconFrame-Down" type="string"/>
			</KeyValues>
		</HighlightTexture>
	</Button>

	<Button name="CPWorldSecureButtonBaseTemplate" inherits="CPWorldButtonBaseTemplate, SecureActionButtonTemplate" virtual="true"/>

	<Button name="CPWorldButtonTemplate" inherits="CPWorldButtonBaseTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="-250" top="0" bottom="0"/>
		</HitRectInsets>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentIconQuestTexture" parentKey="QuestTexture" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Quest">
					<Size x="24" y="24"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-8" y="8"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentNameFrame" parentKey="NameFrame" file="Interface\LevelUp\MinorTalents.blp">
					<Size x="300" y="50"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="12" y="0"/>
					</Anchors>
					<TexCoords left="0.001953125" right="0.818359375" bottom="0.6660" top="0.794921875"/>
				</Texture>
				<FontString name="$parentText" parentKey="Text" inherits="GameTooltipHeaderText" justifyH="LEFT">
					<Size x="300" y="38"/>
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT" x="8" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture parentKey="BannerHighlightTop" file="Interface\PVPFrame\PvPMegaQueue" alphaMode="ADD">
					<TexCoords left="0.00195313" right="0.63867188" top="0.70703125" bottom="0.73703125"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.NameFrame" relativePoint="TOPLEFT" x="25" y="-2"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.NameFrame" relativePoint="TOPRIGHT" x="-25" y="-20"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BannerHighlightBottom" file="Interface\PVPFrame\PvPMegaQueue" alphaMode="ADD">
					<TexCoords left="0.00195313" right="0.63867188" top="0.737578129" bottom="0.76757813"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.NameFrame" relativePoint="BOTTOMLEFT" x="25" y="20"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.NameFrame" relativePoint="BOTTOMRIGHT" x="-25" y="2"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Button>

	<Frame name="CPAnimatedLootHeaderTemplate" virtual="true" mixin="CPAnimatedLootHeaderMixin">
		<Size x="235" y="25"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Background" hidden="false" alpha="1" atlas="Objective-Header" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" x="-29" y="14"/>
					</Anchors>
				</Texture>
				<FontString parentKey="Text" inherits="GameFontNormalMed2" justifyH="LEFT">
					<Size x="170" y="16"/>
					<Anchors>
						<Anchor point="LEFT" x="4" y="-1"/>
					</Anchors>
				</FontString>
				<Texture parentKey="LineGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineGlow" useAtlasSize="true">
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.Background" x="-50" y="18"/>
					</Anchors>
				</Texture>
				<Texture parentKey="SoftGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_Glow" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Background" relativePoint="LEFT" x="20" y="20"/>
					</Anchors>
				</Texture>
				<Texture parentKey="StarBurst" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_StarBurst" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.SoftGlow"/>
					</Anchors>
				</Texture>
				<Texture parentKey="LineSheen" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst">
					<Size x="60" y="15"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="0" y="-13"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Animations>
			<AnimationGroup parentKey="HeaderOpenAnim" setToFinalAlpha="true">
				<Alpha childKey="Background" startDelay="0" duration="0" order="1" fromAlpha="0" toAlpha="0"/>
				<Alpha childKey="Background" startDelay="0.25" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
				<Alpha childKey="LineGlow" duration="0.15" order="1" fromAlpha="0" toAlpha="1"/>
				<Alpha childKey="LineGlow" startDelay="0.25" duration="0.65" order="1" fromAlpha="1" toAlpha="0"/>
				<Scale childKey="LineGlow" duration="0.15" order="1" fromScaleX="0.1" fromScaleY="1.5" toScaleX="2" toScaleY="1.5" />
				<Translation childKey="LineGlow" duration="0.75" order="1" offsetX="50" offsetY="0"/>
				<Alpha childKey="SoftGlow" duration="0.25" order="1" fromAlpha="0" toAlpha="1"/>
				<Alpha childKey="SoftGlow" startDelay="0.25" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
				<Scale childKey="SoftGlow" duration="0.25" order="1" fromScaleX="0.5" fromScaleY="0.5" toScaleX="0.8" toScaleY="0.8"/>
				<Alpha childKey="StarBurst" duration="0.25" order="1" fromAlpha="0" toAlpha="1"/>
				<Alpha childKey="StarBurst" startDelay="0.25" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
				<Scale childKey="StarBurst" duration="0.25" order="1" fromScaleX="0.5" fromScaleY="0.5" toScaleX="1" toScaleY="1"/>
				<Alpha childKey="LineSheen" startDelay="0.15" duration="0.5" order="1" fromAlpha="0" toAlpha="0.75"/>
				<Alpha childKey="LineSheen" startDelay="0.75" duration="0.5" order="1" fromAlpha="0.75" toAlpha="0"/>
				<Translation childKey="LineSheen" startDelay="0.15" duration="1.5" order="1" offsetX="250" offsetY="0"/>
			</AnimationGroup>
		</Animations>
	</Frame>

	<Frame name="CPWorldContainerTemplate" virtual="true">
		<Frames>
			<Frame parentKey="Header" inherits="CPAnimatedLootHeaderTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP" x="64" y="-4"/>
				</Anchors>
			</Frame>
		</Frames>
	</Frame>
</Ui>