habeebweeb 4 anni fa
parent
commit
fd18a5775c

+ 1 - 0
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Controls/Slider.cs

@@ -72,6 +72,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
         {
             if (!Visible) return;
             GUIStyle sliderStyle = new GUIStyle(GUI.skin.horizontalSlider);
+            sliderStyle.margin.bottom = 0;
             if (hasLabel)
             {
                 GUILayout.BeginVertical(GUILayout.ExpandWidth(false));

+ 2 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Panes/FaceWindowPanes/MaidFaceSliderPane.cs

@@ -162,12 +162,13 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         public override void Draw()
         {
+            GUILayoutOption sliderWidth = MiscGUI.HalfSlider;
             for (int i = 0; i < faceKeys.Length; i += 2)
             {
                 GUILayout.BeginHorizontal();
                 for (int j = 0; j < 2; j++)
                 {
-                    Controls[i + j].Draw(GUILayout.Width(90));
+                    Controls[i + j].Draw(sliderWidth);
                     if (i + j == 12 || i + j == 23)
                     {
                         i--;

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Windows/MainWindow.cs

@@ -15,7 +15,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
         {
             get
             {
-                windowRect.width = 230f;
+                windowRect.width = 240f;
                 windowRect.height = Screen.height * 0.9f;
                 windowRect.x = Mathf.Clamp(windowRect.x, 0, Screen.width - windowRect.width);
                 windowRect.y = Mathf.Clamp(windowRect.y, -windowRect.height + 30, Screen.height - 50);

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MPSLight.cs

@@ -126,7 +126,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             this.IsMain = isMain;
 
             GameObject gameobject = lightGo ?? new GameObject();
-            this.light = gameobject.GetComponent<Light>() ?? gameobject.AddComponent<Light>();
+            this.light = gameobject.GetOrAddComponent<Light>();
 
             float spotAngle = CurrentLightProperty.SpotAngle;
             this.light.transform.position = LightProperty.DefaultPosition;