s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
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
Classes
StatusBar
chevron_left
Classes
class
StatusBar
Constructors
functions
StatusBar
Properties
data_object
Left
data_object
Message
data_object
Right
Methods
functions
AddLeft
functions
AddRight
functions
AddSeparator
functions
ClearMessage
functions
RemoveWidget
functions
ShowMessage
functions
Tick
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.