Class AlertControl
Inheritance
System.Object
Robust.Client.UserInterface.Control
Robust.Client.UserInterface.Controls.BaseButton
AlertControl
Namespace: Content.Client.UserInterface.Systems.Alerts.Controls
Assembly: Content.Client.dll
Syntax
public sealed class AlertControl : BaseButton
Constructors
| Improve this Doc View SourceAlertControl(AlertPrototype, Nullable<Int16>)
Creates an alert control reflecting the indicated alert + state
Declaration
public AlertControl(AlertPrototype alert, short? severity)
Parameters
| Type | Name | Description |
|---|---|---|
| AlertPrototype | alert | alert to display |
| System.Nullable<System.Int16> | severity | severity of alert, null if alert doesn't have severity levels |
Properties
| Improve this Doc View SourceAlert
Declaration
public AlertPrototype Alert { get; }
Property Value
| Type | Description |
|---|---|
| AlertPrototype |
Cooldown
Current cooldown displayed in this slot. Set to null to show no cooldown.
Declaration
public (TimeSpan Start, TimeSpan End)? Cooldown { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.ValueTuple<TimeSpan, TimeSpan>> |
Methods
| Improve this Doc View SourceFrameUpdate(FrameEventArgs)
Declaration
protected override void FrameUpdate(FrameEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| Robust.Shared.Timing.FrameEventArgs | args |
Overrides
Robust.Client.UserInterface.Control.FrameUpdate(Robust.Shared.Timing.FrameEventArgs)
|
Improve this Doc
View Source
SetSeverity(Nullable<Int16>)
Change the alert severity, changing the displayed icon
Declaration
public void SetSeverity(short? severity)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int16> | severity |