Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PickAssigneeDialog.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  protected SCR_InputButtonComponent m_CloseButton;
5  protected SCR_InputButtonComponent m_PickAssigneeButton;
6  protected SCR_BaseTaskExecutor m_SelectedTaskExecutor;
7 
8  //------------------------------------------------------------------------------------------------
9  SCR_BaseTaskExecutor GetSelectedExecutor()
10  {
11  return m_SelectedTaskExecutor;
12  }
13 
14  //------------------------------------------------------------------------------------------------
15  void SelectTaskExecutor(SCR_BaseTaskExecutor executor)
16  {
17  m_SelectedTaskExecutor = executor;
18  }
19 
20  //------------------------------------------------------------------------------------------------
21  void CloseDialog()
22  {
24  if (ui)
25  ui.HidePickAssignee();
26  }
27 
28  void PickAssignee()
29  {
31  if (ui)
32  ui.Action_PickAssignee();
33  }
34 
35  //------------------------------------------------------------------------------------------------
36  override void OnMenuOpen()
37  {
38  m_SelectedTaskExecutor = null;
39 
40  m_CloseButton = SCR_InputButtonComponent.GetInputButtonComponent("CloseButton", GetRootWidget());
41  if (m_CloseButton)
42  m_CloseButton.m_OnActivated.Insert(CloseDialog);
43  m_PickAssigneeButton = SCR_InputButtonComponent.GetInputButtonComponent("PickAssigneeButton", GetRootWidget());
44  if (m_PickAssigneeButton)
45  m_PickAssigneeButton.m_OnActivated.Insert(PickAssignee);
46  }
47 
48  //------------------------------------------------------------------------------------------------
50  {
51  }
52 };
ChimeraMenuBase
Constant variables used in various menus.
Definition: ChimeraMenuBase.c:70
SCR_UITaskManagerComponent
void SCR_UITaskManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_UITaskManagerComponent.c:1096
GetRootWidget
Widget GetRootWidget()
Definition: SCR_UITaskManagerComponent.c:160
SCR_PickAssigneeDialog
Definition: SCR_PickAssigneeDialog.c:2
SCR_BaseTaskExecutor
Definition: SCR_BaseTaskExecutor.c:7
SCR_InputButtonComponent
Definition: SCR_InputButtonComponent.c:1