Browse Source

Set initial bg to "Theater" in Init instead

Initial BG wasn't set properly in maid edit mode.
habeebweeb 4 years ago
parent
commit
09e155d250
1 changed files with 10 additions and 8 deletions
  1. 10 8
      MultipleMaids/CM3D2/MultipleMaids/Plugin/MultipleMaids.Init.cs

+ 10 - 8
MultipleMaids/CM3D2/MultipleMaids/Plugin/MultipleMaids.Init.cs

@@ -92,8 +92,9 @@ namespace CM3D2.MultipleMaids.Plugin
             isDance = false;
             isDanceChu = false;
             isSavePose = false;
-            bgIndex = 0;
-            bgIndexB = 0;
+            // bgIndex = 0;
+            // bgIndexB = 0;
+            bgIndex = bgCombo2.selectedItemIndex = bgCombo.selectedItemIndex = Array.FindIndex(bgArray, bg => bg == "Theater");
             bg.localScale = new Vector3(1f, 1f, 1f);
             softG = new Vector3(0.0f, -3f / 1000f, 0.0f);
             softG2 = new Vector3(0.0f, -0.005f, 0.0f);
@@ -439,9 +440,9 @@ namespace CM3D2.MultipleMaids.Plugin
             lightComboList[0] = new GUIContent("メイン");
             lightCombo.selectedItemIndex = 0;
             selectLightIndex = 0;
-            bgCombo.selectedItemIndex = 0;
+            // bgCombo.selectedItemIndex = 0;
             kankyoCombo.selectedItemIndex = 0;
-            bgCombo2.selectedItemIndex = 0;
+            // bgCombo2.selectedItemIndex = 0;
             itemCombo2.selectedItemIndex = 0;
             slotCombo.selectedItemIndex = 0;
             sortList.Clear();
@@ -599,8 +600,8 @@ namespace CM3D2.MultipleMaids.Plugin
             isDance = false;
             isDanceChu = false;
             isSavePose = false;
-            bgIndex = 0;
-            bgIndexB = 0;
+            // bgIndex = 0;
+            // bgIndexB = 0;
             bg.localScale = new Vector3(1f, 1f, 1f);
             softG = new Vector3(0.0f, -3f / 1000f, 0.0f);
             softG2 = new Vector3(0.0f, -0.005f, 0.0f);
@@ -960,9 +961,9 @@ namespace CM3D2.MultipleMaids.Plugin
             lightComboList[0] = new GUIContent("メイン");
             lightCombo.selectedItemIndex = 0;
             selectLightIndex = 0;
-            bgCombo.selectedItemIndex = 0;
+            // bgCombo.selectedItemIndex = 0;
             kankyoCombo.selectedItemIndex = 0;
-            bgCombo2.selectedItemIndex = 0;
+            // bgCombo2.selectedItemIndex = 0;
             itemCombo2.selectedItemIndex = 0;
             slotCombo.selectedItemIndex = 0;
             sortList.Clear();
@@ -1508,6 +1509,7 @@ namespace CM3D2.MultipleMaids.Plugin
             }
 
             bgArray = stringList8.ToArray();
+            bgIndex = bgCombo2.selectedItemIndex = bgCombo.selectedItemIndex = Array.FindIndex(bgArray, bg => bg == "Theater");
             string[] strArray8 = new string[3] { "dokidokifallinlove_short_inst", "dokidokifallinlove_short", "entrancetoyou_short" };
             string[] strArray9 = new string[1] { "scarlet leap_short" };
             string[] strArray11 = new string[1] { "RhythmixToYou" };