Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorVONControllerComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Editor"
, description:
""
, icon:
"WBData/ComponentEditorProps/componentEditor.png"
)]
2
class
SCR_EditorVONControllerComponentClass
:
SCR_BaseEditorComponentClass
3
{
4
}
5
7
class
SCR_EditorVONControllerComponent :
SCR_BaseEditorComponent
8
{
9
//------------------------------------------------------------------------------------------------
10
override
protected
void
EOnEditorOpen
()
11
{
12
SCR_EditorManagerEntity
instance =
SCR_EditorManagerEntity
.GetInstance();
13
14
if
(instance)
15
instance.GetOnModeChange().Insert(
OnEditorModeChange
);
16
17
OnEditorModeChange
();
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
protected
void
EOnEditorClose
()
22
{
23
SCR_EditorManagerEntity
instance =
SCR_EditorManagerEntity
.GetInstance();
24
25
if
(instance)
26
instance.GetOnModeChange().Remove(
OnEditorModeChange
);
27
}
28
29
//------------------------------------------------------------------------------------------------
30
protected
void
OnEditorModeChange
()
31
{
32
EEditorMode
mode =
SCR_EditorManagerEntity
.GetInstance().GetCurrentMode();
33
34
// Prevent von menu using
35
SCR_VONController vonController = SCR_VONController.Cast(
GetGame
().
GetPlayerController
().FindComponent(SCR_VONController));
36
if
(vonController && vonController.GetVONMenu())
37
vonController.GetVONMenu().SetMenuDisabled(mode ==
EEditorMode
.PHOTO);
38
}
39
}
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
GetPlayerController
proto external PlayerController GetPlayerController()
Definition:
SCR_PlayerDeployMenuHandlerComponent.c:307
EOnEditorOpen
SCR_EditorVONControllerComponentClass SCR_BaseEditorComponentClass EOnEditorOpen()
Manages interaction with Voice Over Network IEntityComponentSource.
Definition:
SCR_EditorVONControllerComponent.c:10
SCR_EditorVONControllerComponentClass
Definition:
SCR_EditorVONControllerComponent.c:2
SCR_BaseEditorComponent
Definition:
SCR_BaseEditorComponent.c:119
EOnEditorClose
override protected void EOnEditorClose()
Definition:
SCR_EditorVONControllerComponent.c:21
SCR_BaseEditorComponentClass
Definition:
SCR_BaseEditorComponent.c:2
EEditorMode
EEditorMode
Editor mode that defines overall functionality.
Definition:
EEditorMode.c:5
OnEditorModeChange
protected void OnEditorModeChange()
Definition:
SCR_EditorVONControllerComponent.c:30
category
params category
Definition:
SCR_VehicleDamageManagerComponent.c:180
SCR_EditorManagerEntity
Definition:
SCR_EditorManagerEntity.c:26
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Components
Editor
VON
SCR_EditorVONControllerComponent.c
Generated by
1.8.17