Show / Hide Table of Contents

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 Source

AlertControl(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 Source

Alert

Declaration
public AlertPrototype Alert { get; }
Property Value
Type Description
AlertPrototype
| Improve this Doc View Source

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 Source

FrameUpdate(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

Extension Methods

ControlExtension.GetControlOfType<T>(Control)
ControlExtension.GetControlOfType<T>(Control, String)
ControlExtension.GetControlOfType<T>(Control, Boolean)
ControlExtension.GetControlOfType<T>(Control, String, Boolean)
ControlExtension.GetSearchableControls(Control, Boolean)
ControlExtension.ChildrenContainText(Control, String)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾