<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="FishingBuddyFrame.lua"/>
    <Button name="FishingBuddyTabButtonTemplate" virtual="true" hidden="true">
        <Size>
            <AbsDimension x="115" y="32"/>
        </Size>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="20" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT">
        					<Offset>
        						<AbsDimension x="0" y="5"/>
        					</Offset>
        				</Anchor>
        			</Anchors>
					<TexCoords left="0" right="0.15625" top="0" bottom="1.0"/>
        		</Texture>
			<Texture name="$parentMiddleDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="88" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.15625" right="0.84375" top="0" bottom="1.0"/>
        		</Texture>
			<Texture name="$parentRightDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="20" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
        			</Anchors>
				<TexCoords left="0.84375" right="1.0" top="0" bottom="1.0"/>
        		</Texture>
			<Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="20" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT"/>
        			</Anchors>
				<TexCoords left="0" right="0.15625" top="0" bottom="1.0"/>
        		</Texture>
			<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="88" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
        			</Anchors>
				<TexCoords left="0.15625" right="0.84375" top="0" bottom="1.0"/>
        		</Texture>
			<Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="20" y="32"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
        			</Anchors>
				<TexCoords left="0.84375" right="1.0" top="0" bottom="1.0"/>
        		</Texture>
        	</Layer>
        </Layers>
		<ButtonText name="$parentText">
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="3"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont inherits="GameFontNormalSmall" />
		<HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="10" y="2"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT">
					<Offset>
						<AbsDimension x="-10" y="2"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 4);
			</OnLoad>
			<OnClick>
				PanelTemplates_Tab_OnClick(FishingBuddyFrame);
				FishingBuddyFrameTab_OnClick();
			</OnClick>
			<OnShow>
				PanelTemplates_TabResize(0);
				getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 30);
			</OnShow>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				GameTooltip:SetText(MicroButtonTooltipText(TEXT(this.tooltip), this.toggle),
									1.0,1.0,1.0 );
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
    </Button>

    <Frame name="FishingBuddySmallHeaderTemplate" virtual="true" hidden="true">
	<Layers>
	    <Layer level="BACKGROUND">
		<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
			<Size>
				<AbsDimension x="256" y="256"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="2" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Texture>
		<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
			<Size>
				<AbsDimension x="128" y="256"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="258" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Texture>
		<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
			<Size>
				<AbsDimension x="256" y="256"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="2" y="-257"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Texture>
		<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
			<Size>
				<AbsDimension x="128" y="256"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="258" y="-257"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Texture>
	    </Layer>
	</Layers>
    </Frame>

    <Frame name="FishingBuddyFrame" toplevel="true" movable="true" enableMouse="true" parent="UIParent" hidden="true">
        <Size>
            <AbsDimension x="384" y="512"/>
        </Size>
        <Anchors>
            <Anchor point="TOPLEFT">
                <Offset>
                    <AbsDimension x="0" y="-104"/>
                </Offset>
            </Anchor>
        </Anchors>
	<HitRectInsets>
		<AbsInset left="0" right="30" top="0" bottom="45"/>
	</HitRectInsets>
        <Layers>
            <Layer level="ARTWORK">
                <Texture name="FishingBuddyFramePortrait">
                    <Size>
                        <AbsDimension x="58" y="58"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT">
                            <Offset>
                                <AbsDimension x="9" y="-7"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Frame name="FishingBuddyNameFrame">
                <Size>
                    <AbsDimension x="109" y="12"/>
                </Size>
                 <Anchors>
                    <Anchor point="CENTER">
                        <Offset>
                            <AbsDimension x="6" y="232"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <FontString name="FishingBuddyNameText" inherits="GameFontNormal" text="NAME">
                            <Size>
                                <AbsDimension x="300" y="12"/>
                            </Size>
                            <Anchors>
                                <Anchor point="CENTER"/>
                            </Anchors>
                            <Color r="1.0" g="1.0" b="1.0"/>
                        </FontString>
                    </Layer>
                </Layers>
                <Scripts>
                     <OnLoad>
                        this:SetFrameLevel(this:GetFrameLevel() + 1);
                    </OnLoad>
                </Scripts>
            </Frame>
            <Button name="FishingBuddyCloseButton" inherits="UIPanelCloseButton">
                <Anchors>
                    <Anchor point="CENTER" relativeTo="FishingBuddyFrame" relativePoint="TOPRIGHT">
                        <Offset>
                            <AbsDimension x="-44" y="-26"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnLoad>
                        this:SetFrameLevel(this:GetFrameLevel() + 4);
                    </OnLoad>
                </Scripts>
            </Button>
        </Frames>
        <Scripts>
	    <OnLoad>
		FishingBuddyFrame_OnLoad();
	    </OnLoad>
            <OnEvent>
                FishingBuddyFrame_OnEvent(event);
            </OnEvent>
            <OnShow>
                FishingBuddyFrame_OnShow();
            </OnShow>
	    <OnHide>
		FishingBuddyFrame_OnHide();
	    </OnHide>
        </Scripts>
    </Frame>
</Ui>

