Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ToggleUIManualCameraComponent.c
Go to the documentation of this file.
1
2
4[BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6{
7 //------------------------------------------------------------------------------------------------
8 protected void ToggleUI()
9 {
10 if (!IsEnabled())
11 return;
12
13 Widget widget = GetCameraEntity().GetWidget();
14 if (!widget)
15 return;
16
17 widget.SetVisible(!widget.IsVisible());
18 }
19
20 //------------------------------------------------------------------------------------------------
21 override bool EOnCameraInit()
22 {
23 InputManager inputManager = GetInputManager();
24 if (!inputManager)
25 return false;
26
27 inputManager.AddActionListener("ManualCameraToggleUI", EActionTrigger.DOWN, ToggleUI);
28
29 return false;
30 }
31
32 //------------------------------------------------------------------------------------------------
33 override void EOnCameraExit()
34 {
35 InputManager inputManager = GetInputManager();
36 if (!inputManager)
37 return;
38
39 inputManager.RemoveActionListener("ManualCameraToggleUI", EActionTrigger.DOWN, ToggleUI);
40 }
41}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Input management system for user interactions.
Parent class from which all SCR_ManualCamera components inherit.
Manual control of camera GUI visibility.
EActionTrigger