<Ui>
	<Script file="ActionButton.lua"/>
	<CheckButton name="CPUIActionButtonBaseTemplate" virtual="true" mixin="CPActionButtonMixin">
		<Size>
			<AbsDimension x="64" y="64"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="icon" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\EmptyIcon" desaturated="true"/>
			</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>
					<Color r="1" g="1" b="1" a="0.8"/>
				</SwipeTexture>
			</Cooldown>
		</Frames>
	</CheckButton>

	<!-- TODO: remove -->
	<CheckButton name="CPUISquareActionButtonTemplate" virtual="true" inherits="CPUIActionButtonBaseTemplate">
		<NormalTexture name="$parentNormalTexture" parentKey="NormalTexture" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Square_Normal">
			<Anchors>
				<Anchor point="TOPLEFT" x="-2" y="2"/>
				<Anchor point="BOTTOMRIGHT" x="2" y="-2"/>
			</Anchors>
		</NormalTexture>
		<PushedTexture parentKey="PushedTexture" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Square_Pushed">
			<Anchors>
				<Anchor point="TOPLEFT" x="-2" y="2"/>
				<Anchor point="BOTTOMRIGHT" x="2" y="-2"/>
			</Anchors>
		</PushedTexture>
		<HighlightTexture parentKey="HighlightTexture" alphaMode="ADD" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Square_Hilite">
			<Anchors>
				<Anchor point="TOPLEFT" x="-1" y="1"/>
				<Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
			</Anchors>
		</HighlightTexture>
		<CheckedTexture parentKey="CheckedTexture" alphaMode="ADD" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Square_Hilite"/>
	</CheckButton>

	<IndexButton name="CPIndexButtonBindingActionButtonTemplate" virtual="true">
		<Size x="38" y="38"/>
		<KeyValues>
			<KeyValue key="thumbPosition" value="BOTTOM" type="string"/>
		</KeyValues>
		<Layers>
			<Layer level="ARTWORK" textureSubLevel="-1">
				<Texture parentKey="Icon" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\EmptyIcon">
					<Anchors>
						<Anchor point="TOPLEFT" x="1" y="-1"/>
						<Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
					</Anchors>
					<TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="2">
				<FontString parentKey="Slug" inherits="CPSmallFont" justifyH="RIGHT" maxLines="3">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</IndexButton>
</Ui>