Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorCursorManualCameraComponent.c
Go to the documentation of this file.
1 
4 [BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6 {
7  protected SCR_MouseAreaEditorUIComponent m_MouseArea;
8  protected SCR_MenuEditorComponent m_MenuManager;
9 
10  //------------------------------------------------------------------------------------------------
11  override void EOnCameraFrame(SCR_ManualCameraParam param)
12  {
13  if (!m_MouseArea)
14  return;
15 
16  param.isCursorEnabled = m_MouseArea.IsMouseOn() || !m_MenuManager.IsVisible();
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  override bool EOnCameraInit()
21  {
23  if (!m_MenuManager)
24  return false;
25 
26  EditorMenuBase menu = m_MenuManager.GetMenu();
27  if (!menu)
28  return false;
29 
30  MenuRootComponent root = menu.GetRootComponent();
31  if (!root)
32  return false;
33 
35  return m_MouseArea != null;
36  }
37 }
m_MouseArea
private SCR_MouseAreaEditorUIComponent m_MouseArea
Definition: SCR_CursorEditorUIComponent.c:38
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
SCR_MouseAreaEditorUIComponent
Definition: SCR_MouseAreaEditorUIComponent.c:3
EditorMenuBase
Definition: EditorMenuBase.c:7
SCR_EditorCursorManualCameraComponent
Check if cursor is not on top of another widget.
Definition: SCR_EditorCursorManualCameraComponent.c:5
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition: SCR_ManualCameraParam.c:5
MenuRootComponent
Definition: MenuRootComponent.c:6
SCR_MenuEditorComponent
Definition: SCR_MenuEditorComponent.c:8
m_MenuManager
protected MenuManager m_MenuManager
Definition: SCR_InfoDisplayExtended.c:27
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