Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorLayerHintCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
(), SCR_BaseContainerHintCondition()]
2
class
SCR_EditorLayerHintCondition
:
SCR_BaseEditorHintCondition
3
{
4
[
Attribute
(
"1"
)]
5
protected
bool
m_bOnEnter;
6
7
//------------------------------------------------------------------------------------------------
8
protected
void
OnCurrentLayerChange(
SCR_EditableEntityComponent
currentLayer,
SCR_EditableEntityComponent
prevCurrentLayer)
9
{
10
if
(m_bOnEnter)
11
{
12
if
(currentLayer && !prevCurrentLayer)
13
Activate
();
14
else
15
Deactivate
();
16
}
17
else
18
{
19
if
(!currentLayer && prevCurrentLayer)
20
Activate
();
21
else
22
Deactivate
();
23
}
24
}
25
26
//------------------------------------------------------------------------------------------------
27
override
protected
void
OnInitConditionEditor(
SCR_EditorManagerEntity
editorManager)
28
{
29
SCR_LayersEditorComponent
layerManager =
SCR_LayersEditorComponent
.Cast(
SCR_LayersEditorComponent
.GetInstance(
SCR_LayersEditorComponent
));
30
if
(layerManager)
31
layerManager.GetOnCurrentLayerChange().Insert(OnCurrentLayerChange);
32
}
33
34
//------------------------------------------------------------------------------------------------
35
override
protected
void
OnExitConditionEditor(
SCR_EditorManagerEntity
editorManager)
36
{
37
SCR_LayersEditorComponent
layerManager =
SCR_LayersEditorComponent
.Cast(
SCR_LayersEditorComponent
.GetInstance(
SCR_LayersEditorComponent
));
38
if
(layerManager)
39
layerManager.GetOnCurrentLayerChange().Remove(OnCurrentLayerChange);
40
}
41
}
SCR_BaseEditorHintCondition
Definition:
SCR_BaseEditorHintCondition.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EditorLayerHintCondition
Definition:
SCR_EditorLayerHintCondition.c:2
Deactivate
protected void Deactivate()
Definition:
SCR_BaseHintCondition.c:27
Activate
protected void Activate()
Definition:
SCR_BaseHintCondition.c:9
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_LayersEditorComponent
Definition:
SCR_LayersEditorManager.c:11
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
SCR_EditorManagerEntity
Definition:
SCR_EditorManagerEntity.c:26
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Components
Hints
HintConditions
SCR_EditorLayerHintCondition.c
Generated by
1.8.17