<!-- CountDoom v0.48 -->
<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">
    <Script file="localization.lua"/>
    <Script file="CountDoomSpells.lua"/>
    <Script file="CountDoomTimer.lua"/>
    <Script file="CountDoomSpellTimer.lua"/>
    <Script file="CountDoomLayout.lua"/>
	<Script file="CountDoom.lua"/>
    <FontString name="CDTextTemplate" virtual="true" inherits="GameFontNormal" text="--" justifyH="RIGHT">
        <Color r="0.90" g="0.90" b="0.90"/>
	</FontString>

	<Button name="CDTimerButtonTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="30" y="30"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Icon" inherits="CDIconTemplate">
                </Texture>
				<FontString name="$parent_DurationText" inherits="CDTextTemplate">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="40" y="-7"/>
							</Offset>
						</Anchor>
					</Anchors>
        			<OnUpdate>
                        CDText_Update(arg1);
        			</OnUpdate>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
            <OnLoad>
                this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
            </OnLoad>
			<OnUpdate>
				CDTimer_OnUpdate(arg1);
                --CDText_Update(arg1);
                --CDIcon_Update(arg1);
			</OnUpdate>
			<OnEnter>
				CDTimer_OnEnter(arg1);
			</OnEnter>
			<OnLeave>
			    CDTimer_OnLeave();
			</OnLeave>
			<OnMouseDown>
				CDTimer_OnMouseDown(arg1);
			</OnMouseDown>
			<OnMouseUp>
				CDTimer_OnMouseUp(arg1);
			</OnMouseUp>
			<OnClick>
				CDTimer_OnClick(arg1);
			</OnClick>
		</Scripts>
	</Button>

	<Frame name="CountDoomFrame" toplevel="true" parent="UIParent">
		<Size>
			<AbsDimension x="30" y="42"/>
		</Size>
        <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="150" y="-50"/>
				</Offset>
			</Anchor>
		</Anchors>
        <Layers>
    		<Layer level="BACKGROUND">
    			<Texture name="$parentBackground" setAllPoints="true">
    				<Color r="0.3" g="0.3" b="0.3" a="0.3" />
    			</Texture>
    		</Layer>
        </Layers>
		<Frames>
			<Button name="CDTimerButton0" inherits="CDTimerButtonTemplate" id="0">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CDTimerButton1" inherits="CDTimerButtonTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="CDTimerButton0" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CDTimerButton2" inherits="CDTimerButtonTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="CDTimerButton1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CDTimerButton3" inherits="CDTimerButtonTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="CDTimerButton2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="CDTimerButton4" inherits="CDTimerButtonTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="CDTimerButton3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentDragButton" inherits="CountDoomActionBarDragButtonTemplate"/>
		</Frames>
		<Scripts>
			<OnLoad>
				CDFrame_OnLoad();
			</OnLoad>
			<OnEvent>
				CDFrame_OnEvent(event);
			</OnEvent>
			<OnUpdate>
				CDFrame_OnUpdate(arg1);
			</OnUpdate>
		</Scripts>
	</Frame>
	<GameTooltip name="CD_SpellDetector" frameStrata="TOOLTIP" hidden="false" parent="UIParent" inherits="GameTooltipTemplate"/>
</Ui>
