SboxSuperuser/Api/AdminMenuElementKind.cs

An enum in the SboxSuperuser admin tool, defining the kinds of elements a module's admin menu window can contain: headings, text, separators, buttons, command forms, live output, settings cards and catalogs.

namespace SboxSuperuser;

/// <summary>What one piece of a module's admin menu window is.</summary>
public enum AdminMenuElementKind
{
	/// <summary>A section title.</summary>
	Heading = 0,

	/// <summary>A paragraph of text.</summary>
	Text = 1,

	/// <summary>A dividing line.</summary>
	Separator = 2,

	/// <summary>A button that runs a command with fixed arguments.</summary>
	Button = 3,

	/// <summary>The command's generated form, the same one the Commands window shows.</summary>
	Form = 4,

	/// <summary>The reply of a read-only command, refreshed every few seconds while shown and right after a change from the menu.</summary>
	Live = 5,

	/// <summary>A settings card initialized from a read-only command, with defaults and an Apply button.</summary>
	Settings = 6,

	/// <summary>A searchable catalog with permission-checked block and unblock actions.</summary>
	Catalog = 7
}