Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
        }