4 [
ComponentEditorProps(
category:
"GameScripted/Editor", description:
"Responsible for controlling radial menus used within GameMaster", icon:
"WBData/ComponentEditorProps/componentEditor.png")]
42 if (m_ActionsMenuController)
44 m_ActionsMenuController.SetEnableControl(
false);
45 m_ActionsMenuController.StopControl(
true);
64 if (m_ActionsMenuController)
65 m_ActionsMenuController.SetEnableControl(
true);
83 if (!editorMenuLayout)
90 vector cursorWorldPosition;
91 if (!editorMenuLayout.GetCursorWorldPos(cursorWorldPosition))
94 array<ref SCR_EditorActionData> filteredActions = {};
95 actionsComponent.GetAndEvaluateActions(cursorWorldPosition, filteredActions, flags);
98 if (filteredActions.IsEmpty())
104 array<ref SCR_SelectionMenuEntry> radialMenuEntries = {};
117 menuEntry.Enable(
true);
118 menuEntry.SetName(info.GetName());
119 menuEntry.SetIcon(info.GetIconPath());
120 menuEntry.SetDescription(info.GetDescription());
121 menuEntry.SetInputAction(action.GetShortcut());
123 radialMenuEntries.Insert(menuEntry);
126 radialMenu.GetOnClose().Insert(
CleanMenu);
127 radialMenu.AddEntries(radialMenuEntries,
true);
129 menuController.OnInputOpen();
137 if (m_ActionsMenuController)
138 radialMenu = m_ActionsMenuController.GetRadialMenu();
142 radialMenu.ClearEntries();
151 radialMenu.ClearEntries();
160 radialMenu.ClearEntries();
168 if (!m_ActionsMenuController)
171 m_ActionsMenuController.Control(
GetOwner());
174 if (!editorActionsComponent)
189 if (!editorCommandsComponent)
204 if (!editorCommandsComponent)
220 InputManager inputManager =
GetGame().GetInputManager();