Api Sandbox Internal IMenuSystem
interface

IMenuSystem

public interface IMenuSystem

This is how the engine communicates with the menu system

Properties

Name Type Description
ForceCursorVisible virtual Boolean True if we want to force the cursor to be visible and swallow input. This is used for the developer console and loading screens.

Methods

virtual Void Init()

Called to initialize the menu system

virtual Void Shutdown()

Close down the menu, delete everything

virtual Void Tick()

Called every frame, to let the menu think

virtual Void Popup(String type, String title, String subtitle)

Show a popup

virtual Void Question(String message, String icon, Action yes, Action no)

Show a question

virtual Void OnPackageClosed(Package package)

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

Assembly: Sandbox.Engine Namespace: Sandbox.Internal Full Name: Sandbox.Internal.IMenuSystem