Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_BaseEditorHintCondition
Definition
SCR_BaseEditorHintCondition.c:3
SCR_BaseHintCondition::Activate
void Activate()
Definition
SCR_BaseHintCondition.c:11
SCR_BaseHintCondition::Deactivate
void Deactivate()
Definition
SCR_BaseHintCondition.c:29
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditorLayerHintCondition
Definition
SCR_EditorLayerHintCondition.c:3
SCR_EditorLayerHintCondition::m_bOnEnter
bool m_bOnEnter
Definition
SCR_EditorLayerHintCondition.c:5
SCR_EditorLayerHintCondition::OnInitConditionEditor
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorLayerHintCondition.c:27
SCR_EditorLayerHintCondition::OnExitConditionEditor
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorLayerHintCondition.c:35
SCR_EditorLayerHintCondition::OnCurrentLayerChange
void OnCurrentLayerChange(SCR_EditableEntityComponent currentLayer, SCR_EditableEntityComponent prevCurrentLayer)
Definition
SCR_EditorLayerHintCondition.c:8
SCR_LayersEditorComponent
Definition
SCR_LayersEditorManager.c:12
SCR_LayersEditorComponent::GetOnCurrentLayerChange
ScriptInvoker GetOnCurrentLayerChange()
Definition
SCR_LayersEditorManager.c:53
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Components
Hints
HintConditions
SCR_EditorLayerHintCondition.c
Generated by
1.17.0