ui/LobbyBotCountPanel.razor

A small UI component (Razor) that displays the desired number of bots in a lobby. It renders a panel with a label "Bots" and shows Bots.DesiredCount, and uses BuildHash to optimize rendering based on that value.

@using Sandbox
@using Sandbox.UI
@inherits PanelComponent

<root>
    <div class="panel">
        <div class="label">Bots</div>
        <div class="count">@Bots.DesiredCount</div>
    </div>
</root>

@code {
    protected override int BuildHash() => Bots.DesiredCount;
}