StatusBarclass
A strip of normal status widgets on the left and permanent widgets on the right. Temporary messages replace the left widgets without deleting them.
Constructors1
Showing 1 constructors
public StatusBar()
No results match this filter.
Methods7
Showing 7 methods
public T AddLeft(T widget, int stretch = 0)
Add and own a normal widget. Stretch distributes spare space within its slot.
| Parameter | Type | Description |
|---|---|---|
| widget | T | — |
| stretch = 0 | int | — |
T—public T AddRight(T widget, int stretch = 0)
Add and own a permanent widget.
| Parameter | Type | Description |
|---|---|---|
| widget | T | — |
| stretch = 0 | int | — |
T—public Sandbox.UI.Panel AddSeparator(bool right = False)
Add a separator to the normal or permanent slot.
| Parameter | Type | Description |
|---|---|---|
| right = False | bool | — |
public void ClearMessage()
Clear the message and restore the normal widgets.
void—public bool RemoveWidget(Sandbox.UI.Panel widget)
Remove a direct slot widget without deleting it. The caller takes ownership.
| Parameter | Type | Description |
|---|---|---|
| widget | Panel | — |
bool—public void ShowMessage(string text, float seconds = 5)
Replace the current message. Positive seconds expire automatically; zero or negative seconds keep the message until replaced or cleared. Empty text clears it.
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
| seconds = 5 | float | — |
void—public virtual void Tick()
void—No results match this filter.
Properties3
Showing 3 properties
public Sandbox.UI.Panel Sandbox.UI.StatusBar.Left { get; set; }
Normal widgets, hidden while a message is displayed.
public string Sandbox.UI.StatusBar.Message { get; set; }
The current temporary message, or an empty string.
string—No results match this filter.