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

	<Texture name="CPAtlas" virtual="true" mixin="CPAtlasMixin">
		<Scripts>
			<OnLoad method="OnLoad" inherit="prepend"/>
		</Scripts>
	</Texture>

	<Line name="CPSplineLine" thickness="8" virtual="true" file="Interface\AddOns\ConsolePort\Assets\Textures\Pie\Pie_Line1" />

	<Frame name="CPFrameTemplate" virtual="true" mixin="CPFrameMixin">
		<KeyValues>
			<KeyValue key="layoutAtlas" value="glues-gamemode-bg" type="string"/>
			<KeyValue key="layoutScale" value="0.5" type="number"/>
			<KeyValue key="layoutAlpha" value="0.75" type="number"/>
			<KeyValue key="bottomPadding" value="8" type="number"/>
		</KeyValues>
		<Scripts>
			<OnLoad method="OnLoad"/>
		</Scripts>
	</Frame>

	<Frame name="CPUnitHotkeyTemplate" virtual="true" hidden="true" frameStrata="TOOLTIP">
		<Size x="1" y="1" />
	</Frame>

	<AnimationGroup name="CPUnitHotkeyMatchAnimTemplate" virtual="true">
		<Scale parentKey="Enlarge" scaleX="2" scaleY="2" duration="0.1" smoothing="OUT"/>
		<Scale parentKey="Shrink" scaleX="0.25" scaleY="0.25" duration="0.1" smoothing="OUT" startDelay="0.1"/>
		<Alpha parentKey="Alpha" fromAlpha="1" toAlpha="0" duration="0.1" startDelay="0.1"/>
	</AnimationGroup>

	<AnimationGroup name="CPUnitHotkeyFilterAnimTemplate" virtual="true">
		<Scale parentKey="Enlarge" scaleX="1.35" scaleY="1.35" duration="0.1" smoothing="OUT" />
		<Alpha parentKey="Alpha" fromAlpha="1" toAlpha="0.5" duration="0.1" startDelay="0.1"/>
	</AnimationGroup>

	<Frame name="CPSwatchHighlightTemplate" virtual="true" mixin="CPSwatchHighlightMixin">
		<Size x="64" y="64"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="Swatch" file="Interface\AddOns\ConsolePort\Assets\Textures\Glow\Swatch.png" setAllPoints="true" alphaMode="ADD"/>
				<MaskTexture parentKey="SwatchMask" vWrapMode="CLAMPTOBLACKADDITIVE" hWrapMode="CLAMPTOBLACKADDITIVE" setAllPoints="true">
					<MaskedTextures>
						<MaskedTexture childKey="Swatch"/>
					</MaskedTextures>
				</MaskTexture>
			</Layer>
		</Layers>
		<Animations>
			<AnimationGroup parentKey="SwatchHighlightAnim" looping="REPEAT">
				<Alpha childKey="Swatch" smoothing="OUT" duration="1" order="1" fromAlpha="0.25" toAlpha="1"/>
				<Alpha childKey="Swatch" smoothing="IN" duration="1" order="2" fromAlpha="1" toAlpha="0.25"/>
				<Rotation childKey="Swatch" duration="1" order="1" degrees="-180"/>
				<Rotation childKey="Swatch" duration="1" order="2" degrees="-180"/>
				<Scripts>
					<OnLoad>
						self:Play()
					</OnLoad>
				</Scripts>
			</AnimationGroup>
		</Animations>
	</Frame>

	<Texture name="CPToolbarPopoutSixSlice" virtual="true" alpha="0.65" inherits="CPAtlas">
		<KeyValues>
			<KeyValue key="useAtlasSize" value="true" type="boolean"/>
			<KeyValue key="ignoreInLayout" value="true" type="boolean"/>
		</KeyValues>
	</Texture>

	<Frame name="CPToolbarSixSliceFrame" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentArray="SixSlice" parentKey="TopLeftCorner" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="Dropdown-NineSlice-CornerTopLeft" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPLEFT" x="-34" y="24"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="TopRightCorner" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="Dropdown-NineSlice-CornerTopRight" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPRIGHT" x="34" y="24"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="TopEdge" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="_Dropdown-NineSlice-EdgeTop" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftCorner" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TopRightCorner" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="LeftEdge" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="!Dropdown-NineSlice-EdgeLeft" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftCorner" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="RightEdge" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="!Dropdown-NineSlice-EdgeRight" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TopRightCorner" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="Center" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="Dropdown-NineSlice-Center" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.LeftEdge" relativePoint="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightEdge" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="CPToolbarNineSliceFrame" virtual="true" inherits="CPToolbarSixSliceFrame">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentArray="SixSlice" parentKey="BottomLeftCorner" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="Dropdown-NineSlice-CornerBottomLeft" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-34" y="-46"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="BottomRightCorner" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="Dropdown-NineSlice-CornerBottomRight" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="34" y="-46"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="BottomEdge" inherits="CPToolbarPopoutSixSlice">
					<KeyValues>
						<KeyValue key="atlas" value="_Dropdown-NineSlice-EdgeBottom" type="string"/>
					</KeyValues>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeftCorner" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightCorner" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="CPToolbarSixSliceInverterFrame" virtual="true" mixin="CPToolbarSixSliceInverterMixin" inherits="CPToolbarNineSliceFrame"/>
</Ui>