<!-- CountDoom v0.46 -->
<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">

	<Button name="CountDoomDragButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativePoint="TOPLEFT"/>
		</Anchors>
		<NormalTexture file="Interface\AddOns\CountDoom\DragTab"/>
        <Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="NumberFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER">
							<Offset><AbsDimension x="0" y="0"/></Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:GetParent():SetMovable(true);
			</OnLoad>
			<OnMouseDown>
				this:GetParent():StartMoving();
			</OnMouseDown>
			<OnMouseUp>
				this:GetParent():StopMovingOrSizing();
			</OnMouseUp>
		</Scripts>
	</Button>

	<Button name="CountDoomActionBarDragButtonTemplate" inherits="CountDoomDragButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this:GetParent():SetMovable(true);
			</OnLoad>
		</Scripts>
		<Frames>
			<Button name="$parentRotateAttachment">
				<NormalTexture file="Interface\AddOns\CountDoom\RotateButton"/>
				<HighlightTexture file="Interface\AddOns\CountDoom\RotateButtonHighlight"/>
				<Size><AbsDimension x="16" y="16"/></Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM">
						<Offset><AbsDimension x="0" y="-3"/></Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CountDoom.RotateLayout(this:GetParent():GetParent():GetName());
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Button>
</Ui>
