Arma Reforger Script API
|
Base class for all vehicle UI state and damage indicators. More...
Public Member Functions | |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
override bool | DisplayStartDrawInit (IEntity owner) |
override void | DisplayStartDraw (IEntity owner) |
Create the UI. | |
override void | DisplayStopDraw (IEntity owner) |
Destroy the UI. | |
override void | DisplayInit (IEntity owner) |
Init the UI, runs 1x at the start of the game. | |
![]() | |
void | SetEnabled (bool isEnabled) |
override void | Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR) |
Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility. | |
![]() | |
SCR_InfoDisplayHandler | GetHandler (TypeName handlerType) |
SCR_InfoDisplayInvoker | GetOnStart () |
SCR_InfoDisplayInvoker | GetOnStop () |
IEntity | GetOwnerEntity () |
Widget | GetContentWidget () |
string | GetContentWidgetName () |
void | SetRootWidget (notnull Widget root) |
void | SetContentWidget (notnull Widget content) |
bool | IsShown () |
Widget | GetRootWidget () |
bool | GetDimensions (out float width, out float height, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
bool | GetAnchorPosition (out float x, out float y, EWidgetAnchor anchor=EWidgetAnchor.TOPLEFT, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
void | RegisterToHudManager () |
![]() | |
proto external int | GetInfoDisplays (out notnull array< BaseInfoDisplay > outInfoDisplays) |
![]() | |
proto external GenericComponent | FindComponentInParentContainer (TypeName typeName) |
Public Attributes | |
EVehicleInfoColor | m_eColor |
![]() | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
Protected Member Functions | |
EVehicleInfoState | GetState () |
Can be overridden to get state of actual system or linked to an event. | |
bool | IsBlinking () |
Can be overridden to get state of actual system or linked to an event. | |
void | Scale (ImageWidget widget, float scale) |
void | Scale (TextWidget widget, float scale) |
void | Scale (OverlayWidget widget, float scale) |
void | SetIcon (string icon) |
void | SetColor (EVehicleInfoState state, EVehicleInfoColor color) |
bool | UpdateRequired (EVehicleInfoState state) |
![]() | |
void | DisplayControlledEntityChanged (IEntity from, IEntity to) |
void | DisplayConsciousnessChanged (bool conscious, bool init=false) |
void | DisplayOnSuspended () |
Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as not to show in GM. | |
void | DisplayOnResumed () |
void | InitializeInterfaceSettings () |
void | OnSettingsChanged () |
![]() | |
void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
Static Protected Attributes | |
const int | ICON_SIZE = 64 |
Base class for all vehicle UI state and damage indicators.
override void SCR_BaseVehicleInfo.DisplayInit | ( | IEntity | owner | ) |
Init the UI, runs 1x at the start of the game.
Implements SCR_InfoDisplayExtended.
Implemented in SCR_EngineHitZoneInfo, SCR_FuelTankInfo, SCR_GearboxHitZoneInfo, SCR_GearShiftInfo, SCR_HandBrakeInfo, SCR_HZInfoHeli, SCR_LightManagerInfo, SCR_LightManagerInfoMulti, SCR_VInfoAutoHover, SCR_VInfoParkingBrakeHeli, and SCR_WheelHitZoneInfo.
override void SCR_BaseVehicleInfo.DisplayStartDraw | ( | IEntity | owner | ) |
override bool SCR_BaseVehicleInfo.DisplayStartDrawInit | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_FuelTankInfo, SCR_GearShiftInfo, SCR_HitZoneInfo, SCR_LightManagerInfo, and SCR_LightManagerInfoMulti.
override void SCR_BaseVehicleInfo.DisplayStopDraw | ( | IEntity | owner | ) |
Destroy the UI.
Implements SCR_InfoDisplayExtended.
Implemented in SCR_HitZoneInfo, and SCR_LightManagerInfo.
override void SCR_BaseVehicleInfo.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice ) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_GearShiftInfo.
|
protected |
Can be overridden to get state of actual system or linked to an event.
Implemented in SCR_EngineHitZoneInfo, SCR_FuelTankInfo, SCR_GearboxHitZoneInfo, SCR_HandBrakeInfo, SCR_HitZoneInfo, SCR_HZInfoEngineHeli, SCR_HZInfoHeli, SCR_LightManagerInfo, SCR_LightManagerInfoMulti, SCR_VInfoAutoHover, SCR_VInfoParkingBrakeHeli, and SCR_WheelHitZoneInfo.
|
protected |
Can be overridden to get state of actual system or linked to an event.
Implemented in SCR_FuelTankInfo.
|
protected |
|
protected |
|
protected |
Implemented in SCR_GearShiftInfo.
|
protected |
Implemented in SCR_LightManagerInfoMulti.
|
protected |
Implemented in SCR_LightManagerInfoMulti.
|
protected |
Implemented in SCR_LightManagerInfoMulti.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
EVehicleInfoColor SCR_BaseVehicleInfo.m_eColor |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |