<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>

	<GameTooltip name="CPTooltipTemplate" inherits="SharedTooltipTemplate, DefaultScaleFrame" ignoreParentScale="true" virtual="true">
		<KeyValues>
			<KeyValue key="maxScale" value="CHAR_CUSTOMIZE_MAX_SCALE" type="global"/>
		</KeyValues>
	</GameTooltip>

	<GameTooltip name="CPNoHeaderTooltip" inherits="CPTooltipTemplate">
		<KeyValues>
			<KeyValue key="textLeft1Font" value="GameFontNormalMed3" type="string"/>
			<KeyValue key="textRight1Font" value="GameFontNormalMed3" type="string"/>
			<KeyValue key="textLeft2Font" value="GameFontNormalMed3" type="string"/>
			<KeyValue key="textRight2Font" value="GameFontNormalMed3" type="string"/>
		</KeyValues>
	</GameTooltip>

	<Button name="CPSmoothRectangleButtonTemplate" virtual="true" mixin="CPSmoothButtonMixin" inherits="BackdropTemplate">
		<Size x="230" y="60"/>
		<HighlightTexture parentKey="HighlightTexture" file="Interface\PVPFrame\PvPMegaQueue" alphaMode="ADD">
			<TexCoords left="0.00195313" right="0.63867188" top="0.70703125" bottom="0.76757813"/>
			<Anchors>
				<Anchor point="TOPLEFT" y="-4"/>
				<Anchor point="BOTTOMRIGHT" y="4"/>
			</Anchors>
		</HighlightTexture>
		<ButtonText parentKey="Label" inherits="Game12Font" justifyH="LEFT">
			<Size x="150"/>
			<Anchors>
				<Anchor point="LEFT" x="60" y="0"/>
			</Anchors>
		</ButtonText>
		<Layers>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture parentKey="Icon">
					<Size x="40" y="40"/>
					<Anchors>
						<Anchor point="LEFT" x="12"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="2">
				<Texture parentKey="Mask" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Icon_Mask32">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<MaskTexture parentKey="IconMask" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Mask">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
					</Anchors>
					<MaskedTextures>
						<MaskedTexture childKey="Icon"/>
					</MaskedTextures>
				</MaskTexture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Overlay" setAllPoints="true" inherits="BackdropTemplate"/>
			<Frame parentKey="Hilite" alpha="0" inherits="BackdropTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" x="-1"/>
					<Anchor point="BOTTOMRIGHT" x="1"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnShow method="OnShow"/>
			<OnHide method="OnHide"/>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
		</Scripts>
	</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="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.2" smoothing="OUT" startDelay="0.1"/>
		<Alpha parentKey="Alpha" fromAlpha="1" toAlpha="0" duration="0.2" 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">
		<KeyValues>
			<KeyValue key="ignoreInLayout" value="true" type="boolean"/>
		</KeyValues>
	</Texture>

	<Frame name="CPToolbarSixSliceFrame" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentArray="SixSlice" parentKey="TopLeftCorner" atlas="CharacterCreateDropdown-NineSlice-CornerTopLeft" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="TOPLEFT" x="-34" y="24"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="TopRightCorner" atlas="CharacterCreateDropdown-NineSlice-CornerTopRight" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="TOPRIGHT" x="34" y="24"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="TopEdge" atlas="_CharacterCreateDropdown-NineSlice-EdgeTop" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftCorner" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TopRightCorner" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="LeftEdge" atlas="!CharacterCreateDropdown-NineSlice-EdgeLeft" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftCorner" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="RightEdge" atlas="!CharacterCreateDropdown-NineSlice-EdgeRight" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TopRightCorner" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="Center" atlas="CharacterCreateDropdown-NineSlice-Center" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<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" atlas="CharacterCreateDropdown-NineSlice-CornerBottomLeft" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-34" y="-46"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="BottomRightCorner" atlas="CharacterCreateDropdown-NineSlice-CornerBottomRight" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="34" y="-46"/>
					</Anchors>
				</Texture>
				<Texture parentArray="SixSlice" parentKey="BottomEdge" atlas="_CharacterCreateDropdown-NineSlice-EdgeBottom" useAtlasSize="true" inherits="CPToolbarPopoutSixSlice">
					<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>