24 protected bool m_bRefresh;
25 protected bool m_bEntriesUpdate =
false;
27 protected vector m_vMenuWorldPos;
44 return m_OnEntrySelected;
51 return m_OnEntryPerformed;
58 return m_RadialController;
81 vector GetMenuWorldPosition()
83 m_vMenuWorldPos[1] =
GetGame().GetWorld().GetSurfaceY(m_vMenuWorldPos[0], m_vMenuWorldPos[2]);
85 return m_vMenuWorldPos;
92 protected void OnInputMenuOpen(
float value, EActionTrigger reason)
100 m_RadialController.OnInputOpen();
121 m_RadialController.SetEnableControl(
false);
123 m_RadialController.SetEnableControl(
true);
139 m_OnMenuInit.Invoke();
164 menuVON.SetMenuDisabled(
true);
167 float wX, wY, sX, sY;
172 m_vMenuWorldPos[0] = wX;
173 m_vMenuWorldPos[2] = wY;
189 menuVON.SetMenuDisabled(
false);
202 m_OnEntrySelected.Invoke(entry, entryID);
217 m_OnEntryPerformed.Invoke(entry, worldPos);
239 parent.AddEntry(entry);
273 parent.AddEntry(entry);
293 override void Update(
float timeSlice)
300 override void OnMapOpen(MapConfiguration config)
302 super.OnMapOpen(config);
306 m_RadialController.GetOnInputOpen().Insert(InputOpenMenu);
307 m_RadialController.GetOnTakeControl().Insert(OnControllerTakeControl);
308 m_RadialController.GetOnControllerChanged().Insert(OnControllerChanged);
310 GetGame().GetInputManager().AddActionListener(
"MapContextualMenu", EActionTrigger.UP, OnInputMenuOpen);
314 override void OnMapClose(MapConfiguration config)
316 GetGame().GetInputManager().RemoveActionListener(
"MapContextualMenu", EActionTrigger.UP, OnInputMenuOpen);
318 m_RadialController.GetOnInputOpen().Remove(InputOpenMenu);
319 m_RadialController.GetOnTakeControl().Remove(OnControllerTakeControl);
320 m_RadialController.GetOnControllerChanged().Remove(OnControllerChanged);
322 if (m_RadialController.HasControl())
327 OnControllerChanged(
null);
328 m_RadialController.StopControl(
true);
331 super.OnMapClose(config);
338 m_bHookToRoot =
true;