Arma Reforger Script API
|
Public Member Functions | |
override void | DisplayStartDraw (IEntity owner) |
void | SettingsChanged () |
Called when any settings are changed in the settings menu, upon DisplayStartDraw() Called from SCR_ScreenEffectsManager. | |
override void | DisplayControlledEntityChanged (IEntity from, IEntity to) |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
void | UpdateEffect (float timeSlice) |
Called every frame from SCR_ScreenEffectsManager. | |
void | ClearEffects () |
Automatically called upon DisplayStartDraw() and DisplayStopDraw() from SCR_ScreenEffectsManager Due to many screeneffects listening to invokers, ClearEffects() is often called manually OnControlledEntityChanged() | |
![]() | |
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) |
Protected Member Functions | |
void | UpdateEffectVisibility (notnull ImageWidget effectWidget) |
The widget will be made visible or hidden based on its opacity. | |
void | AnimateEffectVisibility (notnull ImageWidget effectWidget, float opacity, float alpha, float opacitySpeed=1.0, float alphaSpeed=1.0, bool updateVisibility=true) |
void | ShowSingleEffect (notnull ImageWidget effectWidget) |
void | HideSingleEffect (notnull ImageWidget effectWidget) |
![]() | |
bool | DisplayStartDrawInit (IEntity owner) |
void | DisplayStopDraw (IEntity owner) |
void | DisplayInit (IEntity owner) |
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) |
|
protected |
[in] | effectWidget | to animate its opacity and alpha mask. |
[in] | opacity | desired target value. |
[in] | alpha | desired target value. |
[in] | opacitySpeed | desired speed value (default is 0). |
[in] | alphaSpeed | desired speed value (default is 0). |
[in] | updateVisibility | Whether the visibility should be updated based on the final opacity (default is true). |
[in] | updateVisibility | Whether the visibility should be updated based on the final opacity (default is true). |
void SCR_BaseScreenEffect.ClearEffects | ( | ) |
Automatically called upon DisplayStartDraw() and DisplayStopDraw() from SCR_ScreenEffectsManager Due to many screeneffects listening to invokers, ClearEffects() is often called manually OnControlledEntityChanged()
Implemented in SCR_BleedingScreenEffect, SCR_DamageBlurEffect, SCR_DeathScreenEffect, SCR_DepthOfFieldEffect, SCR_DesaturationEffect, SCR_DrowningScreenEffect, SCR_FadeInOutEffect, SCR_NoiseFilterEffect, SCR_RegenerationScreenEffect, SCR_StaminaBlurEffect, and SCR_UnconsciousScreenEffect.
override void SCR_BaseScreenEffect.DisplayControlledEntityChanged | ( | IEntity | from, |
IEntity | to ) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_BleedingScreenEffect, SCR_DamageBlurEffect, SCR_DeathScreenEffect, SCR_DepthOfFieldEffect, SCR_DesaturationEffect, SCR_DrowningScreenEffect, SCR_NoiseFilterEffect, SCR_RegenerationScreenEffect, SCR_StaminaBlurEffect, and SCR_UnconsciousScreenEffect.
override void SCR_BaseScreenEffect.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_BleedingScreenEffect, SCR_DamageBlurEffect, SCR_DeathScreenEffect, SCR_DepthOfFieldEffect, SCR_DesaturationEffect, SCR_DrowningScreenEffect, SCR_FadeInOutEffect, SCR_RegenerationScreenEffect, SCR_StaminaBlurEffect, and SCR_UnconsciousScreenEffect.
override void SCR_BaseScreenEffect.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice ) |
Implements SCR_InfoDisplayExtended.
|
protected |
void SCR_BaseScreenEffect.SettingsChanged | ( | ) |
Called when any settings are changed in the settings menu, upon DisplayStartDraw() Called from SCR_ScreenEffectsManager.
So not every effect has to listen for this individually Relevant when your effect needs to adapt when particular settings are changed, such as switching from normal DoF to Bokeh
Implemented in SCR_DepthOfFieldEffect, and SCR_DesaturationEffect.
|
protected |
void SCR_BaseScreenEffect.UpdateEffect | ( | float | timeSlice | ) |
Called every frame from SCR_ScreenEffectsManager.
Implemented in SCR_DamageBlurEffect, SCR_DepthOfFieldEffect, SCR_DesaturationEffect, SCR_RegenerationScreenEffect, and SCR_StaminaBlurEffect.
|
protected |
The widget will be made visible or hidden based on its opacity.