Game/UtilityFunctions/UtilityPage.cs

Base UI page class for the utility tab right panel. It inherits Sandbox.UI.Panel and exposes a virtual IsVisible method that controls whether the page shows in the utility menu.

using Sandbox.UI;

/// <summary>
/// Base class for pages opened in the utility tab right panel.
/// Decorate subclasses with [Icon], [Title], [Group], and [Order].
/// </summary>
public abstract class UtilityPage : Panel
{
	/// <summary>
	/// Return false to hide this page from the utility menu.
	/// </summary>
	public virtual bool IsVisible() => true;
}