s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
StatusBar
chevron_left Classes
class
StatusBar

Constructors

functionsStatusBar

Properties

data_objectLeftdata_objectMessagedata_objectRight

Methods

functionsAddLeftfunctionsAddRightfunctionsAddSeparatorfunctionsClearMessagefunctionsRemoveWidgetfunctionsShowMessagefunctionsTick
StatusBar
A strip of normal status widgets on the left and permanent widgets on the right. Temporary messages replace the left widgets without deleting them.
class Sandbox.UI .account_tree extends Panel
Sandbox.Engine

build Constructors 1

StatusBar ()

data_object Properties 3

Left
Panel
Normal widgets, hidden while a message is displayed.
Message
string
The current temporary message, or an empty string.
Right
Panel
Permanent widgets, visible even while a message is displayed.

functions Methods 7

AddLeft (widget, stretch)
T
Add and own a normal widget. Stretch distributes spare space within its slot.
AddRight (widget, stretch)
T
Add and own a permanent widget.
AddSeparator (right)
Panel
Add a separator to the normal or permanent slot.
ClearMessage ()
Clear the message and restore the normal widgets.
RemoveWidget (widget)
bool
Remove a direct slot widget without deleting it. The caller takes ownership.
ShowMessage (text, seconds)
Replace the current message. Positive seconds expire automatically; zero or negative seconds keep the message until replaced or cleared. Empty text clears it.
Tick ()

Inheritance

Panel
StatusBar
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