Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DeployMenuHandler.c
Go to the documentation of this file.
1
6
class
SCR_DeployMenuHandler
:
SCR_ScriptedWidgetComponent
7
{
8
[
Attribute
(
"FactionOverlay"
)]
9
protected
string
m_sFactionUIHandler
;
10
11
[
Attribute
(
"LoadoutSelector"
)]
12
protected
string
m_sLoadoutUIHandler
;
13
14
[
Attribute
(
"GroupSelector"
)]
15
protected
string
m_sGroupUIHandler
;
16
17
[
Attribute
(
"SpawnPointSelector"
)]
18
protected
string
m_sSpawnPointUIHandler
;
19
20
[
Attribute
(
"FactionPlayerList"
)]
21
protected
string
m_sFactionPlayerList
;
22
23
[
Attribute
(
"GroupPlayerList"
)]
24
protected
string
m_sGroupPlayerList
;
25
26
[
Attribute
(
"HudManagerLayout"
)]
27
protected
string
m_sHudLayoutUIHandler
;
28
29
[
Attribute
(
desc
:
"Determines which widgets should be hidden when opening the pause menu"
)]
30
protected
ref array<string>
m_aHiddenWidgetsOnPause
;
31
32
[
Attribute
(
desc
:
"Determines which widgets should be disabled when opening the pause menu"
)]
33
protected
ref array<string>
m_aDisabledWidgetsOnPause
;
34
35
protected
ref array<Widget>
m_aHiddenWidgets
= {};
36
protected
ref array<Widget>
m_aDisabledWidgets
= {};
37
38
protected
SCR_FactionRequestUIComponent
m_FactionRequestHandler
;
39
protected
SCR_LoadoutRequestUIComponent
m_LoadoutRequestHandler
;
40
protected
SCR_GroupRequestUIComponent
m_GroupRequestHandler
;
41
protected
SCR_SpawnPointRequestUIComponent
m_SpawnPointUIHandler
;
42
protected
SCR_FactionPlayerList
m_FactionPlayerList
;
43
protected
SCR_GroupPlayerList
m_GroupPlayerList
;
44
protected
SCR_HUDMenuComponent
m_HudMenuComponent
;
45
46
//------------------------------------------------------------------------------------------------
47
override
void
HandlerAttached
(
Widget
w)
48
{
49
super.HandlerAttached(w);
50
51
PauseMenuUI
.
m_OnPauseMenuOpened
.Insert(
OnPauseMenuOpened
);
52
PauseMenuUI
.
m_OnPauseMenuClosed
.Insert(
OnPauseMenuClosed
);
53
54
foreach
(
string
name :
m_aHiddenWidgetsOnPause
)
55
{
56
Widget
widget =
m_wRoot
.FindAnyWidget(name);
57
58
if
(widget)
59
m_aHiddenWidgets
.Insert(widget);
60
}
61
62
foreach
(
string
name :
m_aDisabledWidgetsOnPause
)
63
{
64
Widget
widget =
m_wRoot
.FindAnyWidget(name);
65
66
if
(widget)
67
m_aDisabledWidgets
.Insert(widget);
68
}
69
70
Widget
hudMenu =
m_wRoot
.FindAnyWidget(
m_sHudLayoutUIHandler
);
71
if
(hudMenu)
72
m_HudMenuComponent
=
SCR_HUDMenuComponent
.Cast(hudMenu.FindHandler(
SCR_HUDMenuComponent
));
73
}
74
75
//------------------------------------------------------------------------------------------------
76
override
void
HandlerDeattached
(
Widget
w)
77
{
78
super.HandlerDeattached(w);
79
80
PauseMenuUI
.
m_OnPauseMenuOpened
.Remove(
OnPauseMenuOpened
);
81
PauseMenuUI
.
m_OnPauseMenuClosed
.Remove(
OnPauseMenuClosed
);
82
}
83
84
//------------------------------------------------------------------------------------------------
85
protected
void
OnPauseMenuOpened
()
86
{
87
UpdateWidgetsOnPause
(
true
);
88
}
89
90
//------------------------------------------------------------------------------------------------
91
protected
void
OnPauseMenuClosed
()
92
{
93
UpdateWidgetsOnPause
(
false
);
94
ForceHUDLayout
();
95
}
96
97
//------------------------------------------------------------------------------------------------
98
protected
void
UpdateWidgetsOnPause
(
bool
paused)
99
{
100
foreach
(
Widget
widget :
m_aHiddenWidgets
)
101
{
102
widget.SetVisible(!paused);
103
}
104
105
foreach
(
Widget
widget :
m_aDisabledWidgets
)
106
{
107
widget.SetEnabled(!paused);
108
}
109
}
110
111
//------------------------------------------------------------------------------------------------
112
protected
void
ForceHUDLayout
()
113
{
114
if
(!
m_HudMenuComponent
)
115
return
;
116
117
m_HudMenuComponent
.EnableHUDMenu();
118
}
119
120
//------------------------------------------------------------------------------------------------
121
SCR_FactionRequestUIComponent
GetFactionRequestHandler
()
122
{
123
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sFactionUIHandler
);
124
if
(!tmp)
125
return
null;
126
127
return
SCR_FactionRequestUIComponent
.Cast(tmp.FindHandler(
SCR_FactionRequestUIComponent
));
128
}
129
130
//------------------------------------------------------------------------------------------------
131
SCR_LoadoutRequestUIComponent
GetLoadoutRequestHandler
()
132
{
133
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sLoadoutUIHandler
);
134
if
(!tmp)
135
return
null;
136
137
return
SCR_LoadoutRequestUIComponent
.Cast(tmp.FindHandler(
SCR_LoadoutRequestUIComponent
));
138
}
139
140
//------------------------------------------------------------------------------------------------
141
SCR_GroupRequestUIComponent
GetGroupRequestHandler
()
142
{
143
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sGroupUIHandler
);
144
if
(!tmp)
145
return
null;
146
147
return
SCR_GroupRequestUIComponent
.Cast(tmp.FindHandler(
SCR_GroupRequestUIComponent
));
148
}
149
150
//------------------------------------------------------------------------------------------------
151
SCR_SpawnPointRequestUIComponent
GetSpawnPointRequestHandler
()
152
{
153
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sSpawnPointUIHandler
);
154
if
(!tmp)
155
return
null;
156
157
return
SCR_SpawnPointRequestUIComponent
.Cast(tmp.FindHandler(
SCR_SpawnPointRequestUIComponent
));
158
}
159
160
//------------------------------------------------------------------------------------------------
161
SCR_FactionPlayerList
GetFactionPlayerList
()
162
{
163
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sFactionPlayerList
);
164
if
(!tmp)
165
return
null;
166
167
return
SCR_FactionPlayerList
.Cast(tmp.FindHandler(
SCR_FactionPlayerList
));
168
}
169
170
//------------------------------------------------------------------------------------------------
171
SCR_GroupPlayerList
GetGroupPlayerList
()
172
{
173
Widget
tmp =
m_wRoot
.FindAnyWidget(
m_sGroupPlayerList
);
174
if
(!tmp)
175
return
null;
176
177
return
SCR_GroupPlayerList
.Cast(tmp.FindHandler(
SCR_GroupPlayerList
));
178
}
179
}
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
PauseMenuUI
Definition
SCR_PauseMenuUI.c:3
PauseMenuUI::m_OnPauseMenuClosed
static ref ScriptInvoker m_OnPauseMenuClosed
Definition
SCR_PauseMenuUI.c:50
PauseMenuUI::m_OnPauseMenuOpened
static ref ScriptInvoker m_OnPauseMenuOpened
Definition
SCR_PauseMenuUI.c:49
SCR_DeployMenuHandler
Definition
SCR_DeployMenuHandler.c:7
SCR_DeployMenuHandler::GetFactionRequestHandler
SCR_FactionRequestUIComponent GetFactionRequestHandler()
Definition
SCR_DeployMenuHandler.c:121
SCR_DeployMenuHandler::m_SpawnPointUIHandler
SCR_SpawnPointRequestUIComponent m_SpawnPointUIHandler
Definition
SCR_DeployMenuHandler.c:41
SCR_DeployMenuHandler::m_aDisabledWidgets
ref array< Widget > m_aDisabledWidgets
Definition
SCR_DeployMenuHandler.c:36
SCR_DeployMenuHandler::UpdateWidgetsOnPause
void UpdateWidgetsOnPause(bool paused)
Definition
SCR_DeployMenuHandler.c:98
SCR_DeployMenuHandler::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_DeployMenuHandler.c:47
SCR_DeployMenuHandler::GetLoadoutRequestHandler
SCR_LoadoutRequestUIComponent GetLoadoutRequestHandler()
Definition
SCR_DeployMenuHandler.c:131
SCR_DeployMenuHandler::m_sGroupUIHandler
string m_sGroupUIHandler
Definition
SCR_DeployMenuHandler.c:15
SCR_DeployMenuHandler::OnPauseMenuOpened
void OnPauseMenuOpened()
Definition
SCR_DeployMenuHandler.c:85
SCR_DeployMenuHandler::m_FactionPlayerList
SCR_FactionPlayerList m_FactionPlayerList
Definition
SCR_DeployMenuHandler.c:42
SCR_DeployMenuHandler::GetGroupPlayerList
SCR_GroupPlayerList GetGroupPlayerList()
Definition
SCR_DeployMenuHandler.c:171
SCR_DeployMenuHandler::m_GroupRequestHandler
SCR_GroupRequestUIComponent m_GroupRequestHandler
Definition
SCR_DeployMenuHandler.c:40
SCR_DeployMenuHandler::GetSpawnPointRequestHandler
SCR_SpawnPointRequestUIComponent GetSpawnPointRequestHandler()
Definition
SCR_DeployMenuHandler.c:151
SCR_DeployMenuHandler::GetFactionPlayerList
SCR_FactionPlayerList GetFactionPlayerList()
Definition
SCR_DeployMenuHandler.c:161
SCR_DeployMenuHandler::m_aHiddenWidgets
ref array< Widget > m_aHiddenWidgets
Definition
SCR_DeployMenuHandler.c:35
SCR_DeployMenuHandler::OnPauseMenuClosed
void OnPauseMenuClosed()
Definition
SCR_DeployMenuHandler.c:91
SCR_DeployMenuHandler::m_HudMenuComponent
SCR_HUDMenuComponent m_HudMenuComponent
Definition
SCR_DeployMenuHandler.c:44
SCR_DeployMenuHandler::m_aDisabledWidgetsOnPause
ref array< string > m_aDisabledWidgetsOnPause
Definition
SCR_DeployMenuHandler.c:33
SCR_DeployMenuHandler::m_LoadoutRequestHandler
SCR_LoadoutRequestUIComponent m_LoadoutRequestHandler
Definition
SCR_DeployMenuHandler.c:39
SCR_DeployMenuHandler::HandlerDeattached
override void HandlerDeattached(Widget w)
Definition
SCR_DeployMenuHandler.c:76
SCR_DeployMenuHandler::m_sFactionPlayerList
string m_sFactionPlayerList
Definition
SCR_DeployMenuHandler.c:21
SCR_DeployMenuHandler::m_sSpawnPointUIHandler
string m_sSpawnPointUIHandler
Definition
SCR_DeployMenuHandler.c:18
SCR_DeployMenuHandler::m_sFactionUIHandler
string m_sFactionUIHandler
Definition
SCR_DeployMenuHandler.c:9
SCR_DeployMenuHandler::m_sHudLayoutUIHandler
string m_sHudLayoutUIHandler
Definition
SCR_DeployMenuHandler.c:27
SCR_DeployMenuHandler::ForceHUDLayout
void ForceHUDLayout()
Definition
SCR_DeployMenuHandler.c:112
SCR_DeployMenuHandler::m_sLoadoutUIHandler
string m_sLoadoutUIHandler
Definition
SCR_DeployMenuHandler.c:12
SCR_DeployMenuHandler::m_sGroupPlayerList
string m_sGroupPlayerList
Definition
SCR_DeployMenuHandler.c:24
SCR_DeployMenuHandler::m_aHiddenWidgetsOnPause
ref array< string > m_aHiddenWidgetsOnPause
Definition
SCR_DeployMenuHandler.c:30
SCR_DeployMenuHandler::m_GroupPlayerList
SCR_GroupPlayerList m_GroupPlayerList
Definition
SCR_DeployMenuHandler.c:43
SCR_DeployMenuHandler::m_FactionRequestHandler
SCR_FactionRequestUIComponent m_FactionRequestHandler
Definition
SCR_DeployMenuHandler.c:38
SCR_DeployMenuHandler::GetGroupRequestHandler
SCR_GroupRequestUIComponent GetGroupRequestHandler()
Definition
SCR_DeployMenuHandler.c:141
SCR_FactionPlayerList
Definition
SCR_FactionPlayerList.c:63
SCR_FactionRequestUIComponent
Definition
SCR_FactionRequestUIComponent.c:6
SCR_GroupPlayerList
Definition
SCR_FactionPlayerList.c:245
SCR_GroupRequestUIComponent
Component responsible for handling group requests and visualization in deploy menu.
Definition
SCR_GroupRequestUIComponent.c:4
SCR_HUDMenuComponent
Definition
SCR_HUDMenuComponent.c:2
SCR_LoadoutRequestUIComponent
Component responsible for requesting and visualization of available loadouts in deploy menu.
Definition
SCR_LoadoutRequestUIComponent.c:15
SCR_ScriptedWidgetComponent
Definition
SCR_ScriptedWidgetComponent.c:8
SCR_ScriptedWidgetComponent::m_wRoot
Widget m_wRoot
Definition
SCR_ScriptedWidgetComponent.c:9
SCR_SpawnPointRequestUIComponent
Definition
SCR_SpawnPointRequestUIComponent.c:2
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Menu
DeployMenu
SCR_DeployMenuHandler.c
Generated by
1.17.0