<GuiXml>
    <Animations>
        <AnimationTimeline name="ZO_DifficultyBracketGlowAnimation" playbackType="LOOP" loopCount="LOOP_INDEFINITELY">
            <Animations>
                <AlphaAnimation duration="1000" startAlpha="0.5" endAlpha="1"/>
                <AlphaAnimation delay="1500" duration="1000" startAlpha="1" endAlpha="0.5"/>
            </Animations>
        </AnimationTimeline>
        <AnimationTimeline name="ZO_UnitFrameFadeAnimation">
            <Animations>
                <AlphaAnimation duration="100" startAlpha="0" endAlpha="1">
                    <OnPlay>
                        animatingControl:SetHidden(false)
                    </OnPlay>
                    <OnStop>
                        if(completedPlaying and self:GetTimeline():IsPlayingBackward()) then
                            animatingControl:SetHidden(true)
                        end
                    </OnStop>
                </AlphaAnimation>
            </Animations>
        </AnimationTimeline>
    </Animations>

    <Controls>
        <StatusBar name="ZO_UnitFrameStatus" virtual="true" />

        <StatusBar name="ZO_UnitFrameStatus_Keyboard_Template" inherits="ZO_DefaultStatusBarBase" virtual="true">
            <Dimensions y="32" />
        </StatusBar>

        <StatusBar name="ZO_UnitFrameStatus_Gamepad_Template" virtual="true"/>

        <StatusBar name="ZO_GroupUnitFrameStatus" virtual="true">
            <OnInitialized>
                self.gloss = self:GetNamedChild("Gloss")
            </OnInitialized>
            
            <Controls>
                <StatusBar name="$(parent)Gloss"/>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_GroupUnitFrameStatus_Keyboard_Template" inherits="ZO_ArrowStatusBarWithBG" virtual="true">
            <Controls>
                <Control name="$(parent)BG" hidden="false" />
                <Control name="$(parent)Overlay" hidden="false" />
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_GroupUnitFrameStatus_Gamepad_Template" inherits="ZO_DefaultStatusBar" virtual="true">
            <Controls>
                <Control name="$(parent)BG" hidden="true" />
                <Control name="$(parent)Overlay" hidden="true" />
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_CompanionUnitFrameStatus" virtual="true">
            <OnInitialized>
                self.gloss = self:GetNamedChild("Gloss")
            </OnInitialized>

            <Controls>
                <StatusBar name="$(parent)Gloss"/>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_CompanionUnitFrameStatus_Keyboard_Template" inherits="ZO_ArrowStatusBarWithBG" virtual="true">
            <Controls>
                <Control name="$(parent)BG" hidden="false" />
                <Control name="$(parent)Overlay" hidden="false" />
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_CompanionUnitFrameStatus_Gamepad_Template" inherits="ZO_DefaultStatusBar" virtual="true">
            <Controls>
                <Control name="$(parent)BG" hidden="true" />
                <Control name="$(parent)Overlay" hidden="true" />
            </Controls>
        </StatusBar>

        <Label name="ZO_UnitFrameBarText" virtual="true" />
        <Label name="ZO_UnitFrameBarText_Keyboard_Template" font="ZoFontGameOutline" modifyTextType="NONE" virtual="true" />
        <Label name="ZO_UnitFrameBarText_Gamepad_Template" font="ZoFontGamepad18" modifyTextType="UPPERCASE" virtual="true" />

        <Label name="ZO_UnitFrameResourceNumbers_Gamepad_Template" inherits="ZO_PlayerAttributeResourceNumbers_Gamepad_Template" font="ZoFontGamepadBold20" virtual="true" />

        <Control name="ZO_GroupFrameAnchor" clampedToScreen="true" virtual="true" />

        <Control name="ZO_RaidFrameAnchor_Keyboard_Template" virtual="true">
            <Controls>
                <Label name="$(parent)GroupName" font="ZoFontGameOutline" modifyTextType="NONE" />
                <Texture name="$(parent)BattlegroundTeam" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_RaidFrameAnchor_Gamepad_Template" virtual="true">
            <Controls>
                <Label name="$(parent)GroupName" font="ZoFontGamepad20" modifyTextType="UPPERCASE" />
                <Texture name="$(parent)BattlegroundTeam" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_RaidFrameAnchor" inherits="ZO_GroupFrameAnchor" virtual="true">
            <Controls>
                <Label name="$(parent)GroupName">
                    <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
                    <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT"/>
                </Label>

                <Texture name="$(parent)BattlegroundTeam" hidden="true">
                    <Dimensions x="64" y="64" />
                    <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" offsetX="-10" />
                </Texture>
            </Controls>
        </Control>

        <!-- Empty unitframe-sized backgrounds to help arrange group members for drag and drop -->
        <Control name="ZO_GroupFrameMoveHelper" mouseEnabled="true" hidden="true" virtual="true">
            <OnReceiveDrag>
                UnitFrameEmpty_HandleMouseReceiveDrag(self)
            </OnReceiveDrag>

            <Controls>
                <Texture name="$(parent)BG" color="55000000">
                    <AnchorFill />
                    <TextureCoords left="0" right="1" top="0" bottom="0.8" />
                </Texture>

                <Label name="$(parent)Text" font="ZoFontGameOutline" horizontalAlignment="CENTER" text="SI_UNIT_FRAME_EMPTY_SLOT">
                    <Dimensions y="16" />
                    <Anchor point="LEFT" offsetX="2" />
                    <Anchor point="RIGHT" offsetX="-2" />
                </Label>
            </Controls>
        </Control>

        <Texture name="ZO_DifficultyBracketGlow" blendMode="ADD" resizeToFitFile="true" virtual="true">
            <OnInitialized>
                local timeline = ANIMATION_MANAGER:CreateTimelineFromVirtual("ZO_DifficultyBracketGlowAnimation", self)
                timeline:PlayFromStart()
            </OnInitialized>
        </Texture>

        <Control name="ZO_UnitFrame" mouseEnabled="true" clampedToScreen="true" virtual="true">
            <Dimensions x="230" y="34" />

            <OnMouseUp>
                UnitFrame_HandleMouseUp(self, button, upInside)
            </OnMouseUp>

            <OnMouseEnter>
                UnitFrame_HandleMouseEnter(self)
            </OnMouseEnter>

            <OnMouseExit>
                UnitFrame_HandleMouseExit(self)
            </OnMouseExit>

            <OnReceiveDrag>
                UnitFrame_HandleMouseReceiveDrag(self)
            </OnReceiveDrag>

            <Controls>
                <!-- In the same vein, this is adjusted per-UnitFrame.  It shows the buffs that are somehow designated as "high priority" -->
                <Texture name="$(parent)HighPriorityBuffHighlight" hidden="true">
                    <Anchor point="TOPLEFT" />

                    <Controls>
                        <Texture name="$(parent)Right">
                            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" />
                        </Texture>

                        <Texture name="$(parent)Icon" layer="2">
                            <Anchor point="TOPRIGHT" relativeTo="$(parent)Right" />
                        </Texture>
                    </Controls>
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_NamedUnitFrame" inherits="ZO_UnitFrame" virtual="true">
            <Controls>
                <Label name="$(parent)Name" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" wrapMode="TRUNCATE" maxLineCount="1" />
            </Controls>
        </Control>

        <Control name="ZO_GroupUnitFrame_Keyboard_Template" virtual="true">
            <Dimensions x="ZO_KEYBOARD_GROUP_FRAME_WIDTH" y="ZO_KEYBOARD_GROUP_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontGameBold" wrapMode="TRUNCATE">
                    <DimensionConstraints minX="170" maxX="215" />
                </Label>
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Keyboard_Template" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/unitframe_group_left.dds">
                            <TextureCoords left="0" right="1" top="0" bottom="1" />
                            <Anchor point="TOPLEFT" />
                            <Dimensions x="256" y="128" />
                        </Texture>
                        <Texture name="$(parent)Right" textureFile="EsoUI/Art/UnitFrames/unitframe_group_right.dds" hidden="false">
                            <TextureCoords left="0" right="1" top="0" bottom="1" />
                            <Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPRIGHT"/>
                            <Dimensions x="32" y="128"/>
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="true" />
                <Texture name="$(parent)AssignmentIcon">
                    <Dimensions x="32" y="32"/>
                    <Anchor point="LEFT"/>
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_GroupUnitFrame_Gamepad_Template" virtual="true">
            <Dimensions x="ZO_GAMEPAD_GROUP_FRAME_WIDTH" y="ZO_GAMEPAD_GROUP_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontGamepad34" wrapMode="ELLIPSIS" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Gamepad_Template" />
                <Control name="$(parent)Background1">
                    <Dimensions x="163" y="12" />
                    <Anchor point="TOPLEFT" offsetX="-2" offsetY="43" />
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/Gamepad/gp_RaidMeter.dds" color="000000">
                            <TextureCoords left="0" right="1" top="0.25" bottom="0.75" />
                            <AnchorFill />
                        </Texture>
                        <Texture name="$(parent)Right" textureFile="EsoUI/Art/UnitFrames/Gamepad/gp_RaidMeter.dds" hidden="true">
                            <TextureCoords left="0" right="1" top="0.25" bottom="0.75" />
                            <AnchorFill />
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="false" />
                <Texture name="$(parent)AssignmentIcon">
                    <Dimensions x="42" y="42"/>
                    <Anchor point="TOPLEFT" offsetX="-54" offsetY="8"/>
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_GroupUnitFrame" inherits="ZO_NamedUnitFrame" virtual="true">
            <Controls>
                <Label name="$(parent)Status" hidden="true" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" />
                        <Texture name="$(parent)Right" />
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" textureFile="EsoUI/Art/HUD/Gamepad/LootHistoryBG.dds">
                    <Dimensions x="256" y="90" />
                    <Anchor point="BOTTOMLEFT" offsetX="-10" offsetY="-9"/>
                </Texture>
                <Texture name="$(parent)AssignmentIcon" layer="OVERLAY" hidden="true"/>
                <Texture name="$(parent)ElectionIcon" layer="OVERLAY" hidden="true">
                    <Dimensions x="32" y="32" />
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_CompanionGroupUnitFrame_Keyboard_Template" mouseEnabled="false" virtual="true">
            <Dimensions x="ZO_KEYBOARD_GROUP_COMPANION_FRAME_WIDTH" y="ZO_KEYBOARD_GROUP_COMPANION_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontWinH5" wrapMode="TRUNCATE" />
                <Label name="$(parent)Status" font="ZoFontWinH5" modifyTextType="NONE" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/unitframe_group_withCompanion.dds">
                            <TextureCoords left="0" right="0.5625" top="0" bottom="1" />
                            <Anchor point="TOPLEFT" />
                            <Dimensions x="256" y="128" />
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionGroupUnitFrame_Gamepad_Template" virtual="true">
            <Dimensions x="ZO_GAMEPAD_GROUP_COMPANION_FRAME_WIDTH" y="ZO_GAMEPAD_GROUP_COMPANION_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontGamepad27" wrapMode="ELLIPSIS" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Gamepad_Template" />
                <Control name="$(parent)Background1">
                    <Dimensions x="123" y="12" />
                    <Anchor point="TOPLEFT" offsetX="-2" offsetY="95" />
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/Gamepad/gp_RaidMeter.dds" color="000000">
                            <TextureCoords left="0" right="1" top="0.25" bottom="0.75" />
                            <AnchorFill />
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="false" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionGroupUnitFrame" inherits="ZO_NamedUnitFrame" virtual="true">
            <Controls>
                <Label name="$(parent)Status" hidden="true" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" />
                        <Texture name="$(parent)Right" hidden="true" />
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" textureFile="EsoUI/Art/HUD/Gamepad/LootHistoryBG.dds">
                    <Dimensions x="256" y="200" />
                    <Anchor point="BOTTOMLEFT" offsetX="-10" offsetY="-9"/>
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_CompanionUnitFrame_Keyboard_Template" virtual="true">
            <Dimensions x="ZO_KEYBOARD_COMPANION_FRAME_WIDTH" y="ZO_KEYBOARD_COMPANION_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontGameBold" wrapMode="TRUNCATE" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Keyboard_Template" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/unitframe_group_left.dds">
                            <TextureCoords left="0" right="1" top="0" bottom="1" />
                            <Anchor point="TOPLEFT" />
                            <Dimensions x="256" y="128" />
                        </Texture>
                        <Texture name="$(parent)Right" textureFile="EsoUI/Art/UnitFrames/unitframe_group_right.dds" hidden="false">
                            <TextureCoords left="0" right="1" top="0" bottom="1" />
                            <Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPRIGHT"/>
                            <Dimensions x="32" y="128"/>
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionUnitFrame_Gamepad_Template" virtual="true">
            <Dimensions x="ZO_GAMEPAD_COMPANION_FRAME_WIDTH" y="ZO_GAMEPAD_COMPANION_FRAME_HEIGHT" />
            <Controls>
                <Label name="$(parent)Name" font="ZoFontGamepad34" wrapMode="ELLIPSIS" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Gamepad_Template" />
                <Control name="$(parent)Background1">
                    <Dimensions x="163" y="12" />
                    <Anchor point="TOPLEFT" offsetX="-2" offsetY="43" />
                    <Controls>
                        <Texture name="$(parent)Left" textureFile="EsoUI/Art/UnitFrames/Gamepad/gp_RaidMeter.dds" color="000000">
                            <TextureCoords left="0" right="1" top="0.25" bottom="0.75" />
                            <AnchorFill />
                        </Texture>
                        <Texture name="$(parent)Right" textureFile="EsoUI/Art/UnitFrames/Gamepad/gp_RaidMeter.dds" hidden="true">
                            <TextureCoords left="0" right="1" top="0.25" bottom="0.75" />
                            <AnchorFill />
                        </Texture>
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" hidden="false" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionUnitFrame" inherits="ZO_NamedUnitFrame" virtual="true">
            <Controls>
                <Label name="$(parent)Status" hidden="true" />
                <Control name="$(parent)Background1">
                    <Anchor point="TOPLEFT"/>
                    <Controls>
                        <Texture name="$(parent)Left" />
                        <Texture name="$(parent)Right" />
                    </Controls>
                </Control>
                <Texture name="$(parent)Background2" textureFile="EsoUI/Art/HUD/Gamepad/LootHistoryBG.dds">
                    <Dimensions x="256" y="90" />
                    <Anchor point="BOTTOMLEFT" offsetX="-10" offsetY="-9"/>
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_RaidUnitFrame_Keyboard_Template" virtual="true">
            <Dimensions x="ZO_KEYBOARD_RAID_FRAME_WIDTH" y="ZO_KEYBOARD_RAID_FRAME_HEIGHT" />
            <Controls>
                <Backdrop name="$(parent)BG" hidden="false" />
                <Texture name="$(parent)Background" hidden="true" />
                <Label name="$(parent)Name" font="ZoFontGameBold" wrapMode="TRUNCATE" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Keyboard_Template" />
                <Texture name="$(parent)ElectionIcon">
                    <Dimensions x="28" y="28" />
                    <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)BG" relativePoint="BOTTOMRIGHT" />
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_RaidUnitFrame_Gamepad_Template" virtual="true">
            <Dimensions x="ZO_GAMEPAD_RAID_FRAME_WIDTH" y="ZO_GAMEPAD_RAID_FRAME_HEIGHT" />
            <Controls>
                <Backdrop name="$(parent)BG" hidden="true" />
                <Texture name="$(parent)Background" hidden="false" />
                <Label name="$(parent)Name" font="ZoFontGamepad20" wrapMode="ELLIPSIS" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Gamepad_Template" />
                <Texture name="$(parent)ElectionIcon">
                    <Dimensions x="32" y="32" />
                    <Anchor point="RIGHT" offsetX="-2" />
                </Texture>
            </Controls>
        </Control>

        <Control name="ZO_RaidUnitFrame" inherits="ZO_NamedUnitFrame" virtual="true">
            <Controls>
                <Backdrop name="$(parent)BG">
                    <AnchorFill />
                    <Edge file="EsoUI/Art/Tooltips/UI-Border.dds" edgeFileWidth="128" edgeFileHeight="16" />
                    <Center file="EsoUI/Art/Tooltips/UI-TooltipCenter.dds" />
                    <Insets left="16" top="16" right="-16" bottom="-16" />
                </Backdrop>
                <Texture name="$(parent)Background" color="000000" alpha="0.8">
                    <AnchorFill />
                </Texture>
                <Label name="$(parent)Status" hidden="true" />
                <Texture name="$(parent)ElectionIcon" layer="OVERLAY" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionRaidUnitFrame_Keyboard_Template" virtual="true">
            <Dimensions x="ZO_KEYBOARD_RAID_FRAME_WIDTH" y="ZO_KEYBOARD_RAID_FRAME_HEIGHT" />
            <Controls>
                <Backdrop name="$(parent)BG" hidden="false" />
                <Texture name="$(parent)Background" hidden="true" />
                <Label name="$(parent)Name" font="ZoFontGameBold" wrapMode="TRUNCATE" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Keyboard_Template" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionRaidUnitFrame_Gamepad_Template" virtual="true">
            <Dimensions x="ZO_GAMEPAD_RAID_FRAME_WIDTH" y="ZO_GAMEPAD_RAID_FRAME_HEIGHT" />
            <Controls>
                <Backdrop name="$(parent)BG" hidden="true" />
                <Texture name="$(parent)Background" hidden="false" />
                <Label name="$(parent)Name" font="ZoFontGamepad20" wrapMode="ELLIPSIS" />
                <Label name="$(parent)Status" inherits="ZO_UnitFrameBarText_Gamepad_Template" />
            </Controls>
        </Control>

        <Control name="ZO_CompanionRaidUnitFrame" inherits="ZO_NamedUnitFrame" virtual="true">
            <Controls>
                <Backdrop name="$(parent)BG">
                    <AnchorFill />
                    <Edge file="EsoUI/Art/Tooltips/UI-Border.dds" edgeFileWidth="128" edgeFileHeight="16" />
                    <Center file="EsoUI/Art/Tooltips/UI-TooltipCenter.dds" />
                    <Insets left="16" top="16" right="-16" bottom="-16" />
                </Backdrop>
                <Texture name="$(parent)Background" color="000000" alpha="0.8">
                    <AnchorFill />
                </Texture>
                <Label name="$(parent)Status" hidden="true" />
            </Controls>
        </Control>

        <Control name="ZO_TargetUnitFrame_Keyboard_Template" virtual="true">
            <Anchor point="TOP" relativeTo="GuiRoot" offsetY="88" />
            <Controls>
                <Control name="$(parent)TextArea">
                    <Controls>
                        <Label name="$(grandparent)Level" font="ZoFontGameShadow" />
                        <Label name="$(grandparent)Name" font="ZoFontGameShadow" />
                    </Controls>
                </Control>

                <Texture name="$(parent)ChampionIcon">
                    <Anchor point="RIGHT" relativeTo="$(parent)TextArea" relativePoint="LEFT" offsetX="-2"/>
                    <Dimensions x="22" y="22"/>
                </Texture>

                <Texture name="$(parent)RankIcon">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)TextArea" relativePoint="TOPRIGHT" offsetX="2" offsetY="-4"/>
                    <Dimensions x="32" y="32"/>
                </Texture>

                <Control name="$(parent)BgContainer">
                    <Controls>
                        <Texture name="$(parent)BgLeft" inherits="ZO_TargetAttributeBgLeftAngle_Keyboard_Template" />
                        <Texture name="$(parent)BgRight" inherits="ZO_TargetAttributeBgRightAngle_Keyboard_Template" />
                        <Texture name="$(parent)BgCenter" inherits="ZO_TargetAttributeBgCenter_Keyboard_Template" />
                    </Controls>
                </Control>

                <Label name="$(parent)Caption" font="ZoFontGameShadow" modifyTextType="NONE" />

                <Texture name="$(parent)RightBracket">
                    <TextureCoords left="0" right="1" top="0" bottom="1" />
                </Texture>

                <StatusBar name="$(parent)BarLeft" inherits="ZO_TargetAttributeStatusBar_Keyboard_Template">
                    <Anchor point="LEFT" offsetX="7"/>
                    <Anchor point="RIGHT" relativePoint="CENTER" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
                <StatusBar name="$(parent)BarRight" inherits="ZO_TargetAttributeStatusBar_Keyboard_Template">
                    <Anchor point="RIGHT" offsetX="-7"/>
                    <Anchor point="LEFT" relativeTo="$(parent)BarLeft" relativePoint="RIGHT" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>

                <Texture name="$(parent)FrameLeft" inherits="ZO_TargetAttributeFrameLeftAngle_Keyboard_Template" />
                <Texture name="$(parent)FrameRight" inherits="ZO_TargetAttributeFrameRightAngle_Keyboard_Template" />
                <Texture name="$(parent)FrameCenter" inherits="ZO_TargetAttributeFrameCenter_Keyboard_Template" />

                <Label name="$(parent)ResourceNumbers" inherits="ZO_PlayerAttributeResourceNumbers_Keyboard_Template" />
            </Controls>
        </Control>

        <Control name="ZO_TargetUnitFrame_Gamepad_Template" virtual="true">
            <Anchor point="TOP" relativeTo="ZO_CompassFrame" relativePoint="BOTTOM" offsetY="20" />
            <Controls>
                <Control name="$(parent)TextArea">
                    <Controls>
                        <Label name="$(grandparent)Level" font="ZoFontGamepad36" />
                        <Label name="$(grandparent)Name" font="ZoFontGamepad36" />
                    </Controls>
                </Control>

                <Texture name="$(parent)ChampionIcon">
                    <Anchor point="RIGHT" relativeTo="$(parent)TextArea" relativePoint="LEFT" offsetX="-2"/>
                    <Dimensions x="32" y="32"/>
                </Texture>

                <Texture name="$(parent)RankIcon">
                    <Anchor point="LEFT" relativeTo="$(parent)TextArea" relativePoint="RIGHT" offsetX="2" />
                    <Dimensions x="40" y="40"/>
                </Texture>

                <Control name="$(parent)BgContainer">
                    <Controls>
                        <Texture name="$(parent)BgLeft" inherits="ZO_TargetAttributeBgLeftAngle_Gamepad_Template" />
                        <Texture name="$(parent)BgRight" inherits="ZO_TargetAttributeBgRightAngle_Gamepad_Template" />
                        <Texture name="$(parent)BgCenter" inherits="ZO_TargetAttributeBgCenter_Gamepad_Template" />
                    </Controls>
                </Control>

                <Label name="$(parent)Caption" font="ZoFontGamepad27" modifyTextType="UPPERCASE" />

                <Texture name="$(parent)RightBracket">
                    <!-- Mirror the right bracket -->
                    <TextureCoords left="1" right="0" top="0" bottom="1" />
                </Texture>

                <StatusBar name="$(parent)BarLeft" inherits="ZO_TargetAttributeStatusBar_Gamepad_Template">
                    <Anchor point="LEFT" offsetX="10" />
                    <Anchor point="RIGHT" relativePoint="CENTER" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
                <StatusBar name="$(parent)BarRight" inherits="ZO_TargetAttributeStatusBar_Gamepad_Template">
                    <Anchor point="RIGHT" offsetX="-9" />
                    <Anchor point="LEFT" relativeTo="$(parent)BarLeft" relativePoint="RIGHT" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>

                <Texture name="$(parent)FrameLeft" inherits="ZO_TargetAttributeFrameLeftAngle_Gamepad_Template" />
                <Texture name="$(parent)FrameRight" inherits="ZO_TargetAttributeFrameRightAngle_Gamepad_Template" />
                <Texture name="$(parent)FrameCenter" inherits="ZO_TargetAttributeFrameCenter_Gamepad_Template" />

                <Label name="$(parent)ResourceNumbers" inherits="ZO_UnitFrameResourceNumbers_Gamepad_Template" />
            </Controls>
        </Control>

        <Control name="ZO_TargetUnitFrame" inherits="ZO_PlayerAttributeContainer" virtual="true">
            <Dimensions x="281"/>
            <Controls>
                <Control name="$(parent)TextArea" resizeToFitDescendents="true">
                    <Anchor point="TOP" relativePoint="BOTTOM" offsetY="7"/>
                    <Controls>
                        <Label name="$(grandparent)Level">
                            <Anchor point="TOPLEFT"/>
                        </Label>
                        <Label name="$(grandparent)Name">
                            <Anchor point="TOPLEFT"/>
                        </Label>
                    </Controls>
                </Control>

                <Texture name="$(parent)ChampionIcon" hidden="true" textureFile="EsoUI/Art/Champion/champion_icon_32.dds">
                    <Anchor point="RIGHT" relativeTo="$(parent)TextArea" relativePoint="LEFT" offsetX="-2"/>
                    <Dimensions x="22" y="22"/>
                </Texture>

                <Texture name="$(parent)RankIcon" hidden="true">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)TextArea" relativePoint="TOPRIGHT" offsetX="2" offsetY="-4"/>
                    <Dimensions x="32" y="32"/>
                </Texture>
                
                <Label name="$(parent)Caption" hidden="true">
                    <Anchor point="TOP" relativeTo="$(parent)TextArea" relativePoint="BOTTOM" offsetY="1"/>
                </Label>
                
                <Control name="$(parent)BgContainer" inherits="ZO_PlayerAttributeBgContainer">
                    <Dimensions x="281"/>
                    <Anchor point="CENTER" />
                    <Controls>
                        <Texture name="$(parent)BgLeft" inherits="ZO_TargetAttributeBgLeftAngle" />
                        <Texture name="$(parent)BgRight" inherits="ZO_TargetAttributeBgRightAngle" />
                        <Texture name="$(parent)BgCenter" inherits="ZO_TargetAttributeBgCenter" />
                    </Controls>
                </Control>

                <Texture name="$(parent)LeftBracket" tier="MEDIUM">
                    <Dimensions x="256" y="64" />
                    <Anchor point="TOPRIGHT" relativeTo="$(parent)BgContainer" relativePoint="TOPLEFT" offsetX="26" offsetY="-20"/>
                    <Controls>
                        <Texture name="$(parent)Underlay" tier="LOW" textureFile="EsoUI/Art/UnitFrames/targetUnitFrame_glowUnderlay_level4_left.dds" inherits="ZO_DifficultyBracketGlow" hidden="true">
                            <Anchor point="RIGHT"/>
                        </Texture>
                        <Texture name="$(parent)Glow" inherits="ZO_DifficultyBracketGlow">
                            <Anchor point="RIGHT"/>
                        </Texture>
                    </Controls>
                </Texture>
                <Texture name="$(parent)RightBracket" tier="MEDIUM">
                    <Dimensions x="256" y="64" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)BgContainer" relativePoint="TOPRIGHT" offsetX="-26" offsetY="-20"/>
                    <Controls>
                        <Texture name="$(parent)Underlay" tier="LOW" textureFile="EsoUI/Art/UnitFrames/targetUnitFrame_glowUnderlay_level4_right.dds" inherits="ZO_DifficultyBracketGlow" hidden="true">
                            <Anchor point="RIGHT"/>
                        </Texture>
                        <Texture name="$(parent)Glow" inherits="ZO_DifficultyBracketGlow">
                            <Anchor point="LEFT"/>
                        </Texture>
                    </Controls>
                </Texture>

                <StatusBar name="$(parent)BarLeft" inherits="ZO_TargetAttributeStatusBar" barAlignment="REVERSE">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" barAlignment="REVERSE" />
                    </Controls>
                </StatusBar>
                <StatusBar name="$(parent)BarRight" inherits="ZO_TargetAttributeStatusBar">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" />
                    </Controls>
                </StatusBar>

                <Texture name="$(parent)FrameLeft" inherits="ZO_TargetAttributeFrameLeftAngle" />
                <Texture name="$(parent)FrameRight" inherits="ZO_TargetAttributeFrameRightAngle" />
                <Texture name="$(parent)FrameCenter" inherits="ZO_TargetAttributeFrameCenter" />

                <Control name="$(parent)Warner" inherits="ZO_PlayerAttributeWarner"/>

                <Label name="$(parent)ResourceNumbers" inherits="ZO_PlayerAttributeBarText" />
            </Controls>
        </Control>

        <TopLevelControl name="ZO_UnitFrames">
            <Anchor point="TOPLEFT" relativeTo="GuiRoot" offsetX="5" offsetY="5" />

            <OnInitialized>
                ZO_UnitFrames_Initialize()
            </OnInitialized>

            <OnUpdate>
                ZO_UnitFrames_OnUpdate()
            </OnUpdate>

            <Controls>
                <Control name="$(parent)Groups" />

                <Control name="ZO_UnitFrames_Leader" mouseEnabled="true" hidden="true" level="10">
                    <OnMouseEnter>
                        InitializeTooltip(InformationTooltip, ZO_UnitFrames_Leader, TOPLEFT, 0, 0)
                        SetTooltipText(InformationTooltip, GetString(SI_GROUP_LEADER_TOOLTIP))
                    </OnMouseEnter>

                    <OnMouseExit>
                        SetTooltipText(InformationTooltip)
                    </OnMouseExit>

                    <Controls>
                        <Texture name="$(parent)Icon" textureFile="EsoUI/Art/UnitFrames/groupIcon_leader.dds" layer="2">
                            <Anchor point="TOPLEFT" />
                            <Anchor point="BOTTOMRIGHT" />
                        </Texture>
                    </Controls>
                </Control>
            </Controls>
        </TopLevelControl>
    </Controls>
</GuiXml>
