s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
IMenuSystem
chevron_left
API Reference
interface
IMenuSystem
search
Properties
data_object
ForceCursorVisible
Methods
functions
Init
functions
OnPackageClosed
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
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.