s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
IMenuSystem
chevron_left
API Reference
interface
IMenuSystem
Properties
data_object
ForceCursorVisible
Methods
functions
Init
functions
OnPackageClosed
functions
OnPartyInvite
functions
OnPartyJoinRequest
functions
PackageFavouritesChanged
functions
PackageUsageChanged
functions
Popup
functions
Question
functions
Shutdown
functions
Tick
IMenuSystem
This is how the engine communicates with the menu system
interface
Sandbox.Internal
.
abstract
Sandbox.Engine
data_object
Properties
1
ForceCursorVisible
bool
True if we want to force the cursor to be visible and swallow input. This is used for the developer console and loading screens.
functions
Methods
10
Init
(
)
Called to initialize the menu system
OnPackageClosed
(
package
)
Package closed. Add a toast asking if it was cool or not
OnPartyInvite
(
from
,
accept
,
decline
)
A friend's invited us into their party. Unless the menu does something better with it, it's a yes/no question like any other.
OnPartyJoinRequest
(
from
,
accept
,
decline
)
A friend is asking to join our party.
PackageFavouritesChanged
(
packageIdent
,
value
)
Notifies that the number of favourites for the specified package has changed.
PackageUsageChanged
(
packageIdent
,
userCount
)
The backend is telling us that the number of users playing has changed
Popup
(
type
,
title
,
subtitle
)
Show a popup
Question
(
message
,
icon
,
yes
,
no
)
Show a question
Shutdown
(
)
Close down the menu, delete everything
Tick
(
)
Called every frame, to let the menu think
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.