Example #1
0
        internal void OnEnable()
        {
            PResourceManager.SetDefaultResourcePath("Assets/Res/Scripts/Editor/res/");
            Texture icon = PResourceManager.LoadTexture(EditorGUIUtility.isProSkin
                ? "Textures/Icon_Dark.png"
                : "Textures/Icon_Light.png");

            titleContent   = new GUIContent("Search", icon);
            minSize        = new Vector2(300, 100);
            wantsMouseMove = true;
            TreeSearchCenter.Start();
            PPaintCenter.ClientRepaints         -= Repaint;
            PPaintCenter.ClientRepaints         += Repaint;
            TreeSearchCenter.windowCloseHandler -= ShouldClose;
            TreeSearchCenter.windowCloseHandler += ShouldClose;
        }
Example #2
0
 internal void OnDestroy()
 {
     PPaintCenter.ClientRepaints         -= Repaint;
     TreeSearchCenter.windowCloseHandler -= ShouldClose;
     TreeSearchCenter.Stop();
 }
Example #3
0
 internal void OnGUI()
 {
     TreeSearchCenter.OnGUI(position, this == focusedWindow);
 }