<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.blizzard.com/wow/ui/">

	<!-- Generic semi-opaque popup with close button -->
	<Frame name="CPPopupFrameTemplate" virtual="true" inherits="BackdropTemplate">
		<Size x="500" y="96"/>
		<Frames>
			<Button parentKey="CloseButton" inherits="UIPanelCloseButtonNoScripts" alphaMode="BLEND">
				<Anchors>
					<Anchor point="TOPRIGHT" x="-8" y="-8"/>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide()
					</OnClick>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="Binding" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="RIGHT" x="4" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Button>
		</Frames>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="Border" file="Interface\AddOns\ConsolePort\Assets\Textures\Button\Normal">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="16" y="-16"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Border"/>
					</Anchors>
				</Texture>
				<FontString parentKey="Name" inherits="Fancy22Font" justifyH="LEFT">
					<Size x="300" y="22"/>
					<Color r="1" g="0.82" b="0" a="1"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Border" relativePoint="TOPRIGHT" x="8" y="-4"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Desc" inherits="DialogButtonHighlightText" justifyH="LEFT">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Name" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.Icon:SetMask([[Interface\AddOns\ConsolePort\Assets\Textures\Button\Mask]]);
				self:SetBackdrop(CPAPI.Backdrops.Popup);
			</OnLoad>
		</Scripts>
	</Frame>

	<Button name="CPPopupButtonTemplate" virtual="true">
		<Size x="300" y="16"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Icon" file="Interface\QuestFrame\UI-Quest-BulletPoint">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
		<ButtonText>
			<Size x="275" y="0"/>
			<Anchors>
				<Anchor point="LEFT" x="20" y="0"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalLeft"/>
	</Button>
	
</Ui>