s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
IMenuSystem
chevron_left API Reference
interface
IMenuSystem

Properties

data_objectForceCursorVisible

Methods

functionsInitfunctionsOnPackageClosedfunctionsPackageFavouritesChangedfunctionsPackageUsageChangedfunctionsPopupfunctionsQuestionfunctionsShutdownfunctionsTick
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 8

Init ()
Called to initialize the menu system
OnPackageClosed (package)
Package closed. Add a toast asking if it was cool or not
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter