Ejemplo n.º 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("Packer", icon);
            minSize        = new Vector2(250, 100);
            wantsMouseMove = true;
            PackCenter.Start();
            PPaintCenter.ClientRepaints -= Repaint;
            PPaintCenter.ClientRepaints += Repaint;
        }
Ejemplo n.º 2
0
 internal void OnDestroy()
 {
     PPaintCenter.ClientRepaints -= Repaint;
     PackCenter.Stop();
 }
Ejemplo n.º 3
0
 internal void OnGUI()
 {
     PackCenter.DrawGUI(position, this == focusedWindow);
 }