UI/SpawnMenu/UtilitiesPage.razor

A Razor UI page for the spawn menu utilities tab. It defines a single clickable control that runs the console command "kill" when clicked, and includes metadata attributes for icon, title, group and order.

Networking
@using Sandbox;
@using Sandbox.UI;
@inherits UtilityPage
@namespace Sandbox
@attribute [Icon( "🔧" )]
@attribute [Title( "#spawnmenu.utility.utilities" )]
@attribute [Group( "#spawnmenu.utility.group.utilities" )]
@attribute [Order( 0 )]

<root class="page" style="flex-direction: column;">
    <div class="control-row" @onclick=@(() => ConsoleSystem.Run( "kill" ))>
        <div class="left"><label>🚿 </label><label>#spawnmenu.utility.kill_me</label></div>
    </div>
</root>