소스 검색

Change layout of clear and call button

Both buttons are now next to each other but the clear button is now way
smaller. Reduces chances of accidentally clicking clear.
habeebweeb 4 년 전
부모
커밋
64b8321295
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Panes/CallWindowPanes/MaidSelectorPane.cs

+ 5 - 3
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Panes/CallWindowPanes/MaidSelectorPane.cs

@@ -26,8 +26,10 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         public override void Draw()
         {
-            clearMaidsButton.Draw();
+            GUILayout.BeginHorizontal();
+            clearMaidsButton.Draw(GUILayout.ExpandWidth(false));
             callMaidsButton.Draw();
+            GUILayout.EndHorizontal();
 
             GUIStyle labelStyle = new GUIStyle(GUI.skin.label) { fontSize = 14 };
             GUIStyle selectLabelStyle = new GUIStyle(labelStyle);
@@ -41,8 +43,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             float buttonWidth = windowRect.width - 30f;
             const float buttonHeight = 85f;
 
-            Rect positionRect = new Rect(5, 115f, windowRect.width - 10f, windowHeight - 150f);
-            Rect viewRect = new Rect(0, 0, buttonWidth, (buttonHeight * meidoManager.Meidos.Length) + 5f);
+            Rect positionRect = new Rect(5f, 90f, windowRect.width - 10f, windowHeight - 125f);
+            Rect viewRect = new Rect(0f, 0f, buttonWidth, (buttonHeight * meidoManager.Meidos.Length) + 5f);
             maidListScrollPos = GUI.BeginScrollView(positionRect, maidListScrollPos, viewRect);
 
             for (int i = 0; i < meidoManager.Meidos.Length; i++)