s&box docs
API ReferenceSandbox.Internal

public abstract interface Sandbox.Internal.IMenuSystem

This is how the engine communicates with the menu system

Methods

Showing 6 methods

public virtual void Init()

Called to initialize the menu system

public virtual void OnPackageClosed(Sandbox.Package package)

Package closed. Add a toast asking if it was cool or not

Show a popup

public virtual void Question(string message, string icon, System.Action yes, System.Action no)

Show a question

public virtual void Shutdown()

Close down the menu, delete everything

public virtual void Tick()

Called every frame, to let the menu think

Properties

Showing 1 properties

public virtual bool Sandbox.Internal.IMenuSystem.ForceCursorVisible { get; set; }

True if we want to force the cursor to be visible and swallow input. This is used for the developer console and loading screens.

Metadata

FieldValue
NamespaceSandbox.Internal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Internal.IMenuSystem

On this page