internal void OnGUI() { TreeCenter.OnGUI(position, this == focusedWindow); if (Event.current.isKey && Event.current.keyCode == KeyCode.F && Event.current.control) { TreeSearchWindow.Open(this); } }
internal static void Open(TreeWindow main) { TreeSearchWindow w = GetWindow <TreeSearchWindow>(false, "Search"); Rect r = w.position; Rect m = main.position; r.center = m.center; w.position = r; }