5 const string WIDGET_BUTTON_CLOSE =
"CloseButton";
7 protected void CloseWithoutPlacing()
13 placingManager.SetInstantPlacing(
null);
19 override void OnMenuOpen()
22 if (!rootWidget)
return;
25 if (onClose) onClose.Insert(CloseWithoutPlacing);
32 editorManager.GetOnDeactivate().Insert(CloseWithoutPlacing);
35 InputManager inputManager =
GetGame().GetInputManager();
37 inputManager.AddActionListener(
"EditorContentBrowserClose", EActionTrigger.DOWN, CloseWithoutPlacing);
39 override void OnMenuClose()
46 editorManager.GetOnDeactivate().Remove(CloseWithoutPlacing);
48 InputManager inputManager =
GetGame().GetInputManager();
50 inputManager.RemoveActionListener(
"EditorContentBrowserClose", EActionTrigger.DOWN, CloseWithoutPlacing);