<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="FishingWatcher.lua"/>
    <FontString name="FishingWatchFontTemplate" inherits="GameFontNormal" virtual="true" justifyH="LEFT">
	<Size>
	    <AbsDimension x="0" y="13"/>
	</Size>
    </FontString>

    <Button name="FishingWatchDrag" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentBackground" file="Interface\ChatFrame\ChatFrameBackground">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="TOPRIGHT"/>
					<Anchor point="BOTTOMLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
			</Texture>
		</Layer>
	</Layers>
	<Scripts>
		<OnLoad>
			this:RegisterForClicks("RightButtonUp");
		</OnLoad>
		<OnClick>
			FishingBuddy.WatchFrame.OnClick();
		</OnClick>
		<OnMouseDown>
			FishingBuddy.WatchFrame.OnMouseDown();
		</OnMouseDown>
		<OnMouseUp>
			FishingBuddy.WatchFrame.OnMouseUp();
		</OnMouseUp>
	</Scripts>
    </Button>

    <Button name="FishingWatchTab" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
	<Size>
		<AbsDimension x="64" y="32"/>
	</Size>
	<Anchors>
		<Anchor point="BOTTOMLEFT" relativeTo="FishingWatchDrag" relativePoint="TOPLEFT">
			<AbsDimension x="0" y="2"/>
		</Anchor>
	</Anchors>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
				<Size>
					<AbsDimension x="16" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
			</Texture>
			<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
				<Size>
					<AbsDimension x="44" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
			</Texture>
			<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
				<Size>
					<AbsDimension x="16" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
			</Texture>
		</Layer>
	</Layers>
	<ButtonText name="$parentText">
		<Size>
			<AbsDimension x="50" y="8"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
				<Offset>
					<AbsDimension x="0" y="-5"/>
				</Offset>
			</Anchor>
		</Anchors>
	</ButtonText>
	<NormalFont inherits="GameFontNormalSmall" />
	<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
		<Anchors>
			<Anchor point="LEFT" relativeTo="$parentLeft">
				<Offset>
					<AbsDimension x="0" y="-7"/>
				</Offset>
			</Anchor>
			<Anchor point="RIGHT" relativeTo="$parentRight">
				<Offset>
					<AbsDimension x="0" y="-7"/>
				</Offset>
			</Anchor>
		</Anchors>
	</HighlightTexture>
	<Scripts>
		<OnLoad>
			this:RegisterForClicks("RightButtonUp");
		</OnLoad>
		<OnClick>
			FishingBuddy.WatchFrame.OnClick();
		</OnClick>
		<OnMouseDown>
			FishingBuddy.WatchFrame.OnMouseDown();
		</OnMouseDown>
		<OnMouseUp>
			FishingBuddy.WatchFrame.OnMouseUp();
		</OnMouseUp>
	</Scripts>
    </Button>

    <Frame name="FishingWatchFrame" toplevel="true" enableMouse="false" movable="true" parent="UIParent" hidden="true">
	<Size>
		<AbsDimension x="280" y="20"/>
	</Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="FishingWatchDrag" relativePoint="TOPLEFT">
			<Offset>
				<AbsDimension x="0" y="0"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Layers>
		<Layer level="BACKGROUND">
			<FontString name="FishingWatchLine1" inherits="FishingWatchFontTemplate" hidden="true">
				<Size>
					<AbsDimension x="0" y="13"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine2" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine3" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine4" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine5" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine4" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine6" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine5" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine7" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine6" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine8" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine7" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine9" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine8" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine10" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine9" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine11" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine10" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine12" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine11" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine13" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine12" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine14" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine13" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine15" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine14" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine16" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine15" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine17" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine16" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine18" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine17" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine19" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine18" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
			<FontString name="FishingWatchLine20" inherits="FishingWatchFontTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingWatchLine19" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
	<Frames>
		<Frame name="FishingBuddyWatcherMenu" inherits="UIDropDownMenuTemplate">
			<Scripts>
				<OnLoad>
					this:SetFrameLevel(0);
					UIDropDownMenu_SetWidth(180);
				</OnLoad>
			</Scripts>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			FishingBuddy.WatchFrame.OnLoad();
		</OnLoad>
		<OnUpdate>
			FishingBuddy.WatchFrame.OnUpdate(arg1);
		</OnUpdate>
	</Scripts>
    </Frame>
</Ui>

