UI/Hud.razor
@using Sandbox.UI
@inherits PanelComponent

<root>
    <screenoverlay />
    <info />
    <pilotinfo />
    <flightcontrolshint />
    <chat />
    <outofboundsui />
    <scoreboard />
    <shiplisthint />
    <shiplist />
    <weapons />
    <hitmarker />
    <damageindicator />
    <matchtimer />
    <matchend />
    <playerkillfeed />
    <killnotification />
</root>

@code
{
    public static Hud Current { get; private set; }

    protected override void OnStart()
    {
        Current = this;
    }

    protected override void OnDestroy()
    {
        Mouse.CursorType = "";
        if ( Current == this )
            Current = null;
    }

    protected override void OnUpdate()
    {
        base.OnUpdate();

        Mouse.CursorType = Input.UsingController ? "controller-cursor" : "";
    }

    protected override int BuildHash() => HashCode.Combine(Input.UsingController);
}