ソースを参照

Make UI smaller and draggable

habeebweeb 3 年 前
コミット
28522f4716
1 ファイル変更4 行追加2 行削除
  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();
         }
     }
 }