Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseInteractionDisplay.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
4 {
7 
8  // FINISHED: Action was sucessfuly finished, i.e. duration was fulfilled
9  // INTERRUPTED: Action was interrupted, i.e. user stopped performing the action midway
10 };
11 
12 //------------------------------------------------------------------------------------------------
14 {
16  ref array<BaseUserAction> param1;
18  ref array<bool> param2;
19 
20  void Init()
21  {
22  param1 = new array<BaseUserAction>();
23  param2 = new array<bool>();
24  }
25 };
26 
27 //------------------------------------------------------------------------------------------------
30 {
31  IEntity pUser;
32  ref ActionsTuple pActionsData;
33  BaseUserAction pSelectedAction;
34  UserActionContext pCurrentContext;
35 };
36 
37 //------------------------------------------------------------------------------------------------
39 class SCR_BaseInteractionDisplay : SCR_InfoDisplayExtended
40 {
44  void OnActionStart( IEntity pUser, BaseUserAction pPerformedAction );
45 
51  void OnActionProgress( IEntity pUser, BaseUserAction pPerformedAction, float fProgress, float fDuration );
52 
57  void OnActionFinish( IEntity pUser, BaseUserAction pFinishedAction, ActionFinishReason eFinishReason );
58 
60  void ShowDisplay();
61 
63  void HideDisplay();
64 
66  void SetDisplayData(ActionDisplayData data);
67 };
SCR_BaseInteractionDisplay
Base class for displaying interactions in the UI.
Definition: SCR_BaseInteractionDisplay.c:39
FINISHED
@ FINISHED
Definition: SCR_BaseInteractionDisplay.c:5
ActionFinishReason
ActionFinishReason
Reason for why an action ended. Used in SCR_BaseInteractionDisplay and derived classes.
Definition: SCR_BaseInteractionDisplay.c:3
ActionsTuple
Definition: SCR_BaseInteractionDisplay.c:13
ActionDisplayData
Data container.
Definition: SCR_BaseInteractionDisplay.c:29
BaseUserAction
Definition: BaseUserAction.c:12
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
UserActionContext
Definition: UserActionContext.c:15
INTERRUPTED
@ INTERRUPTED
Definition: SCR_BaseInteractionDisplay.c:6