![]() |
FirstModulAR 0.1.0
|
Vitals monitor widget, manages the UI for the vitals monitor, displaying vitals listings for the targeted pulse instance. More...
Public Member Functions | |
| void | SetPulseInstance (FMARPulseEngineDriver pulse) |
| Sets the pulse instance to monitor. | |
| void | ClearPulseInstance () |
| Clears the current pulse instance, stopping it from being monitored. | |
| bool | TryGetVital (DataType vital, out List<(double time, double value)> list) |
| Tries to get the vital data for the given vital type. | |
Public Member Functions inherited from FMAR.UI.Widgets.Widget | |
| virtual void | SetWidgetContainer (WidgetContainer widgetContainer) |
| Called when the widget is moved into a new container. Handles widget resizing and repositioning. Can be overridden to provide additional functionality. | |
| void | SetBorderPositions (Vector2 size) |
| Sets the border positions. | |
| void | UpdateBorderTransparency () |
| Updates the border transparency based on the widget container's border transparency. | |
| void | DetachFromContainer () |
| Detaches the widget from the widget container. | |
| void | PlaySound (AudioClip clip) |
| Plays a sound localized to the widget. | |
| bool | TryMove () |
| Tries to move the widget out of the widget container. | |
| void | SetBackgroundEnabled (bool enabled) |
| Sets the background's enabled state. | |
Public Member Functions inherited from FMAR.Comms.Vitals.IVitalsProvider | |
Protected Member Functions | |
| override void | Awake () |
| Called when the widget is awakened, initializes the vitals and listings. | |
| override void | Update () |
Protected Member Functions inherited from FMAR.UI.Widgets.Widget | |
| virtual void | Start () |
| void | CreateBorder (Vector2 size) |
| Creates a border for the widget, around the edges. | |
Properties | |
| IReadOnlyCollection< DataType > | VitalsProvided [get] |
| The vitals provided by the vitals monitor. | |
| IReadOnlyDictionary< VitalsThreshold, float > | VitalsThresholdAlertTimers [get] |
| The timers used to alert when a vital is above or below a threshold. | |
Properties inherited from FMAR.UI.Widgets.Widget | |
| WidgetContainer | WidgetContainer [get] |
| Vector2 | PreferredFloatingDisplaySize [get] |
| Color | BackgroundBaseColor [get] |
| RectTransform | Rt [get] |
| bool | Locked [get] |
Properties inherited from FMAR.Comms.Vitals.IVitalsProvider | |
Additional Inherited Members | |
Public Attributes inherited from FMAR.UI.Widgets.Widget | |
| Sprite | widgetIcon |
Protected Attributes inherited from FMAR.UI.Widgets.Widget | |
| Image | bg |
| RectTransform | rt |
| AudioSource | aud |
Vitals monitor widget, manages the UI for the vitals monitor, displaying vitals listings for the targeted pulse instance.
|
inlineprotectedvirtual |
Called when the widget is awakened, initializes the vitals and listings.
Reimplemented from FMAR.UI.Widgets.Widget.
|
inline |
Clears the current pulse instance, stopping it from being monitored.
|
inline |
Sets the pulse instance to monitor.
| pulse | The pulse instance to monitor. |
|
inline |
Tries to get the vital data for the given vital type.
| vital | The vital type to get the data for. |
| list | The list of vital data for the given vital type. |
Implements FMAR.Comms.Vitals.IVitalsProvider.
|
inlineprotectedvirtual |
Reimplemented from FMAR.UI.Widgets.Widget.
|
get |
The vitals provided by the vitals monitor.
Implements FMAR.Comms.Vitals.IVitalsProvider.
|
get |
The timers used to alert when a vital is above or below a threshold.
Implements FMAR.Comms.Vitals.IVitalsProvider.