Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SnapYPositionEditorAttribute.c
Go to the documentation of this file.
1
6{
8
9 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
10 {
11 //Disable
12 return null;
13
15 if (!editableEntity)
16 return null;
17
18 if (!IsValidEntityType(editableEntity.GetEntityType()))
19 return null;
20
21 //~Todo: Make sure chilren positions are set correctly
22 if (editableEntity.GetChildrenCount() > 0)
23 return null;
24
25 //Resets everytime editor is opened
27 }
28
33
34 override void PreviewVariable(bool setPreview, SCR_AttributesManagerEditorComponent manager)
35 {
36 Event_OnValueChanged.Invoke(GetVariableOrCopy().GetBool());
37 }
38};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
sealed SCR_BaseEditorAttributeVar GetVariableOrCopy()
static SCR_BaseEditorAttributeVar CreateBool(bool value)
EEditableEntityType GetEntityType(IEntity owner=null)
int GetChildrenCount(bool onlyDirect=false)
override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
override void PreviewVariable(bool setPreview, SCR_AttributesManagerEditorComponent manager)
bool IsValidEntityType(EEditableEntityType entityType)
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134