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_EditorEntityToEntityHintCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
(), SCR_BaseContainerHintCondition()]
2
class
SCR_EditorEntityToEntityHintCondition
:
SCR_BaseEditorHintCondition
3
{
4
//[Attribute("-1", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EEditableEntityType))]
5
//protected EEditableEntityType m_EditedType;
6
7
[
Attribute
(
"-1"
, uiwidget:
UIWidgets
.ComboBox, enums: ParamEnumArray.FromEnum(
EEditableEntityType
))]
8
protected
EEditableEntityType
m_TargetType
;
9
10
//------------------------------------------------------------------------------------------------
11
protected
void
OnTargetChange
(
SCR_EditableEntityComponent
target)
12
{
13
if
(target)
14
{
15
if
(target.
GetEntityType
() ==
m_TargetType
)
16
Activate
();
17
}
18
else
19
{
20
Deactivate
();
21
}
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
protected
void
OnInitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
26
{
27
SCR_PreviewEntityEditorComponent
previewManager =
SCR_PreviewEntityEditorComponent
.Cast(
SCR_PreviewEntityEditorComponent
.GetInstance(
SCR_PreviewEntityEditorComponent
));
28
if
(previewManager)
29
previewManager.
GetOnTargetChange
().Insert(
OnTargetChange
);
30
}
31
32
//------------------------------------------------------------------------------------------------
33
override
protected
void
OnExitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
34
{
35
SCR_PreviewEntityEditorComponent
previewManager =
SCR_PreviewEntityEditorComponent
.Cast(
SCR_PreviewEntityEditorComponent
.GetInstance(
SCR_PreviewEntityEditorComponent
));
36
if
(previewManager)
37
previewManager.
GetOnTargetChange
().Remove(
OnTargetChange
);
38
}
39
}
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_EditableEntityComponent::GetEntityType
EEditableEntityType GetEntityType(IEntity owner=null)
Definition
SCR_EditableEntityComponent.c:127
SCR_EditorEntityToEntityHintCondition
Definition
SCR_EditorEntityToEntityHintCondition.c:3
SCR_EditorEntityToEntityHintCondition::OnInitConditionEditor
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorEntityToEntityHintCondition.c:25
SCR_EditorEntityToEntityHintCondition::m_TargetType
EEditableEntityType m_TargetType
Definition
SCR_EditorEntityToEntityHintCondition.c:8
SCR_EditorEntityToEntityHintCondition::OnExitConditionEditor
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorEntityToEntityHintCondition.c:33
SCR_EditorEntityToEntityHintCondition::OnTargetChange
void OnTargetChange(SCR_EditableEntityComponent target)
Definition
SCR_EditorEntityToEntityHintCondition.c:11
SCR_PreviewEntityEditorComponent
Definition
SCR_PreviewEntityEditorComponent.c:13
SCR_PreviewEntityEditorComponent::GetOnTargetChange
ScriptInvoker GetOnTargetChange()
Definition
SCR_PreviewEntityEditorComponent.c:822
UIWidgets
Definition
attributes.c:40
EEditableEntityType
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
Definition
EEditableEntityType.c:6
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Components
Hints
HintConditions
SCR_EditorEntityToEntityHintCondition.c
Generated by
1.17.0