Browse Source

Make UI smaller and draggable

habeebweeb 2 years ago
parent
commit
28522f4716
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/MeidoPhotoStudio.Converter/UI.cs

+ 4 - 2
src/MeidoPhotoStudio.Converter/UI.cs

@@ -20,8 +20,8 @@ namespace MeidoPhotoStudio.Converter
             if (!Visible)
                 return;
 
-            windowRect.width = 300f;
-            windowRect.height = 200f;
+            windowRect.width = 230f;
+            windowRect.height = 100f;
             windowRect.x = Mathf.Clamp(windowRect.x, 0, Screen.width - windowRect.width);
             windowRect.y = Mathf.Clamp(windowRect.y, 0, Screen.height - windowRect.height);
             windowRect = GUI.Window(WindowID, windowRect, GUIFunc, WindowTitle);
@@ -33,6 +33,8 @@ namespace MeidoPhotoStudio.Converter
 
             if (GUILayout.Button("Convert"))
                 core.Convert();
+
+            GUI.DragWindow();
         }
     }
 }