Prechádzať zdrojové kódy

Make UI smaller and draggable

habeebweeb 3 rokov pred
rodič
commit
28522f4716
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  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();
         }
     }
 }