A UI Razor component for the spawn menu footer with a single button to create a new spawnlist. It renders a UIButton with an add icon, localized text, and binds Disabled to CanCreate() and onclick to CreateSpawnlist.
@using Sandbox; @using Sandbox.UI; @using Sandbox.Mounting; @inherits Panel @namespace Sandbox <root> <UIButton Icon="add" Text="#spawnmenu.spawnlist.new_button" Disabled=@( !CanCreate() ) @onclick=@CreateSpawnlist></UIButton> </root>