API ReferenceSandbox.Internal
IMenuSystemclass
This is how the engine communicates with the menu system
object→IMenuSystem
Methods8
Showing 8 methods
public virtual void Init()
Called to initialize the menu system
Returns:
void—public virtual void OnPackageClosed(Sandbox.Package package)
Package closed. Add a toast asking if it was cool or not
| Parameter | Type | Description |
|---|---|---|
| package | Package | — |
Returns:
void—public virtual void PackageFavouritesChanged(string packageIdent, long value)
Notifies that the number of favourites for the specified package has changed.
| Parameter | Type | Description |
|---|---|---|
| packageIdent | string | — |
| value | long | — |
Returns:
void—public virtual void PackageUsageChanged(string packageIdent, long userCount)
The backend is telling us that the number of users playing has changed
| Parameter | Type | Description |
|---|---|---|
| packageIdent | string | — |
| userCount | long | — |
Returns:
void—public virtual void Popup(string type, string title, string subtitle)
Show a popup
| Parameter | Type | Description |
|---|---|---|
| type | string | — |
| title | string | — |
| subtitle | string | — |
Returns:
void—public virtual void Question(string message, string icon, System.Action yes, System.Action no)
Show a question
| Parameter | Type | Description |
|---|---|---|
| message | string | — |
| icon | string | — |
| yes | Action | — |
| no | Action | — |
Returns:
void—public virtual void Shutdown()
Close down the menu, delete everything
Returns:
void—public virtual void Tick()
Called every frame, to let the menu think
Returns:
void—No results match this filter.
Properties1
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.
Returns:
bool—No results match this filter.