![]() |
FirstModulAR 0.1.0
|
Base widget class for FMAR UI widgets. Meant to be inherited from to add any additional desired functionality. More...
Public Member Functions | |
| 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 Attributes | |
| Sprite | widgetIcon |
Protected Member Functions | |
| virtual void | Awake () |
| virtual void | Start () |
| virtual void | Update () |
| void | CreateBorder (Vector2 size) |
| Creates a border for the widget, around the edges. | |
Protected Attributes | |
| Image | bg |
| RectTransform | rt |
| AudioSource | aud |
Properties | |
| WidgetContainer | WidgetContainer [get] |
| Vector2 | PreferredFloatingDisplaySize [get] |
| Color | BackgroundBaseColor [get] |
| RectTransform | Rt [get] |
| bool | Locked [get] |
Base widget class for FMAR UI widgets. Meant to be inherited from to add any additional desired functionality.
|
inlineprotectedvirtual |
Reimplemented in CameraRendererWidget, FireControlsWidget, FMAR.UI.Widgets.CarDriverSearch.CarDriverSearch, FMAR.UI.Widgets.Console.Console, FMAR.UI.Widgets.CPRTrainer.CprTrainer, FMAR.UI.Widgets.EMS.PatientInfo.PatientInfo, FMAR.UI.Widgets.EMS.TraumaTreatment.TraumaTreatment, FMAR.UI.Widgets.Inspector.Inspector, FMAR.UI.Widgets.Keyboard.Keyboard, FMAR.UI.Widgets.Map.Map, FMAR.UI.Widgets.Notifications.Notifications, FMAR.UI.Widgets.PointsOfInterest.PointsOfInterest, FMAR.UI.Widgets.Procedures.Procedures, FMAR.UI.Widgets.ServerBrowser.ServerBrowser, FMAR.UI.Widgets.VitalsMonitor.MultiPulseVitalsMonitor, FMAR.UI.Widgets.VitalsMonitor.VitalsMonitor, StatsWidget, and VoiceComms.
|
inlineprotected |
Creates a border for the widget, around the edges.
| size | The size of the border. |
|
inline |
Detaches the widget from the widget container.
|
inline |
Plays a sound localized to the widget.
| clip | The clip to play. |
|
inline |
Sets the background's enabled state.
| enabled | Whether the background should be enabled. |
|
inline |
Sets the border positions.
| size | The size of the border. |
|
inlinevirtual |
Called when the widget is moved into a new container. Handles widget resizing and repositioning. Can be overridden to provide additional functionality.
| widgetContainer |
Reimplemented in FireControlsWidget, FMAR.UI.Widgets.CarDriverSearch.CarDriverSearch, FMAR.UI.Widgets.Console.Console, FMAR.UI.Widgets.CPRTrainer.CprTrainer, FMAR.UI.Widgets.EMS.PatientInfo.PatientInfo, FMAR.UI.Widgets.EMS.TraumaTreatment.TraumaTreatment, FMAR.UI.Widgets.Inspector.Inspector, FMAR.UI.Widgets.Keyboard.Keyboard, FMAR.UI.Widgets.Map.Map, FMAR.UI.Widgets.Notifications.Notifications, FMAR.UI.Widgets.PointsOfInterest.PointsOfInterest, FMAR.UI.Widgets.Procedures.Procedures, FMAR.UI.Widgets.ServerBrowser.ServerBrowser, FMAR.UI.Widgets.VitalsMonitor.VitalsMonitor, StatsWidget, and VoiceComms.
|
inlineprotectedvirtual |
|
inline |
Tries to move the widget out of the widget container.
|
inlineprotectedvirtual |
|
inline |
Updates the border transparency based on the widget container's border transparency.
|
protected |
|
protected |
|
protected |
| Sprite FMAR.UI.Widgets.Widget.widgetIcon |
|
get |
|
get |
|
get |
|
get |
|
get |