Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorToggleUIManualCameraComponent.c
Go to the documentation of this file.
1 
4 [BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6 {
7  //------------------------------------------------------------------------------------------------
8  protected void OnVisibilityChange(bool isVisible)
9  {
10  Widget widget = GetCameraEntity().GetWidget();
11  if (widget)
12  widget.SetVisible(isVisible);
13  }
14 
15  //------------------------------------------------------------------------------------------------
16  override bool EOnCameraInit()
17  {
19  if (!menuManager)
20  {
21  SetEnabled(false);
22  return false;
23  }
24 
25  menuManager.GetOnVisibilityChange().Insert(OnVisibilityChange);
26  OnVisibilityChange(menuManager.IsVisible());
27  return false;
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  override void EOnCameraExit()
32  {
34  if (!menuManager)
35  return;
36 
37  menuManager.GetOnVisibilityChange().Remove(OnVisibilityChange);
38  }
39 }
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
SetEnabled
void SetEnabled(bool enabled)
Definition: SCR_BaseManualCameraComponent.c:91
SCR_EditorToggleUIManualCameraComponent
Editor control of camera GUI visibility.
Definition: SCR_EditorToggleUIManualCameraComponent.c:5
GetCameraEntity
protected SCR_ManualCamera GetCameraEntity()
Definition: SCR_BaseManualCameraComponent.c:59
SCR_MenuEditorComponent
Definition: SCR_MenuEditorComponent.c:8
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