Arma Reforger Script API
|
Public Member Functions | |
override void | OnActionStart (IEntity pUser, BaseUserAction pPerformedAction) |
Called when action starts being performed. | |
override void | OnActionProgress (IEntity pUser, BaseUserAction pPerformedAction, float fProgress, float fDuration) |
Called when action is being performed. | |
override void | OnActionFinish (IEntity pUser, BaseUserAction pFinishedAction, ActionFinishReason eFinishReason) |
Called when an action is finished. | |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
override void | DisplayStartDraw (IEntity owner) |
override void | DisplayStopDraw (IEntity owner) |
override void | ShowDisplay () |
Called when display was hidden and is supposed to be shown. Called before first ShowActionsDisplay call. | |
override void | HideDisplay () |
Called when display was open and is supposed to hide. Called after last ShowActionsDisplay call. | |
override void | SetDisplayData (ActionDisplayData data) |
Data provided by the interaction handler. | |
void | ForceUpdateUI () |
Allows for external functions to request a UI update. | |
void | ~SCR_ActionMenuInteractionDisplay () |
![]() | |
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 | |
ResourceName | m_sElementLayout |
ResourceName | m_sSnackBarLayout |
![]() | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
Protected Member Functions | |
void | Create () |
Creates and initializes root widget to be slotted with actions. | |
void | Destroy () |
bool | Update (ActionsTuple actionsData, BaseUserAction selectedAction, UserActionContext currentContext, float fTimeSlice) |
bool | UpdateAnimateActions (ActionsTuple actionsData, BaseUserAction selectedAction, UserActionContext currentContext, bool isSingleAction, float fTimeSlice) |
bool | UpdateDisplayActions (ActionsTuple actionsData, BaseUserAction selectedAction, UserActionContext currentContext, int actionsCount) |
void | SetPaggingEffect (int currentAction, bool scrollingDown) |
Itterates through all shown actions and applies the correct padding & opacity. | |
bool | GetSafeZone (vector worldPosition, vector screenPosition, vector min01, vector max01, out vector clampedPosition) |
void | SetPosition (vector worldPosition) |
void | SetScroll (int currentScroll, float timeSlice=0) |
void | RunExpandTimer (float fTimeSlice) |
void | RunExpandedTimer (float fTimeSlice) |
void | Expand () |
void | Collapse () |
float | GetButtonFadeInSpeed () |
void | CompareNewDateWithOld (ActionDisplayData data) |
Hackfix: We are trying to find clues if we need to update the UI based on the acton data. | |
![]() | |
bool | DisplayStartDrawInit (IEntity owner) |
void | DisplayInit (IEntity owner) |
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 float | ANCHOR_X = 0.48 |
const float | ANCHOR_Y = 0.94 |
const float | SAFEZONE_PADDING = 15.0 |
const float | WIDGET_DEFAULT_OPACITY = 1.0 |
const float | WIDGET_HIDDEN_OPACITY = 0.75 |
const vector | SCREEN_POS_MIN = "0.15 0.15 0" |
const vector | SCREEN_POS_MAX = "0.85 0.85 0" |
void SCR_ActionMenuInteractionDisplay.~SCR_ActionMenuInteractionDisplay | ( | ) |
|
protected |
|
protected |
Hackfix: We are trying to find clues if we need to update the UI based on the acton data.
|
protected |
Creates and initializes root widget to be slotted with actions.
|
protected |
override void SCR_ActionMenuInteractionDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_ActionMenuInteractionDisplay.DisplayStopDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_ActionMenuInteractionDisplay.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice ) |
Implements SCR_InfoDisplayExtended.
|
protected |
void SCR_ActionMenuInteractionDisplay.ForceUpdateUI | ( | ) |
Allows for external functions to request a UI update.
|
protected |
|
protected |
override void SCR_ActionMenuInteractionDisplay.HideDisplay | ( | ) |
Called when display was open and is supposed to hide. Called after last ShowActionsDisplay call.
Implements SCR_BaseInteractionDisplay.
override void SCR_ActionMenuInteractionDisplay.OnActionFinish | ( | IEntity | pUser, |
BaseUserAction | pFinishedAction, | ||
ActionFinishReason | eFinishReason ) |
Called when an action is finished.
Implements SCR_BaseInteractionDisplay.
override void SCR_ActionMenuInteractionDisplay.OnActionProgress | ( | IEntity | pUser, |
BaseUserAction | pPerformedAction, | ||
float | fProgress, | ||
float | fDuration ) |
Called when action is being performed.
Implements SCR_BaseInteractionDisplay.
override void SCR_ActionMenuInteractionDisplay.OnActionStart | ( | IEntity | pUser, |
BaseUserAction | pPerformedAction ) |
Called when action starts being performed.
Implements SCR_BaseInteractionDisplay.
|
protected |
[in] | fTimeSlice |
|
protected |
[in] | fTimeSlice |
override void SCR_ActionMenuInteractionDisplay.SetDisplayData | ( | ActionDisplayData | data | ) |
Data provided by the interaction handler.
Implements SCR_BaseInteractionDisplay.
|
protected |
Itterates through all shown actions and applies the correct padding & opacity.
[in] | int | current action |
|
protected |
[in] | worldPosition |
|
protected |
[in] | currentScroll | which element in the list are we on |
[in] | timeSlice | elasped time since the last frame |
override void SCR_ActionMenuInteractionDisplay.ShowDisplay | ( | ) |
Called when display was hidden and is supposed to be shown. Called before first ShowActionsDisplay call.
Implements SCR_BaseInteractionDisplay.
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Holds all the different cached id with the enum as key.
|
protected |
|
protected |
|
protected |
ResourceName SCR_ActionMenuInteractionDisplay.m_sElementLayout |
|
protected |
ResourceName SCR_ActionMenuInteractionDisplay.m_sSnackBarLayout |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |