1 [
ComponentEditorProps(
category:
"GameScripted/Editor", description:
"Manager of editor context actions", icon:
"WBData/ComponentEditorProps/componentEditor.png")]
17 protected ref ScriptInvoker m_OnMenuOpen =
new ScriptInvoker();
25 ScriptInvoker GetOnMenuOpen()
30 override protected int ValidateSelection(
bool isInstant)
33 if (!m_StateManager || m_StateManager.GetState() ==
EEditorState.SELECTING)
85 if (GetManager().IsLimited())
95 override void EvaluateActions(notnull array<SCR_BaseEditorAction> actions, vector cursorWorldPosition, out notnull array<ref SCR_EditorActionData> filteredActions, out
int flags = 0)
97 super.EvaluateActions(actions, cursorWorldPosition, filteredActions, flags);
98 m_OnMenuOpen.Invoke(actions, cursorWorldPosition, filteredActions, flags);
101 override protected bool ActionCanBeShown(
SCR_BaseEditorAction action, vector cursorWorldPosition,
int flags)
106 override protected bool ActionCanBePerformed(
SCR_BaseEditorAction action, vector cursorWorldPosition,
int flags)
111 override void EOnEditorActivate()
113 super.EOnEditorActivate();
114 DiagMenu.RegisterMenu(
SCR_DebugMenuID.DEBUGUI_EDITOR_ACTIONS_MENU,
"Actions Menu",
"Editor");
120 override void EOnEditorDeactivate()
122 super.EOnEditorDeactivate();