s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
IMenuSystem
chevron_left API Reference
interface
IMenuSystem

Properties

data_objectForceCursorVisible

Methods

functionsInitfunctionsOnPackageClosedfunctionsOnPartyInvitefunctionsOnPartyJoinRequestfunctionsPackageFavouritesChangedfunctionsPackageUsageChangedfunctionsPopupfunctionsQuestionfunctionsShutdownfunctionsTick
IMenuSystem
This is how the engine communicates with the menu system
interface Sandbox.Internal .
abstractSandbox.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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter