Game/UtilityFunctions/UtilityPage.cs

Abstract UI panel class used for pages in the utility tab right panel. It provides a single virtual IsPageVisible method that defaults to true and is intended to be overridden; subclasses are expected to be decorated with Icon, Title, Group, and Order attributes.

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 IsPageVisible() => true;
}