Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorPlacingHintCondition.c
Go to the documentation of this file.
1[BaseContainerProps(), SCR_BaseContainerHintCondition()]
3{
4 [Attribute("-1", uiwidget: UIWidgets.ComboBox, enums: SCR_Enum.GetList(EEditableEntityType, new ParamEnum("<None>", "-1")))]
6
7 //------------------------------------------------------------------------------------------------
8 protected void OnSelectedPrefabChange(ResourceName prefab, ResourceName prefabPrev)
9 {
10 if (prefab)
11 {
12 if (m_Type == -1)
13 {
14 GetGame().GetCallqueue().CallLater(Activate, 100); //--- Wait for asset browser to close
15 }
16 else
17 {
18 Resource resource = Resource.Load(prefab);
19 IEntitySource entitySource = SCR_BaseContainerTools.FindEntitySource(resource);
21 if (SCR_EditableEntityComponentClass.GetEntityType(editableEntitySource) == m_Type)
22 {
23 GetGame().GetCallqueue().CallLater(Activate, 100); //--- Wait for asset browser to close
24 }
25 }
26 }
27 else
28 {
29 Deactivate();
30 }
31 }
32
33 //------------------------------------------------------------------------------------------------
34 override protected void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
35 {
37 if (placingManager)
39 }
40
41 //------------------------------------------------------------------------------------------------
42 override protected void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
43 {
45 if (placingManager)
47 }
48}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Object holding reference to resource. In destructor release the resource.
Definition Resource.c:25
static IEntityComponentSource GetEditableEntitySource(Resource entityResource)
void OnSelectedPrefabChange(ResourceName prefab, ResourceName prefabPrev)
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
SCR_FieldOfViewSettings Attribute