Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorToggleUIManualCameraComponent.c
Go to the documentation of this file.
1
2
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_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Parent class from which all SCR_ManualCamera components inherit.