예제 #1
0
 internal void OnGUI()
 {
     TreeCenter.OnGUI(position, this == focusedWindow);
     if (Event.current.isKey && Event.current.keyCode == KeyCode.F && Event.current.control)
     {
         TreeSearchWindow.Open(this);
     }
 }
예제 #2
0
        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;
        }