6 SCR_EditablePlayerDelegateComponent delegate = SCR_EditablePlayerDelegateComponent.Cast(item);
14 return core.GetEditorManager(delegate.GetPlayerID());
26 if (
SCR_Global.IsAdmin(editorManager.GetPlayerID()))
29 modes = editorManager.GetModes();
31 super.ReadVariable(item, manager);
36 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
55 int flags = var.GetVector()[0];
65 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
70 super.WriteVariable(item, var, manager, playerID);
77 if (
SCR_Global.IsAdmin(editorManager.GetPlayerID()))
84 protected override void CreatePresets()
92 SCR_SortedArray<SCR_EditorModePrefab> modePrefabs =
new SCR_SortedArray<SCR_EditorModePrefab>;
93 for (
int i, count = core.GetBaseModePrefabs(modePrefabs,
EEditorModeFlag.EDITABLE,
true); i < count; i++)
95 mode = modePrefabs[i];
97 value.SetWithUIInfo(mode.GetInfo(), mode.GetMode());