Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorEntityToEntityHintCondition.c
Go to the documentation of this file.
1[BaseContainerProps(), SCR_BaseContainerHintCondition()]
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))]
9
10 //------------------------------------------------------------------------------------------------
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 {
28 if (previewManager)
29 previewManager.GetOnTargetChange().Insert(OnTargetChange);
30 }
31
32 //------------------------------------------------------------------------------------------------
33 override protected void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
34 {
36 if (previewManager)
37 previewManager.GetOnTargetChange().Remove(OnTargetChange);
38 }
39}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
EEditableEntityType GetEntityType(IEntity owner=null)
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
void OnTargetChange(SCR_EditableEntityComponent target)
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
SCR_FieldOfViewSettings Attribute