<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="FishingOptionsFrame.lua"/>
	<CheckButton name="FishingBuddyCheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
		<HitRectInsets>
			<AbsInset left="0" right="-100" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnShow>
				FishingBuddy.CheckButton_OnShow();
			</OnShow>
			<OnClick>
				FishingBuddy.CheckButton_OnClick();
			</OnClick>
			<OnEnter>
				FishingBuddy.CheckButton_OnEnter();
			</OnEnter>
			<OnLeave>
				FishingBuddy.CheckButton_OnLeave();
			</OnLeave>
		</Scripts>
	</CheckButton>
	<Frame name="FishingOptionsFrame"
		setAllPoints="true" enableMouse="true"
		inherits="FishingBuddySmallHeaderTemplate"
		parent="FishingBuddyFrame" hidden="true">
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="75"/>
		</HitRectInsets>
		<Frames>
			<CheckButton name="FishingBuddyOption_ShowNewFishies" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="32" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_WatchFishies" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_ShowNewFishies" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_WatchCurrentZone" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchFishies" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="16" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_WatchCurrentSkill" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchCurrentZone" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_WatchOnlyWhenFishing" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchCurrentZone" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="140" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_WatchFishPercent" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchOnlyWhenFishing" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_SortByPercent" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchCurrentSkill" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-16" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_EasyCast" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_SortByPercent" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Frame name="FishingBuddyOption_EasyCastKeys" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyCast" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="180" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
					<FontString name="$parentLabel" inherits="GameFontNormalSmall">
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="10" y="-6"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
				</Layers>
			<Scripts>
				<OnLoad>
					FishingBuddy.OptionsFrame.KeyMenuSetup("EasyCastKeys");
				</OnLoad>
			</Scripts>
			</Frame>
			<CheckButton name="FishingBuddyOption_EasyLures" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyCast" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_STVTimer" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyLures" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Frame name="FishingBuddyOption_ClockOffset" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_STVTimer" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="210" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
					<FontString name="$parentLabel" inherits="GameFontNormalSmall">
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="10" y="-6"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
				</Layers>
			<Scripts>
				<OnLoad>
					FishingBuddy.OptionsFrame.OffsetMenuSetup();
				</OnLoad>
			</Scripts>
			</Frame>
			<CheckButton name="FishingBuddyOption_STVPoolsOnly" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_STVTimer" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="16" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_EnhanceFishingSounds" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_STVPoolsOnly" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-16" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_SuitUpFirst" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EnhanceFishingSounds" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_UseGatherer" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_SuitUpFirst" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="FishingBuddyOption_UseButtonHole" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_UseGatherer" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="140" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Frame name="FishingBuddyOption_OutfitMenu" inherits="UIDropDownMenuTemplate" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_UseGatherer" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="48" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
					<FontString name="$parentLabel" inherits="GameFontNormalSmall">
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="10" y="-6"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
				</Layers>
			</Frame>
		    	<SimpleHTML name="FishingBuddyOption_OutfitText">
				<Size>
					<AbsDimension x="210" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_UseGatherer" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<FontString name="$parentFontString" inherits="GameFontNormalSmall">
					<Size>
						<AbsDimension x="183" y="0"/>
					</Size>
				</FontString>
			</SimpleHTML>
			<!-- next option is relative to FishingBuddyOption_OutfitMenu -->
			<!-- Thanks to bc_TrackingMenu for this slider code -->
			<Slider name="FishingBuddyOption_MinimapPosSlider" inherits="OptionsSliderTemplate">
				<Size>
					<AbsDimension x="280" y="17"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relative="$parent" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="88"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(FishingBuddy.MINIMAPBUTTONPLACEMENT);
						getglobal(this:GetName().."High"):SetText();
						getglobal(this:GetName().."Low"):SetText();
						this:SetMinMaxValues(0, 360);
						this:SetValueStep(1);
						this.tooltipText = FishingBuddy.MINIMAPBUTTONPLACEMENTTOOLTIP;
					</OnLoad>
					<OnShow>
						local where = FishingBuddy.GetSetting("MinimapButtonPosition");
						if (where) then
							this:SetValue(where);
						end
					</OnShow>
					<OnValueChanged>
						where = this:GetValue();
						getglobal(this:GetName().."Text"):SetText(FishingBuddy.MINIMAPBUTTONPLACEMENT .. " - "..this:GetValue().."\194\176");
						FishingBuddy.SetSetting("MinimapButtonPosition", where);
						FishingBuddyMinimapButton_MoveButton();
					</OnValueChanged>
				</Scripts>
			</Slider>
			<CheckButton name="FishingBuddyOption_MinimapButtonVisible" inherits="FishingBuddyCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="FishingBuddyOption_MinimapPosSlider" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-4" y="4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterEvent("VARIABLES_LOADED");
			</OnLoad>
			<OnEvent>
				FishingBuddy.OptionsFrame.Setup();
			</OnEvent>
			<OnHide>
				FishingBuddy.WatchUpdate();
				FishingBuddy.UpdateMinimap();
			</OnHide>
			<OnMouseWheel>
				return;
			</OnMouseWheel>
		</Scripts>
	</Frame>
</Ui>
