<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/
..\FrameXML\UI.xsd">
	<Script file="CT_RABossModsCount.lua"/>
    <Frame name="CT_RABossCountFrame" enableMouse="true" parent="UIParent" moveable="true" hidden="true">
        <Size>
            <AbsDimension x="170" y="80"/>
        </Size>
        <Anchors>
            <Anchor point="CENTER"/>
        </Anchors>
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
            <EdgeSize>
                <AbsValue val="16"/>
            </EdgeSize>
            <TileSize>
                <AbsValue val="32"/>
            </TileSize>
            <BackgroundInsets>
                <AbsInset left="5" right="5" top="5" bottom="5"/>
            </BackgroundInsets>
        </Backdrop>
        <Layers>
            <Layer level="ARTWORK">
                <FontString name="$parent_Label" inherits="GameFontNormal" text="CT_RABOSS_COUNT_TITLE">
                    <Size>
                        <AbsDimension x="170" y="40"/>
                    </Size>
                    <Anchors>
                        <Anchor point="CENTER" relativeTo="$parent" relativePoint="TOP">
                            <Offset>
                                <AbsDimension x="0" y="-20"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                <FontString name="$parent_Count" inherits="GameFontRedLarge">
                    <Size>
                        <AbsDimension x="170" y="30"/>
                    </Size>
                    <Anchors>
                        <Anchor point="CENTER" relativeTo="$parent_Label" relativePoint="BOTTOM">
                            <Offset>
                                <AbsDimension x="0" y="-5"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
				<FontString name="$parent_EstEnd" inherits="GameFontNormal">
                    <Size>
                        <AbsDimension x="170" y="15"/>
                    </Size>
                    <Anchors>
                        <Anchor point="CENTER" relativeTo="$parent_Count" relativePoint="BOTTOM">
                            <Offset>
                                <AbsDimension x="0" y="-5"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
		<Frames>
			<Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
				<Size>
					<AbsDimension x="10" y="10"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="70" y="10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>
        <Scripts>
            <OnLoad>
                this:RegisterForDrag("LeftButton");
                this:SetMovable(1);

				CT_RABossCount_OnLoad();
            </OnLoad>
			 <OnEvent>
				CT_RABossCount_OnEvent();
            </OnEvent>
            <OnDragStart>
				if ( not CT_RABoss_Options["CounterLocked"] ) then
					this:StartMoving();
					this.isMoving = true;
				end
            </OnDragStart>
            <OnDragStop>
                this:StopMovingOrSizing();
                this.isMoving = false;
            </OnDragStop>
			<OnMouseDown>
				if ( arg1 == "RightButton" ) then
					ToggleDropDownMenu(1, nil, getglobal(this:GetName() .. "_DropDown"), this:GetName(), 47, 15);
				end
			</OnMouseDown>
			<OnHide>
				this:StopMovingOrSizing();
			</OnHide>
        </Scripts>
    </Frame>
</Ui>