Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ToggleUIManualCameraComponent.c
Go to the documentation of this file.
1 
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_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
SCR_ToggleUIManualCameraComponent
Manual control of camera GUI visibility.
Definition: SCR_ToggleUIManualCameraComponent.c:5
IsEnabled
int IsEnabled()
Definition: SCR_BaseManualCameraComponent.c:99
GetCameraEntity
protected SCR_ManualCamera GetCameraEntity()
Definition: SCR_BaseManualCameraComponent.c:59
GetInputManager
protected InputManager GetInputManager()
Definition: SCR_BaseManualCameraComponent.c:65
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468