<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="CharacterFrame.lua"/>
    <Frame name="CharacterFrame" toplevel="true" movable="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="CharacterFramePortrait">
                    <Size>
                        <AbsDimension x="60" y="60"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT">
                            <Offset>
                                <AbsDimension x="7" y="-6"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Frame name="CharacterNameFrame">
                <Size>
                    <AbsDimension x="109" y="12"/>
                </Size>
                 <Anchors>
                    <Anchor point="CENTER">
                        <Offset>
                            <AbsDimension x="6" y="232"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <FontString name="CharacterNameText" 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>
                        self:SetFrameLevel(self:GetFrameLevel() + 1);
                    </OnLoad>
                </Scripts>
            </Frame>
            <Button name="CharacterFrameCloseButton" inherits="UIPanelCloseButton">
                <Anchors>
                    <Anchor point="CENTER" relativeTo="CharacterFrame" relativePoint="TOPRIGHT">
                        <Offset>
                            <AbsDimension x="-44" y="-25"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnLoad>
                        self:SetFrameLevel(self:GetFrameLevel() + 4);
                    </OnLoad>
                </Scripts>
            </Button>
            <Button name="CharacterFrameTab1" inherits="CharacterFrameTabButtonTemplate" id="1" text="CHARACTER">
                <Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="11" y="46"/>
						</Offset>
					</Anchor>
                </Anchors>
                <Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(MicroButtonTooltipText(CHARACTER_INFO, "TOGGLECHARACTER0"), 1.0,1.0,1.0 );
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
                </Scripts>
            </Button>
            <Button name="CharacterFrameTab2" inherits="CharacterFrameTabButtonTemplate" id="2" text="PETS">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="CharacterFrameTab1" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(MicroButtonTooltipText(PET, "TOGGLECHARACTER3"), 1.0,1.0,1.0 );
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
                </Scripts>
            </Button>
			<Button name="CharacterFrameTab3" inherits="CharacterFrameTabButtonTemplate" id="3" text="REPUTATION">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="CharacterFrameTab2" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(MicroButtonTooltipText(REPUTATION, "TOGGLECHARACTER2"), 1.0,1.0,1.0 );
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
                </Scripts>
            </Button>
			<Button name="CharacterFrameTab4" inherits="CharacterFrameTabButtonTemplate" id="4" text="SKILLS">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="CharacterFrameTab3" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(MicroButtonTooltipText(SKILLS, "TOGGLECHARACTER1"), 1.0,1.0,1.0 );
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
                </Scripts>
            </Button>
			<Button name="CharacterFrameTab5" inherits="CharacterFrameTabButtonTemplate" id="5" text="CURRENCY" hidden="true">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="CharacterFrameTab4" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(MicroButtonTooltipText(CURRENCY, "TOGGLECURRENCY"), 1.0,1.0,1.0 );
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
                </Scripts>
            </Button>
        </Frames>
        <Scripts>
			<OnLoad>
				CharacterFrame_OnLoad(self);
			</OnLoad>
            <OnEvent>
                CharacterFrame_OnEvent(self, event, ...);
            </OnEvent>
            <OnShow>
                CharacterFrame_OnShow(self);
            </OnShow>
			<OnHide>
				CharacterFrame_OnHide(self);
			</OnHide>
        </Scripts>
    </Frame>
</Ui>
