<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">

    <Frame name="GwCharacterMenuFilledTemplate" inherits="SecureHandlerBaseTemplate" hidden="true" virtual="true">
        <Size x="231" y="498"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="10" y="-20"></Anchor>
        </Anchors>
        <Frames>
            <Button name="$parentSkills" parentKey="skillsMenu" inherits="GwCharacterPanelMenuButtonTemplate,SecureHandlerClickTemplate" text="Skills">
                <Size x="231" y="36"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"></Anchor>
                </Anchors>
            </Button>
            <Button name="$parentHonor" parentKey="honorMenu" inherits="GwCharacterPanelMenuButtonTemplate,SecureHandlerClickTemplate" text="PVP">
                <Size x="231" y="36"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeKey="$parent.skillsMenu" relativePoint="BOTTOMLEFT"></Anchor>
                </Anchors>
            </Button>
            <Button name="$parentRunes" parentKey="runeMenu" inherits="GwCharacterPanelMenuButtonTemplate,SecureHandlerClickTemplate" text="RUNES">
                <Size x="231" y="36"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeKey="$parent.honorMenu" relativePoint="BOTTOMLEFT"></Anchor>
                </Anchors>
            </Button>
            <Button name="$parentPet" parentKey="petMenu" inherits="GwCharacterPanelMenuButtonTemplate,SecureHandlerClickTemplate,SecureHandlerStateTemplate" text="PET">
                <Size x="231" y="36"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeKey="$parent.runeMenu" relativePoint="BOTTOMLEFT"></Anchor>
                </Anchors>
            </Button>
        </Frames>
        <Scripts>
            <OnLoad>
                self.skillsMenu:SetText(SKILLS)
                self.honorMenu:SetText(PVP)
                self.runeMenu:SetText(RUNES)
                self.petMenu:SetText(PET)
            </OnLoad>
        </Scripts>
    </Frame>

    <Frame name="GwPetPaperdoll" inherits="GwPetPaperdollBaseTemplate" virtual="true">
        <Frames>
            <Frame parentKey="happiness" enableMouse="true" hidden="true">
                <Size x="64" y="64"></Size>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-145" y="-45"></Anchor>
                </Anchors>
                <Scripts>
                    <OnEnter>
                        GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
                        GameTooltip:SetText(format(PET_DIET_TEMPLATE, BuildListString(GetPetFoodTypes())))
                        GameTooltip:Show()
                    </OnEnter>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                </Scripts>
            </Frame>
        </Frames>
        <Scripts>
            <OnLoad>
                self.stats:RegisterEvent("UNIT_PET_TRAINING_POINTS")
                self.stats:RegisterEvent("UNIT_HAPPINESS")
            </OnLoad>
        </Scripts>
    </Frame>


    <Frame name="GwPaperHonor" inherits="SecureHandlerBaseTemplate" hidden="true" virtual="true">
        <Size x="608" y="621"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="245" y="-5"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="ARTWORK">
                <Texture file="Interface\AddOns\GW2_UI\textures\character\paperdollbg.png">
                    <Size x="608" y="621"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Button name="$parentBackButton" parentKey="backButton" inherits="GwCharacterPanelMenuButtonBackSecureTemplate">
                <Size x="231" y="50"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="-232" y="-10"></Anchor>
                </Anchors>
            </Button>
            <Frame name="$parentHonorDetails" parentKey="HonorDetails" inherits="SecureHandlerBaseTemplate" hidden="true" virtual="true">
                <Size x="580" y="576"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="-2" y="-10"></Anchor>
                </Anchors>
            </Frame>
        </Frames>
    </Frame>

    <Frame name="GwHonorInfoRow" virtual="true" frameStrata="HIGH">
        <Size x="512" y="96"></Size>
        <Anchors>
            <Anchor point="TOPLEFT"></Anchor>
        </Anchors>
        <Layers>
            <Layer textureSubLevel="3">
                <FontString parentKey="Header" text="Header" inherits="GameFontNormal" justifyV="TOP" justifyH="LEFT">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="5" y="-10" />
                    </Anchors>
                </FontString>
                <FontString parentKey="Rank" inherits="GameFontNormalSmall" justifyV="TOP" justifyH="LEFT">
                    <Anchors>
                        <Anchor point="LEFT" relativeKey="$parent.Header" relativePoint="RIGHT" x="5" y="-1"/>
                    </Anchors>
                </FontString>
                <Texture parentKey="icon">
                    <Size x="24" y="24"/>
                    <Anchors>
                        <Anchor point="RIGHT" relativeKey="$parent.Header" relativePoint="LEFT" x="-5" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <StatusBar parentKey="progressBar" drawLayer="BORDER" minValue="0" maxValue="1" defaultValue="0" hidden="true">
                <Size x="468" y="29"/>
                <Anchors>
                    <Anchor point="TOPLEFT" x="22" y="-45"/>
                </Anchors>
                <Frames>
                    <Frame name="GWHonorFrameProgressButton" enableMouse="true" setAllPoints="true">
                        <Scripts>
                            <OnEnter>
                                GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
                                GameTooltip:SetText(RANK_POSITION, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b)
                                GameTooltip:AddLine(NEWBIE_TOOLTIP_RANK_POSITION, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, true)
                                GameTooltip:Show()
                            </OnEnter>
                            <OnLeave function="GameTooltip_Hide"/>
                        </Scripts>
                    </Frame>
                </Frames>
                <BarTexture name="$parentBar" file="Interface/AddOns/GW2_UI/textures/uistuff/gwstatusbar.png"/>
                <Layers>
                    <Layer level="BACKGROUND">
                        <Texture parentKey="border" file="Interface/AddOns/GW2_UI/textures/uistuff/gwstatusbar-bg.png">
                            <Anchors>
                                <Anchor point="TOPLEFT" x="-3" y="3"></Anchor>
                                <Anchor point="BOTTOMRIGHT" x="3" y="-3"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>
            </StatusBar>
        </Frames>
    </Frame>

    <Button name="GwDressingRoom" inherits="SecureHandlerBaseTemplate" enableMouse="true" registerForClicks="LeftButtonUp" virtual="true">
        <Size x="608" y="621"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="245" y="-5"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="ARTWORK">
                <Texture file="Interface\AddOns\GW2_UI\textures\character\paperdollbg.png">
                    <Size x="608" y="621"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="2">
                <Texture parentKey="classIcon" alphaMode="ADD" file="Interface\AddOns\GW2_UI\textures\party\classicons.png">
                    <Size x="50" y="50"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-145" y="-45"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <FontString parentKey="characterName" text="Unknown" justifyH="LEFT">
                    <Size x="180" y="20"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="-5"></Anchor>
                    </Anchors>
                </FontString>
                <FontString parentKey="characterData" text="Level %d class" justifyH="LEFT">
                    <Size x="180" y="20"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="-25"></Anchor>
                    </Anchors>
                </FontString>
                <FontString parentKey="itemLevel" text="100" justifyH="LEFT">
                    <Size x="180" y="20"></Size>
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.classIcon" x="10" y="0"></Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <Frame parentKey="stats">
                <Size x="184" y="301"></Size>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="-105"></Anchor>
                </Anchors>
                <Layers>
                    <Layer level="ARTWORK">
                        <Texture file="Interface\AddOns\GW2_UI\textures\character\statsbg.png">
                            <Size x="256" y="512"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                    <Layer level="OVERLAY">
                        <FontString parentKey="header" text="Attributes" justifyH="LEFT">
                            <Size x="180" y="40"></Size>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="8" y="2"></Anchor>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
                <Scripts>
                    <OnLoad>
                        self.header:SetFont(DAMAGE_TEXT_FONT, 14, "")
                        self.header:SetText("|TInterface\\AddOns\\GW2_UI\\textures\\party\\roleicon-healer.png:12:12:0:1|t " .. STAT_CATEGORY_ATTRIBUTES)
                        self:RegisterEvent("PLAYER_ENTERING_WORLD")

                        self:RegisterEvent("CHARACTER_POINTS_CHANGED")
                        self:RegisterEvent("UNIT_MODEL_CHANGED")
                        self:RegisterEvent("UNIT_LEVEL")
                        self:RegisterEvent("UNIT_STATS")
                        self:RegisterEvent("UNIT_RANGEDDAMAGE")
                        self:RegisterEvent("UNIT_ATTACK_POWER")
                        self:RegisterEvent("UNIT_RANGED_ATTACK_POWER")
                        self:RegisterEvent("UNIT_ATTACK")
                        self:RegisterEvent("UNIT_SPELL_HASTE")
                        self:RegisterEvent("UNIT_RESISTANCES")
                        self:RegisterEvent("PLAYER_GUILD_UPDATE")
                        self:RegisterEvent("SKILL_LINES_CHANGED")
                        self:RegisterEvent("COMBAT_RATING_UPDATE")
                        self:RegisterEvent("UNIT_NAME_UPDATE")
                        self:RegisterEvent("BAG_UPDATE")
                        self:RegisterEvent("PLAYER_EQUIPMENT_CHANGED")
                        self:RegisterEvent("PLAYERBANKSLOTS_CHANGED")
                        self:RegisterEvent("PLAYER_AVG_ITEM_LEVEL_UPDATE")
                        self:RegisterEvent("PLAYER_DAMAGE_DONE_MODS")
                        self:RegisterEvent("SPELL_POWER_CHANGED")
                        self:RegisterEvent("CHARACTER_ITEM_FIXUP_NOTIFICATION")
                        self:RegisterEvent("UNIT_NAME_UPDATE")
                        self:RegisterEvent("UNIT_INVENTORY_CHANGED")
                        self:RegisterEvent("UPDATE_INVENTORY_ALERTS")

                        self:RegisterUnitEvent("UNIT_DAMAGE", "player")
                        self:RegisterUnitEvent("UNIT_ATTACK_SPEED", "player")
                        self:RegisterUnitEvent("UNIT_MAXHEALTH", "player")
                        self:RegisterUnitEvent("UNIT_AURA", "player")
                    </OnLoad>
                </Scripts>
            </Frame>
            <Frame name="$parentGear" parentKey="gear">
                <Size x="184" y="301"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="10" y="-10"></Anchor>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-10" y="10"></Anchor>
                </Anchors>
            </Frame>
            <PlayerModel inherits="ModelWithZoomTemplate ModelWithControlsTemplate ModelTemplate" enableMouse="true" parentKey="model">
                <Size x="355" y="598"></Size>
                <Anchors>
                    <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="60" y="20"></Anchor>
                </Anchors>
            </PlayerModel>
        </Frames>
    </Button>

    <Frame name="GwPetContainer" inherits="SecureHandlerBaseTemplate" virtual="true">
        <Size x="853" y="627"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0"></Anchor>
        </Anchors>
    </Frame>
</Ui>
