Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TabDialog.c
Go to the documentation of this file.
1 
10 {
11  protected SCR_SuperMenuComponent m_SuperMenuComponent;
12 
13  //------------------------------------------------------------------------------------------------
14  override void OnMenuOpen(SCR_ConfigurableDialogUiPreset preset)
15  {
16  super.OnMenuOpen(preset);
17 
18  m_SuperMenuComponent = SCR_SuperMenuComponent.FindComponent(GetContentLayoutRoot(GetRootWidget()));
19  if (!m_SuperMenuComponent)
20  {
21  Print("SCR_TabDialog | OnMenuOpen() | No SCR_SuperMenuComponent in content layout root", LogLevel.ERROR);
22  return;
23  }
24 
25  m_SuperMenuComponent.Init(GetRootWidget());
26  }
27 
28  //------------------------------------------------------------------------------------------------
29  override void OnMenuShow()
30  {
31  super.OnMenuShow();
32 
33  if (m_SuperMenuComponent)
34  m_SuperMenuComponent.OnMenuShow();
35  }
36 
37  //------------------------------------------------------------------------------------------------
38  override void OnMenuHide()
39  {
40  super.OnMenuHide();
41 
42  if (m_SuperMenuComponent)
43  m_SuperMenuComponent.OnMenuHide();
44  }
45 
46  //------------------------------------------------------------------------------------------------
47  override void OnMenuUpdate(float tDelta)
48  {
49  super.OnMenuUpdate(tDelta);
50 
51  if (m_SuperMenuComponent)
52  m_SuperMenuComponent.OnMenuUpdate(tDelta);
53  }
54 
55  //------------------------------------------------------------------------------------------------
56  override void OnMenuClose()
57  {
58  super.OnMenuClose();
59 
60  if (m_SuperMenuComponent)
61  m_SuperMenuComponent.OnMenuClose();
62  }
63 
64  //----------------------------------------------------------------------------------------
65  override void OnMenuFocusGained()
66  {
67  super.OnMenuFocusGained();
68 
69  if (m_SuperMenuComponent)
70  m_SuperMenuComponent.OnMenuFocusGained();
71  }
72 
73  //----------------------------------------------------------------------------------------
74  override void OnMenuFocusLost()
75  {
76  super.OnMenuFocusLost();
77 
78  if (m_SuperMenuComponent)
79  m_SuperMenuComponent.OnMenuFocusLost();
80  }
81 }
SCR_SuperMenuComponent
Definition: SCR_SuperMenuComponent.c:10
GetRootWidget
Widget GetRootWidget()
Definition: SCR_UITaskManagerComponent.c:160
SCR_TabDialog
Definition: SCR_TabDialog.c:9
SCR_ConfigurableDialogUiPreset
Configuration for a dialog.
Definition: SCR_ConfigurableDialogUI.c:809
SCR_ConfigurableDialogUi
Definition: SCR_ConfigurableDialogUI.c:13