<GuiXml>
    <Controls>
        <!-- Bar -->

        <StatusBar name="ZO_PowerShieldBar" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_LEVEL" virtual="true">
            <Dimensions y="17" />

            <OnInitialized>
                self.fakeHealthBar = self:GetNamedChild("FakeHealth")
                self.traumaBar = self:GetNamedChild("Trauma")
                self.gloss = self:GetNamedChild("Gloss")
            </OnInitialized>

            <OnMinMaxValueChanged>
                self.gloss:SetMinMax(min, max)
            </OnMinMaxValueChanged>

            <OnValueChanged>
                self.gloss:SetValue(value)
            </OnValueChanged>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarArrow" inherits="ZO_PowerShieldBar" virtual="true" />
        <StatusBar name="ZO_PowerShieldBarArrow_Keyboard_Template" inherits="ZO_PowerShieldBar ZO_PlayerAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldBarArrow_Gamepad_Template" inherits="ZO_PowerShieldBar ZO_PlayerAttributeStatusBar_Gamepad_Template" virtual="true" />

        <StatusBar name="ZO_PowerShieldBarAngle" inherits="ZO_PowerShieldBar" virtual="true" />
        <StatusBar name="ZO_PowerShieldBarAngle_Keyboard_Template" inherits="ZO_PowerShieldBar ZO_TargetAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldBarAngle_Gamepad_Template" inherits="ZO_PowerShieldBar ZO_TargetAttributeStatusBar_Gamepad_Template" virtual="true" />

        <!-- Fake health bar. Since health effects and health take up the same space, sometimes we need to shrink the percieved health value to make room. -->
        
        <StatusBar name="ZO_PowerShieldFakeHealthBarArrow" inherits="ZO_PlayerAttributeStatusBar" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_LEVEL" virtual="true" />
        <StatusBar name="ZO_PowerShieldFakeHealthBarArrow_Keyboard_Template" inherits="ZO_PlayerAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldFakeHealthBarArrow_Gamepad_Template" inherits="ZO_PlayerAttributeStatusBar_Gamepad_Template" virtual="true" />

        <StatusBar name="ZO_PowerShieldFakeHealthBarAngle" inherits="ZO_TargetAttributeStatusBar" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_LEVEL" virtual="true" />
        <StatusBar name="ZO_PowerShieldFakeHealthBarAngle_Keyboard_Template" inherits="ZO_TargetAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldFakeHealthBarAngle_Gamepad_Template" inherits="ZO_TargetAttributeStatusBar_Gamepad_Template" virtual="true" />

        <!-- Trauma Bar -->
        
        <StatusBar name="ZO_PowerShieldTraumaBarArrow" inherits="ZO_PlayerAttributeStatusBar" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_LEVEL" virtual="true" />
        <StatusBar name="ZO_PowerShieldTraumaBarArrow_Keyboard_Template" inherits="ZO_PlayerAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldTraumaBarArrow_Gamepad_Template" inherits="ZO_PlayerAttributeStatusBar_Gamepad_Template" virtual="true" />

        <StatusBar name="ZO_PowerShieldTraumaBarAngle" inherits="ZO_TargetAttributeStatusBar" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_LEVEL" virtual="true" />
        <StatusBar name="ZO_PowerShieldTraumaBarAngle_Keyboard_Template" inherits="ZO_TargetAttributeStatusBar_Keyboard_Template" virtual="true" />
        <StatusBar name="ZO_PowerShieldTraumaBarAngle_Gamepad_Template" inherits="ZO_TargetAttributeStatusBar_Gamepad_Template" virtual="true" />

        <!-- Overlay -->

        <StatusBar name="ZO_PowerShieldBarLeftOverlayArrow" inherits="ZO_PowerShieldBarArrow" barAlignment="REVERSE" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss" barAlignment="REVERSE"/>
                
                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow" barAlignment="REVERSE">
                    <Anchor point="LEFT" relativePoint="RIGHT" offsetX="-11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_GLOSS_LEVEL" barAlignment="REVERSE" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow" barAlignment="REVERSE">
                    <Anchor point="LEFT" relativeTo="$(parent)Trauma" relativePoint="RIGHT" offsetX="-11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_GLOSS_LEVEL" barAlignment="REVERSE" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarLeftOverlayArrow_Keyboard_Template" inherits="ZO_PowerShieldBarArrow_Keyboard_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template"/>
                
                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow_Keyboard_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow_Keyboard_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarLeftOverlayArrow_Gamepad_Template" inherits="ZO_PowerShieldBarArrow_Gamepad_Template"  virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template" />

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow_Gamepad_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
                
                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow_Gamepad_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayArrow" inherits="ZO_PowerShieldBarArrow" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow">
                    <Anchor point="RIGHT" relativePoint="LEFT" offsetX="11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_GLOSS_LEVEL" />
                    </Controls>
                </StatusBar>
                
                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow">
                    <Anchor point="RIGHT" relativeTo="$(parent)Trauma" relativePoint="LEFT" offsetX="11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_GLOSS_LEVEL" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayArrow_Keyboard_Template" inherits="ZO_PowerShieldBarArrow_Keyboard_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow_Keyboard_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
                
                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow_Keyboard_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayArrow_Gamepad_Template" inherits="ZO_PowerShieldBarArrow_Gamepad_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarArrow_Gamepad_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
                
                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarArrow_Gamepad_Template">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_PlayerAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarLeftOverlayAngle" inherits="ZO_PowerShieldBarAngle" barAlignment="REVERSE" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" barAlignment="REVERSE"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle" barAlignment="REVERSE">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_GLOSS_LEVEL" barAlignment="REVERSE" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle" barAlignment="REVERSE">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_GLOSS_LEVEL" barAlignment="REVERSE" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarLeftOverlayAngle_Keyboard_Template" inherits="ZO_PowerShieldBarAngle_Keyboard_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle_Keyboard_Template">
                    <Anchor point="LEFT" relativePoint="RIGHT" offsetX="-11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle_Keyboard_Template">
                    <Anchor point="LEFT" relativePoint="RIGHT" offsetX="-11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarLeftOverlayAngle_Gamepad_Template" inherits="ZO_PowerShieldBarAngle_Gamepad_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle_Gamepad_Template">
                    <Anchor point="LEFT" relativePoint="RIGHT" offsetX="-15" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle_Gamepad_Template">
                    <Anchor point="LEFT" relativePoint="RIGHT" offsetX="-15" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayAngle" inherits="ZO_PowerShieldBarAngle" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_TRAUMA_GLOSS_LEVEL" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle">
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss" level="ZO_ATTRIBUTE_BAR_POWER_SHIELD_FAKE_HEALTH_GLOSS_LEVEL" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayAngle_Keyboard_Template" inherits="ZO_PowerShieldBarAngle_Keyboard_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle_Keyboard_Template">
                    <Anchor point="RIGHT" relativePoint="LEFT" offsetX="11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle_Keyboard_Template">
                    <Anchor point="RIGHT" relativePoint="LEFT" offsetX="11" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Keyboard_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>

        <StatusBar name="ZO_PowerShieldBarRightOverlayAngle_Gamepad_Template" inherits="ZO_PowerShieldBarAngle_Gamepad_Template" virtual="true">
            <Controls>
                <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template"/>

                <StatusBar name="$(parent)Trauma" inherits="ZO_PowerShieldFakeHealthBarAngle_Gamepad_Template">
                    <Anchor point="RIGHT" relativePoint="LEFT" offsetX="15" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>

                <StatusBar name="$(parent)FakeHealth" inherits="ZO_PowerShieldFakeHealthBarAngle_Gamepad_Template">
                    <Anchor point="RIGHT" relativePoint="LEFT" offsetX="15" />
                    <Controls>
                        <StatusBar name="$(parent)Gloss" inherits="ZO_TargetAttributeStatusBarGloss_Gamepad_Template" />
                    </Controls>
                </StatusBar>
            </Controls>
        </StatusBar>
    </Controls>
</GuiXml>