<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="FishingLocationsFrame.lua"/>
	<Button name="FishingBuddyCollpaseAllTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="293" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentSubText" inherits="GameFontNormalSmall" justifyH="LEFT"/>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-MinusButton-UP">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<DisabledTexture file="Interface\Buttons\UI-PlusButton-Disabled">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</DisabledTexture>
		<ButtonText name="$parentText" justifyH="LEFT">
			<Size>
				<AbsDimension x="0" y="0"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentHighlight" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="2" y="1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont inherits="GameFontNormalSmall" />
	</Button>

	<Button name="FishingLocationButtonTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="263" y="16"/>
		</Size>
		<NormalTexture file="Interface\Buttons\UI-MinusButton-UP">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
			<Size>
				<AbsDimension x="16" y="16"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="3" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<ButtonText name="$parentNormalText" nonspacewrap="true">
			<Size>
				<AbsDimension x="0" y="10"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors> 
		</ButtonText>
		<NormalFont style="GameFontNormalLeft"/>
		<HighlightFont style="GameFontHighlightLeft"/>
		<DisabledFont style="GameFontHighlightLeft"/>
		<Frames>
			<Button name="$parentIcon" hidden="true">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="21" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentTexture"/>
					</Layer>
				</Layers>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonDown", "RightButtonUp");
			</OnLoad>
			<OnEnter>
				FishingBuddy.Locations.Button_OnEnter(self);
			</OnEnter>
			<OnLeave>
				FishingBuddy.Locations.Button_OnLeave(self);
			</OnLeave>
			<OnClick>
				FishingBuddy.Locations.Button_OnClick(self, button, down);
			</OnClick>
		</Scripts>
	</Button>

	<Frame name="FishingLocationsFrame" setAllPoints="true" enableMouse="true" parent="FishingBuddyFrame" hidden="true">
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="45"/>
		</HitRectInsets>
		<Frames>
			<Frame name="FishingBuddyLocationsMenu" inherits="UIDropDownMenuTemplate">
				<Scripts>
					<OnLoad>
						self:SetFrameLevel(0);
						UIDropDownMenu_SetWidth(self, 180);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="FishingLocationsSwitchButton" inherits="UIPanelButtonTemplate" text="" hidden="false">
				<Size>
					<AbsDimension x="160" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-24"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						FishingBuddy.Locations.SwitchDisplay();
					</OnClick>
					<OnEnter>
						FishingBuddy.Locations.SwitchButton_OnEnter();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<CheckButton name="FishingBuddyOptionSLZ" inherits="OptionsSmallCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocationsSwitchButton" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Frame name="FishingLocationExpandButtonFrame">
				<Size>
					<AbsDimension x="54" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="FishingBuddyFrameInset" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-3" y="-9"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="FishingLocationExpandTabLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-ExpandTab-Left">
							<Size>
								<AbsDimension x="10" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT"/>
							</Anchors>
						</Texture>
						<Texture name="FishingLocationExpandTabMiddle" file="Interface\QuestFrame\UI-QuestLogSortTab-Middle">
							<Size>
								<AbsDimension x="38" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="FishingLocationExpandTabLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="6"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
						<Texture name="FishingLocationExpandTabRight" file="Interface\QuestFrame\UI-QuestLogSortTab-Right">
							<Size>
								<AbsDimension x="8" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="FishingLocationExpandTabMiddle" relativePoint="RIGHT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="FishingLocationsCollapseAllButton" hidden="false" inherits="FishingBuddyCollpaseAllTemplate">
						<Size>
							<AbsDimension x="40" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="FishingLocationExpandTabLeft" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:SetFrameLevel(self:GetFrameLevel() + 1);
								getglobal(self:GetName()):SetText(ALL);
							</OnLoad>
							<OnClick>
								FishingLocationsCollapseAllButton_OnClick(self, button, down);
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</Frame>

			<ScrollFrame name="FishingLocsScrollFrame" hidden="false" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="230" y="351"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="FishingBuddyFrameInset" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-26" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="FishingLocationsScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="108"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						GameTooltip:Hide();
                        FauxScrollFrame_OnVerticalScroll(self, offset,
						    FishingBuddy.Locations.FRAME_THINGIEHEIGHT, FishingBuddy.Locations.Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>

			<Frame name="FishingLocationHighlightFrame" hidden="true">
				<Size>
					<AbsDimension x="230" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="FishingLocationHighlight" file="Interface\Buttons\UI-Listbox-Highlight2"/>
					</Layer>
				</Layers>
			</Frame>

			<Button name="FishingLocations1" inherits="FishingLocationButtonTemplate" hidden="true" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingBuddyFrameInset" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="8" y="8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations2" inherits="FishingLocationButtonTemplate" hidden="true" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations3" inherits="FishingLocationButtonTemplate" hidden="true" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations4" inherits="FishingLocationButtonTemplate" hidden="true" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations5" inherits="FishingLocationButtonTemplate" hidden="true" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations6" inherits="FishingLocationButtonTemplate" hidden="true" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations7" inherits="FishingLocationButtonTemplate" hidden="true" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations8" inherits="FishingLocationButtonTemplate" hidden="true" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations9" inherits="FishingLocationButtonTemplate" hidden="true" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations10" inherits="FishingLocationButtonTemplate" hidden="true" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations11" inherits="FishingLocationButtonTemplate" hidden="true" id="11">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations12" inherits="FishingLocationButtonTemplate" hidden="true" id="12">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations13" inherits="FishingLocationButtonTemplate" hidden="true" id="13">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations12" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations14" inherits="FishingLocationButtonTemplate" hidden="true" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations13" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations15" inherits="FishingLocationButtonTemplate" hidden="true" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations14" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations16" inherits="FishingLocationButtonTemplate" hidden="true" id="16">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations15" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations17" inherits="FishingLocationButtonTemplate" hidden="true" id="17">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations16" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations18" inherits="FishingLocationButtonTemplate" hidden="true" id="18">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations17" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations19" inherits="FishingLocationButtonTemplate" hidden="true" id="19">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations18" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations20" inherits="FishingLocationButtonTemplate" hidden="true" id="20">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations19" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations21" inherits="FishingLocationButtonTemplate" hidden="true" id="21">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations20" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="FishingLocations22" inherits="FishingLocationButtonTemplate" hidden="true" id="22">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="FishingLocations21" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				FishingBuddy.Locations.OnLoad(self);
			</OnLoad>
			<OnEvent>
				FishingBuddy.Locations.OnEvent(self, event, ...);
			</OnEvent>
			<OnShow>
				FishingBuddy.Locations.OnShow(self);
			</OnShow>
			<OnMouseWheel>
				-- FishingLocationsFrame_OnMouseWheel(self, arg1);
				return;
			</OnMouseWheel>
		</Scripts>
	</Frame>
</Ui>
