Browse Source

Add close button

Destroys the plugin.
habeebweeb 4 years ago
parent
commit
368642e3d3
1 changed files with 9 additions and 1 deletions
  1. 9 1
      COM3D2.MeidoPhotoStudio.Converter/Program.cs

+ 9 - 1
COM3D2.MeidoPhotoStudio.Converter/Program.cs

@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.IO;
 using System.IO;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
@@ -93,8 +93,16 @@ namespace COM3D2.MeidoPhotoStudio.Converter
         {
         {
             if (GUILayout.Button("Convert ModifiedMM")) ProcessModifedMM();
             if (GUILayout.Button("Convert ModifiedMM")) ProcessModifedMM();
             if (GUILayout.Button("Convert ModifiedMM (Scene Manager)")) ProcessModifiedMMPng();
             if (GUILayout.Button("Convert ModifiedMM (Scene Manager)")) ProcessModifiedMMPng();
+
             GUILayout.Space(30f);
             GUILayout.Space(30f);
+
             if (GUILayout.Button("Convert modifedMM quickSave")) ProcessQuickSave();
             if (GUILayout.Button("Convert modifedMM quickSave")) ProcessQuickSave();
+
+            GUILayout.FlexibleSpace();
+
+            if (GUILayout.Button("Close (Reopening requires restart)")) Destroy(this);
+
+            GUI.DragWindow();
         }
         }
 
 
         private void ProcessModifiedMMPng()
         private void ProcessModifiedMMPng()