Inheritance: EditorWindow
示例#1
0
    private void OnGUI()
    {
        draw = (TextureImporterSetting.show) ? false: true;
        draw = (Application.isPlaying) ? false: true;

        if (fType == fTypes.Length - 1)
        {
            draw = false;
            ExportTypesWindow.Init(((BitmapSaverWindow)this));
        }
        Handles.DrawLine(new Vector3(0, 0, 0), new Vector3(10, 0, 0));
        Handles.BeginGUI();

        AutoEditorResizer();
        GUI.enabled = draw;

        DrawDragLine(new Rect(15, 98, EditorRect.width - 30, EditorRect.height - 190));
        DrawDirectory();
        DrawFileList();
        DrawExporter();

        if (TextureImporterSetting.show)
        {
            TextureImporterWindow.Init(EditorRect);
        }

        Repaint();
        ResetStyles();

        Handles.EndGUI();
    }
示例#2
0
    public static void Init( BitmapSaverWindow _parent )
    {
        Rect pos 	= _parent.EditorRect;
        parent 		= _parent;

        if(window != null )
        {
            window.Show();
            return;

        }else{

            window =( ExportTypesWindow )EditorWindow.GetWindow(typeof( ExportTypesWindow ), false, "Extension");
            window.position = new Rect(pos.x + 150, pos.y + 20, 250, 300);
            window.wantsMouseMove = true;
            window.Show();
        }
    }
示例#3
0
    public static void Init(BitmapSaverWindow _parent)
    {
        Rect pos = _parent.EditorRect;

        parent = _parent;

        if (window != null)
        {
            window.Show();
            return;
        }
        else
        {
            window                = ( ExportTypesWindow )EditorWindow.GetWindow(typeof(ExportTypesWindow), false, "Extension");
            window.position       = new Rect(pos.x + 150, pos.y + 20, 250, 300);
            window.wantsMouseMove = true;
            window.Show();
        }
    }
示例#4
0
 private void Closer()
 {
     window.Close();
     window = null;
 }
示例#5
0
 private void Closer()
 {
     window.Close();
     window = null;
 }