Arma Reforger Script API
|
Base class for displaying interactions in the UI. More...
Public Member Functions | |
void | OnActionStart (IEntity pUser, BaseUserAction pPerformedAction) |
Override to handle what should happen when an action is performed. | |
void | OnActionProgress (IEntity pUser, BaseUserAction pPerformedAction, float fProgress, float fDuration) |
Override to handle what should happen when action is being "ticked". | |
void | OnActionFinish (IEntity pUser, BaseUserAction pFinishedAction, ActionFinishReason eFinishReason) |
Override to handle what should happen when an action ends. | |
void | ShowDisplay () |
Override to handle what should happen when display is supposed to show when it was previously closed. | |
void | HideDisplay () |
Override to handle what should happen when display is supposed to hide when it was previously shown. | |
void | SetDisplayData (ActionDisplayData data) |
Data provided by the interaction handler. | |
![]() | |
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) |
Base class for displaying interactions in the UI.
void SCR_BaseInteractionDisplay.HideDisplay | ( | ) |
Override to handle what should happen when display is supposed to hide when it was previously shown.
Implemented in SCR_ActionMenuInteractionDisplay.
void SCR_BaseInteractionDisplay.OnActionFinish | ( | IEntity | pUser, |
BaseUserAction | pFinishedAction, | ||
ActionFinishReason | eFinishReason ) |
Override to handle what should happen when an action ends.
Optional method.
pUser | The entity which stopped performing this action |
pFinishedAction | The action that was performed |
eFinishReason | The reason for why this action ended |
Implemented in SCR_ActionMenuInteractionDisplay.
void SCR_BaseInteractionDisplay.OnActionProgress | ( | IEntity | pUser, |
BaseUserAction | pPerformedAction, | ||
float | fProgress, | ||
float | fDuration ) |
Override to handle what should happen when action is being "ticked".
Optional method.
pUser | The entity which started performing this action |
pPerformedAction | The action that is being performed |
fProgress | The progress of the action in seconds |
fDuration | The duration of the action in seconds |
Implemented in SCR_ActionMenuInteractionDisplay.
void SCR_BaseInteractionDisplay.OnActionStart | ( | IEntity | pUser, |
BaseUserAction | pPerformedAction ) |
Override to handle what should happen when an action is performed.
Optional method.
pUser | The entity which started performing this action |
pPerformedAction | The action that was performed |
Implemented in SCR_ActionMenuInteractionDisplay.
void SCR_BaseInteractionDisplay.SetDisplayData | ( | ActionDisplayData | data | ) |
Data provided by the interaction handler.
Implemented in SCR_ActionMenuInteractionDisplay.
void SCR_BaseInteractionDisplay.ShowDisplay | ( | ) |
Override to handle what should happen when display is supposed to show when it was previously closed.
Implemented in SCR_ActionMenuInteractionDisplay.