Browse Source

Match MM save/load button layout

habeebweeb 4 năm trước cách đây
mục cha
commit
9e92c36014

+ 6 - 6
MultipleMaids/CM3D2/MultipleMaids/Plugin/MultipleMaids.Gui.cs

@@ -9177,7 +9177,7 @@ namespace CM3D2.MultipleMaids.Plugin
             saveImageStyle.alignment = TextAnchor.MiddleCenter;
             saveImageStyle.padding = new RectOffset(0, 0, 0, 0);
             GUIStyle saveControlStyle = new GUIStyle("button");
-            saveControlStyle.fontSize = GetPix(18);
+            saveControlStyle.fontSize = GetPix(12);
             saveControlStyle.alignment = TextAnchor.MiddleCenter;
 
             // Window variables
@@ -9203,7 +9203,7 @@ namespace CM3D2.MultipleMaids.Plugin
             if (GUI.Button(new Rect(
                 windowPaddingY + GetPix(25),
                 windowPadding,
-                GetPix(85),
+                GetPix(65),
                 GetPix(25)
             ), "Refresh", saveControlStyle))
             {
@@ -9323,8 +9323,8 @@ namespace CM3D2.MultipleMaids.Plugin
                         previewHeight
                     ), previewImage);
 
-                    int saveControlWidth = GetPix(110);
-                    int saveControlHeight = GetPix(40);
+                    int saveControlWidth = GetPix(70);
+                    int saveControlHeight = GetPix(30);
 
                     float saveControlX = previewX + (previewWidth / 2) - (saveControlWidth / 2);
                     float saveControlY = saveManagerY + previewHeight + windowPaddingY;
@@ -9332,7 +9332,7 @@ namespace CM3D2.MultipleMaids.Plugin
                     int saveControlSpacing = GetPix(90);
 
                     if (GUI.Button(new Rect(
-                                saveControlX + saveControlSpacing
+                                saveControlX - saveControlSpacing
                                 , saveControlY
                                 , saveControlWidth
                                 , saveControlHeight)
@@ -9346,7 +9346,7 @@ namespace CM3D2.MultipleMaids.Plugin
                     }
 
                     if (GUI.Button(new Rect(
-                        saveControlX - saveControlSpacing
+                        saveControlX + saveControlSpacing
                         , saveControlY
                         , saveControlWidth
                         , saveControlHeight)