Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SuperMenuBase.c
Go to the documentation of this file.
1/*
2Class for tab menus, relies on a SCR_SuperMenuComponent placed on menu root widget
3Do your tab related stuff in a child of SCR_SuperMenuComponent! Leave this for calling necessary events on it, and for global menu necessities
4*/
5
7{
9
10 //------------------------------------------------------------------------------------------------
11 override void OnMenuOpen()
12 {
13 super.OnMenuOpen();
14
17 {
18 Print("SCR_SuperMenuBase | OnMenuOpen() | No SCR_SuperMenuComponent in layout root", LogLevel.ERROR);
19 return;
20 }
21
23 }
24
25 //------------------------------------------------------------------------------------------------
26 override void OnMenuShow()
27 {
28 super.OnMenuShow();
29
31 m_SuperMenuComponent.OnMenuShow();
32 }
33
34 //------------------------------------------------------------------------------------------------
35 override void OnMenuHide()
36 {
37 super.OnMenuHide();
38
40 m_SuperMenuComponent.OnMenuHide();
41 }
42
43 //------------------------------------------------------------------------------------------------
44 override void OnMenuUpdate(float tDelta)
45 {
46 super.OnMenuUpdate(tDelta);
47
49 m_SuperMenuComponent.OnMenuUpdate(tDelta);
50 }
51
52 //------------------------------------------------------------------------------------------------
53 override void OnMenuClose()
54 {
55 super.OnMenuClose();
56
58 m_SuperMenuComponent.OnMenuClose();
59 }
60
61 //----------------------------------------------------------------------------------------
62 override void OnMenuFocusGained()
63 {
64 super.OnMenuFocusGained();
65
67 m_SuperMenuComponent.OnMenuFocusGained();
68 }
69
70 //----------------------------------------------------------------------------------------
71 override void OnMenuFocusLost()
72 {
73 super.OnMenuFocusLost();
74
76 m_SuperMenuComponent.OnMenuFocusLost();
77 }
78
79 //------------------------------------------------------------------------------------------------
84}
Widget GetRootWidget()
SCR_SuperMenuComponent m_SuperMenuComponent
SCR_SuperMenuComponent GetSuperMenu()
override void OnMenuUpdate(float tDelta)
override void OnMenuFocusGained()
override void OnMenuHide()
override void OnMenuClose()
override void OnMenuOpen()
override void OnMenuShow()
override void OnMenuFocusLost()
static SCR_SuperMenuComponent FindComponent(notnull Widget w)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14