Procházet zdrojové kódy

Make minor save manager GUI changes

habeebweeb před 5 roky
rodič
revize
032480336f

+ 22 - 20
MultipleMaids/CM3D2/MultipleMaids/Plugin/MultipleMaids.Gui.cs

@@ -8941,7 +8941,7 @@ namespace CM3D2.MultipleMaids.Plugin
         private void SaveManagerWindow(int winID)
         {
             GUIStyle labelStyle = new GUIStyle("label");
-            labelStyle.fontSize = GetPix(13);
+            labelStyle.fontSize = GetPix(15);
             labelStyle.alignment = TextAnchor.MiddleCenter;
             GUIStyle newSaveStyle = new GUIStyle("button");
             newSaveStyle.alignment = TextAnchor.MiddleCenter;
@@ -8954,9 +8954,8 @@ namespace CM3D2.MultipleMaids.Plugin
             saveControlStyle.fontSize = GetPix(12);
             saveControlStyle.alignment = TextAnchor.MiddleCenter;
             GUIStyle listStyle = new GUIStyle("button");
-            listStyle.fontSize = GetPix(14);
+            listStyle.fontSize = selectedButtonStyle.fontSize = GetPix(12);
             listStyle.alignment = TextAnchor.MiddleLeft;
-            selectedButtonStyle.fontSize = GetPix(14);
             selectedButtonStyle.alignment = TextAnchor.MiddleLeft;
             GUIStyle textFieldStyle = new GUIStyle("textfield");
             textFieldStyle.alignment = TextAnchor.MiddleLeft;
@@ -8969,18 +8968,13 @@ namespace CM3D2.MultipleMaids.Plugin
             int windowPaddingY = GetPix(20);
             int buttonSize = GetPix(25);
 
-            GUI.Label(new Rect(
-                saveManagerRect.width - GetPix(15),
-                saveManagerRect.height - GetPix(17),
-                GetPix(20),
-                GetPix(20)
-            ), "□", resizeHandleStyle);
-
             if (createSaveFlag || loadSaveFlag || manageSaveFlag || deleteDirectoryFlag || deleteFileFlag)
             {
                 GUI.enabled = false;
             }
 
+            #region Titlebar
+
             if (GUI.Button(new Rect(
                 saveManagerRect.width - windowPadding - buttonSize,
                 windowPadding,
@@ -9007,6 +9001,15 @@ namespace CM3D2.MultipleMaids.Plugin
                 RefreshSaveManager();
             }
 
+            GUI.Label(new Rect(
+                windowPadding,
+                windowPadding,
+                saveManagerRect.width - windowPadding,
+                buttonSize
+            ), directoryList[selectedDirectory], labelStyle);
+
+            #endregion
+
             int saveGridOffset = GetPix(200);
             int saveGridX = windowPaddingY + saveGridOffset;
             int saveGridY = windowPaddingY + buttonSize;
@@ -9113,13 +9116,6 @@ namespace CM3D2.MultipleMaids.Plugin
 
             #region SAVE_GRID
 
-            GUI.Label(new Rect(
-                saveGridX,
-                windowPadding,
-                saveGridWidth,
-                GetPix(30)
-            ), directoryList[selectedDirectory], labelStyle);
-
             float scale = 0.55f;
             float imageWidth = 480f * scale;
             float imageHeight = 270f * scale;
@@ -9189,6 +9185,13 @@ namespace CM3D2.MultipleMaids.Plugin
             GUI.EndScrollView();
             #endregion
 
+            GUI.Label(new Rect(
+                saveManagerRect.width - GetPix(15),
+                saveManagerRect.height - GetPix(17),
+                GetPix(20),
+                GetPix(20)
+            ), "□", resizeHandleStyle);
+
             if (createSaveFlag)
             {
                 if (File.Exists(thum_file_path_))
@@ -9212,9 +9215,8 @@ namespace CM3D2.MultipleMaids.Plugin
         private void SaveManagerModal(int winID)
         {
             GUIStyle labelStyle = new GUIStyle("label");
-            labelStyle.fontSize = GetPix(13);
+            labelStyle.fontSize = GetPix(12);
             labelStyle.alignment = TextAnchor.MiddleCenter;
-            labelStyle.wordWrap = false;
             GUIStyle saveControlStyle = new GUIStyle("button");
             saveControlStyle.fontSize = GetPix(12);
             saveControlStyle.alignment = TextAnchor.MiddleCenter;
@@ -9263,7 +9265,7 @@ namespace CM3D2.MultipleMaids.Plugin
                 : saveScenes[selectedSave].info.Name;
 
             float labelY = previewY + previewHeight + windowPadding;
-            int labelHeight = GetPix(20);
+            int labelHeight = GetPix(30);
 
             GUI.Label(new Rect(
                 windowPadding,