|
@@ -104,7 +104,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
parCombo.height = rectWin.height;
|
|
parCombo.height = rectWin.height;
|
|
lightCombo.height = rectWin.height;
|
|
lightCombo.height = rectWin.height;
|
|
GameMain.Instance.MainCamera.SetControl(true);
|
|
GameMain.Instance.MainCamera.SetControl(true);
|
|
- if (!sceneFlg && !faceFlg && (!poseFlg && !kankyoFlg) && (!kankyo2Flg && !isF6) && okFlg)
|
|
|
|
|
|
+ if (!sceneFlg && !faceFlg && !poseFlg && !kankyoFlg && !kankyo2Flg && !isF6 && okFlg)
|
|
{
|
|
{
|
|
if (Input.GetAxis("Mouse ScrollWheel") != 0.0)
|
|
if (Input.GetAxis("Mouse ScrollWheel") != 0.0)
|
|
{
|
|
{
|
|
@@ -578,7 +578,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (!isF6)
|
|
if (!isF6)
|
|
{
|
|
{
|
|
bool flag = true;
|
|
bool flag = true;
|
|
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
|
|
|
|
|
|
+ if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
|
|
{
|
|
{
|
|
flag = false;
|
|
flag = false;
|
|
}
|
|
}
|
|
@@ -661,7 +661,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
kankyo2Flg = true;
|
|
kankyo2Flg = true;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!(bool)line1)
|
|
|
|
|
|
+ if (!line1)
|
|
{
|
|
{
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
@@ -678,7 +678,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
|
|
|
|
if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
|
|
if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
|
|
- || (itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton))
|
|
|
|
|
|
+ || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
|
|
{
|
|
{
|
|
GUI.enabled = false;
|
|
GUI.enabled = false;
|
|
}
|
|
}
|
|
@@ -1169,8 +1169,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
|
|
|
|
IOrderedEnumerable<SortItem> orderedEnumerable = sortList
|
|
IOrderedEnumerable<SortItem> orderedEnumerable = sortList
|
|
- .OrderBy<SortItem, int>(p => p.order)
|
|
|
|
- .ThenBy<SortItem, string>(p => p.name);
|
|
|
|
|
|
+ .OrderBy(p => p.order)
|
|
|
|
+ .ThenBy(p => p.name);
|
|
List<SortItem> sortItemList = new List<SortItem>();
|
|
List<SortItem> sortItemList = new List<SortItem>();
|
|
string str4 = "";
|
|
string str4 = "";
|
|
foreach (SortItem sortItem in orderedEnumerable)
|
|
foreach (SortItem sortItem in orderedEnumerable)
|
|
@@ -1222,22 +1222,22 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
{
|
|
{
|
|
listStyle2.normal.textColor = Color.white;
|
|
listStyle2.normal.textColor = Color.white;
|
|
listStyle2.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
|
|
listStyle2.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
|
|
- listStyle2.onHover.background = (listStyle2.hover.background = new Texture2D(2, 2));
|
|
|
|
|
|
+ listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
|
|
RectOffset padding = listStyle2.padding;
|
|
RectOffset padding = listStyle2.padding;
|
|
RectOffset padding2 = listStyle2.padding;
|
|
RectOffset padding2 = listStyle2.padding;
|
|
RectOffset padding3 = listStyle2.padding;
|
|
RectOffset padding3 = listStyle2.padding;
|
|
int num = listStyle2.padding.bottom = GetPix(0);
|
|
int num = listStyle2.padding.bottom = GetPix(0);
|
|
- num = (padding3.top = num);
|
|
|
|
- num = (padding2.right = num);
|
|
|
|
|
|
+ num = padding3.top = num;
|
|
|
|
+ num = padding2.right = num;
|
|
padding.left = num;
|
|
padding.left = num;
|
|
listStyle2.fontSize = GetPix(11);
|
|
listStyle2.fontSize = GetPix(11);
|
|
listStyle3.normal.textColor = Color.white;
|
|
listStyle3.normal.textColor = Color.white;
|
|
listStyle3.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
|
|
listStyle3.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
|
|
- listStyle3.onHover.background = (listStyle3.hover.background = new Texture2D(2, 2));
|
|
|
|
|
|
+ listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
|
|
RectOffset padding4 = listStyle3.padding;
|
|
RectOffset padding4 = listStyle3.padding;
|
|
RectOffset padding5 = listStyle3.padding;
|
|
RectOffset padding5 = listStyle3.padding;
|
|
- num = (listStyle3.padding.top = GetPix(0));
|
|
|
|
- num = (padding5.right = num);
|
|
|
|
|
|
+ num = listStyle3.padding.top = GetPix(0);
|
|
|
|
+ num = padding5.right = num;
|
|
padding4.left = num;
|
|
padding4.left = num;
|
|
listStyle3.padding.bottom = GetPix(0);
|
|
listStyle3.padding.bottom = GetPix(0);
|
|
listStyle3.fontSize = GetPix(12);
|
|
listStyle3.fontSize = GetPix(12);
|
|
@@ -1447,12 +1447,11 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
kankyoFlg = false;
|
|
kankyoFlg = false;
|
|
kankyo2Flg = false;
|
|
kankyo2Flg = false;
|
|
bGui = true;
|
|
bGui = true;
|
|
- int i = 0;
|
|
|
|
- while (i < 10)
|
|
|
|
|
|
+ for (int i = 0; i < 10; i++)
|
|
{
|
|
{
|
|
date[i] = "未保存";
|
|
date[i] = "未保存";
|
|
ninzu[i] = "";
|
|
ninzu[i] = "";
|
|
- IniKey iniKey = base.Preferences["scene"]["s" + (page * 10 + i + 1)];
|
|
|
|
|
|
+ IniKey iniKey = Preferences["scene"]["s" + (page * 10 + i + 1)];
|
|
if (iniKey.Value != null && iniKey.Value.ToString() != "")
|
|
if (iniKey.Value != null && iniKey.Value.ToString() != "")
|
|
{
|
|
{
|
|
string[] array = iniKey.Value.Split(new char[] { '_' });
|
|
string[] array = iniKey.Value.Split(new char[] { '_' });
|
|
@@ -1463,11 +1462,6 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
ninzu[i] = array2[1] + "人";
|
|
ninzu[i] = array2[1] + "人";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- IL_4FA1:
|
|
|
|
- i++;
|
|
|
|
- continue;
|
|
|
|
- goto IL_4FA1;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2260,16 +2254,16 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
isKamiyure = flag3;
|
|
isKamiyure = flag3;
|
|
if (isKamiyure)
|
|
if (isKamiyure)
|
|
{
|
|
{
|
|
- base.Preferences["config"]["hair_setting"].Value = "true";
|
|
|
|
- base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
|
|
|
|
- base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
|
|
|
|
- base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["hair_setting"].Value = "true";
|
|
|
|
+ Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
|
|
|
|
+ Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
|
|
|
|
+ Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- base.Preferences["config"]["hair_setting"].Value = "false";
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["hair_setting"].Value = "false";
|
|
|
|
+ SaveConfig();
|
|
for (int j = 0; j < maidCnt; j++)
|
|
for (int j = 0; j < maidCnt; j++)
|
|
{
|
|
{
|
|
for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
|
|
for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
|
|
@@ -2316,8 +2310,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (kamiyure4 != num4)
|
|
if (kamiyure4 != num4)
|
|
{
|
|
{
|
|
kamiyure4 = num4;
|
|
kamiyure4 = num4;
|
|
- base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
|
|
GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
|
|
@@ -2333,8 +2327,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (kamiyure2 != num5)
|
|
if (kamiyure2 != num5)
|
|
{
|
|
{
|
|
kamiyure2 = num5;
|
|
kamiyure2 = num5;
|
|
- base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
|
|
GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
|
|
@@ -2350,8 +2344,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (kamiyure3 != num6)
|
|
if (kamiyure3 != num6)
|
|
{
|
|
{
|
|
kamiyure3 = num6;
|
|
kamiyure3 = num6;
|
|
- base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.enabled = true;
|
|
GUI.enabled = true;
|
|
@@ -2380,16 +2374,16 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
isSkirtyure = flag4;
|
|
isSkirtyure = flag4;
|
|
if (isSkirtyure)
|
|
if (isSkirtyure)
|
|
{
|
|
{
|
|
- base.Preferences["config"]["skirt_setting"].Value = "true";
|
|
|
|
- base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
|
|
|
|
- base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
|
|
|
|
- base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["skirt_setting"].Value = "true";
|
|
|
|
+ Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
|
|
|
|
+ Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
|
|
|
|
+ Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- base.Preferences["config"]["skirt_setting"].Value = "false";
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["skirt_setting"].Value = "false";
|
|
|
|
+ SaveConfig();
|
|
for (int j = 0; j < maidCnt; j++)
|
|
for (int j = 0; j < maidCnt; j++)
|
|
{
|
|
{
|
|
for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
|
|
for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
|
|
@@ -2429,8 +2423,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (skirtyure4 != num4)
|
|
if (skirtyure4 != num4)
|
|
{
|
|
{
|
|
skirtyure4 = num4;
|
|
skirtyure4 = num4;
|
|
- base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
|
|
GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
|
|
@@ -2446,8 +2440,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (skirtyure2 != num5)
|
|
if (skirtyure2 != num5)
|
|
{
|
|
{
|
|
skirtyure2 = num5;
|
|
skirtyure2 = num5;
|
|
- base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
|
|
GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
|
|
@@ -2463,8 +2457,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (skirtyure3 != num6)
|
|
if (skirtyure3 != num6)
|
|
{
|
|
{
|
|
skirtyure3 = num6;
|
|
skirtyure3 = num6;
|
|
- base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
|
|
|
|
- base.SaveConfig();
|
|
|
|
|
|
+ Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
|
|
|
|
+ SaveConfig();
|
|
}
|
|
}
|
|
|
|
|
|
GUI.enabled = true;
|
|
GUI.enabled = true;
|
|
@@ -2676,7 +2670,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
|
|
gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
|
|
if (gameObject2 != null)
|
|
if (gameObject2 != null)
|
|
{
|
|
{
|
|
- gameObject2 = Instantiate<GameObject>(gameObject2);
|
|
|
|
|
|
+ gameObject2 = Instantiate(gameObject2);
|
|
MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
|
|
MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
|
|
for (int k = 0; k < componentsInChildren.Length; k++)
|
|
for (int k = 0; k < componentsInChildren.Length; k++)
|
|
{
|
|
{
|
|
@@ -2698,7 +2692,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
|
|
else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
|
|
{
|
|
{
|
|
Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
|
|
Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
|
|
- gameObject2 = (Instantiate(@object) as GameObject);
|
|
|
|
|
|
+ gameObject2 = Instantiate(@object) as GameObject;
|
|
doguBObject.Add(gameObject2);
|
|
doguBObject.Add(gameObject2);
|
|
}
|
|
}
|
|
else if (parArray[parIndex].StartsWith("mirror"))
|
|
else if (parArray[parIndex].StartsWith("mirror"))
|
|
@@ -2929,7 +2923,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- gameObject2 = (Instantiate(tmpObj) as GameObject);
|
|
|
|
|
|
+ gameObject2 = Instantiate(tmpObj) as GameObject;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (!string.IsNullOrEmpty(objResult.create_asset_bundle_name))
|
|
else if (!string.IsNullOrEmpty(objResult.create_asset_bundle_name))
|
|
@@ -2941,7 +2935,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- gameObject2 = Instantiate<GameObject>(gameObject3);
|
|
|
|
|
|
+ gameObject2 = Instantiate(gameObject3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (!string.IsNullOrEmpty(objResult.direct_file))
|
|
else if (!string.IsNullOrEmpty(objResult.direct_file))
|
|
@@ -2973,7 +2967,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
@object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
|
|
@object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
|
|
}
|
|
}
|
|
|
|
|
|
- gameObject2 = (Instantiate(@object) as GameObject);
|
|
|
|
|
|
+ gameObject2 = Instantiate(@object) as GameObject;
|
|
doguBObject.Add(gameObject2);
|
|
doguBObject.Add(gameObject2);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -3786,7 +3780,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (!isF6)
|
|
if (!isF6)
|
|
{
|
|
{
|
|
bool flag = true;
|
|
bool flag = true;
|
|
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
|
|
|
|
|
|
+ if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
|
|
{
|
|
{
|
|
flag = false;
|
|
flag = false;
|
|
}
|
|
}
|
|
@@ -3857,7 +3851,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
kankyo2Flg = false;
|
|
kankyo2Flg = false;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!(bool)line1)
|
|
|
|
|
|
+ if (!line1)
|
|
{
|
|
{
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
@@ -3920,7 +3914,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if ((bool)maidArray[this.selectMaidIndex].GetThumIcon())
|
|
|
|
|
|
+ if (maidArray[this.selectMaidIndex].GetThumIcon())
|
|
{
|
|
{
|
|
GUI.DrawTexture(new Rect(GetPix(30),
|
|
GUI.DrawTexture(new Rect(GetPix(30),
|
|
GetPix(25),
|
|
GetPix(25),
|
|
@@ -4017,7 +4011,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
poseCombo.selectedItemIndex = poseGroupIndex <= 0
|
|
poseCombo.selectedItemIndex = poseGroupIndex <= 0
|
|
? poseIndex[selectMaidIndex]
|
|
? poseIndex[selectMaidIndex]
|
|
: poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
|
|
: poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
|
|
- if (!isLock[selectMaidIndex] && (maid && maid.Visible))
|
|
|
|
|
|
+ if (!isLock[selectMaidIndex] && maid && maid.Visible)
|
|
{
|
|
{
|
|
string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
isStop[selectMaidIndex] = false;
|
|
isStop[selectMaidIndex] = false;
|
|
@@ -4072,7 +4066,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -4119,7 +4113,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
poseCombo.selectedItemIndex = poseGroupIndex <= 0
|
|
poseCombo.selectedItemIndex = poseGroupIndex <= 0
|
|
? poseIndex[selectMaidIndex]
|
|
? poseIndex[selectMaidIndex]
|
|
: poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
|
|
: poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
|
|
- if (!isLock[selectMaidIndex] && (maid && maid.Visible))
|
|
|
|
|
|
+ if (!isLock[selectMaidIndex] && maid && maid.Visible)
|
|
{
|
|
{
|
|
string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
isStop[selectMaidIndex] = false;
|
|
isStop[selectMaidIndex] = false;
|
|
@@ -4174,7 +4168,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -4965,7 +4959,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -5380,7 +5374,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -5541,7 +5535,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -5641,7 +5635,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
isCombo2 = false;
|
|
isCombo2 = false;
|
|
isPoseInit = true;
|
|
isPoseInit = true;
|
|
poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
|
|
poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
|
|
- if (!isLock[selectMaidIndex] && (maid && maid.Visible))
|
|
|
|
|
|
+ if (!isLock[selectMaidIndex] && maid && maid.Visible)
|
|
{
|
|
{
|
|
string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
isStop[selectMaidIndex] = false;
|
|
isStop[selectMaidIndex] = false;
|
|
@@ -5696,7 +5690,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -5792,7 +5786,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
poseIndex[selectMaidIndex] = 0;
|
|
poseIndex[selectMaidIndex] = 0;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!isLock[selectMaidIndex] && (maid && maid.Visible))
|
|
|
|
|
|
+ if (!isLock[selectMaidIndex] && maid && maid.Visible)
|
|
{
|
|
{
|
|
string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
|
|
isStop[selectMaidIndex] = false;
|
|
isStop[selectMaidIndex] = false;
|
|
@@ -5847,7 +5841,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (!(bool)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
|
|
|
|
+ if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
|
|
{
|
|
{
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
|
|
}
|
|
}
|
|
@@ -6108,7 +6102,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
if (!isF6)
|
|
if (!isF6)
|
|
{
|
|
{
|
|
bool flag = true;
|
|
bool flag = true;
|
|
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
|
|
|
|
|
|
+ if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
|
|
{
|
|
{
|
|
flag = false;
|
|
flag = false;
|
|
}
|
|
}
|
|
@@ -6179,7 +6173,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
kankyo2Flg = false;
|
|
kankyo2Flg = false;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!(bool)line1)
|
|
|
|
|
|
+ if (!line1)
|
|
{
|
|
{
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
@@ -6240,7 +6234,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if ((bool)maidArray[this.selectMaidIndex].GetThumIcon())
|
|
|
|
|
|
+ if (maidArray[this.selectMaidIndex].GetThumIcon())
|
|
{
|
|
{
|
|
GUI.DrawTexture(new Rect(GetPix(30),
|
|
GUI.DrawTexture(new Rect(GetPix(30),
|
|
GetPix(25),
|
|
GetPix(25),
|
|
@@ -7662,7 +7656,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
GUI.enabled = !faceCombo.isClickedComboButton;
|
|
GUI.enabled = !faceCombo.isClickedComboButton;
|
|
yotogiFlg = false;
|
|
yotogiFlg = false;
|
|
if (sceneLevel != 14
|
|
if (sceneLevel != 14
|
|
- || !(bool)
|
|
|
|
|
|
+ || !
|
|
|
|
|
|
GameObject
|
|
GameObject
|
|
.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")
|
|
.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")
|
|
@@ -7706,7 +7700,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
}
|
|
}
|
|
|
|
|
|
bool flag1 = true;
|
|
bool flag1 = true;
|
|
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
|
|
|
|
|
|
+ if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
|
|
{
|
|
{
|
|
flag1 = false;
|
|
flag1 = false;
|
|
}
|
|
}
|
|
@@ -7774,7 +7768,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
kankyo2Flg = false;
|
|
kankyo2Flg = false;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!(bool)line1)
|
|
|
|
|
|
+ if (!line1)
|
|
{
|
|
{
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
|
|
@@ -7824,7 +7818,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
copyIndex = 0;
|
|
copyIndex = 0;
|
|
for (int index = 0; index < maxMaidCnt; ++index)
|
|
for (int index = 0; index < maxMaidCnt; ++index)
|
|
{
|
|
{
|
|
- if (!isLock[index] && (maidArray[index] && maidArray[index].Visible))
|
|
|
|
|
|
+ if (!isLock[index] && maidArray[index] && maidArray[index].Visible)
|
|
{
|
|
{
|
|
maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
|
|
maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
|
|
maidArray[index].SetAutoTwistAll(true);
|
|
maidArray[index].SetAutoTwistAll(true);
|
|
@@ -8014,7 +8008,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
Texture2D.whiteTexture);
|
|
Texture2D.whiteTexture);
|
|
}
|
|
}
|
|
|
|
|
|
- if ((bool)characterMgr.GetStockMaid(nStockNo).GetThumIcon())
|
|
|
|
|
|
+ if (characterMgr.GetStockMaid(nStockNo).GetThumIcon())
|
|
{
|
|
{
|
|
GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), characterMgr.GetStockMaid(nStockNo).GetThumIcon());
|
|
GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), characterMgr.GetStockMaid(nStockNo).GetThumIcon());
|
|
}
|
|
}
|
|
@@ -9093,7 +9087,7 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
|
|
|
for (int index = 0; index < maxMaidCnt; ++index)
|
|
for (int index = 0; index < maxMaidCnt; ++index)
|
|
{
|
|
{
|
|
- if (!isLock[index] && (maidArray[index] != null && maidArray[index].Visible))
|
|
|
|
|
|
+ if (!isLock[index] && maidArray[index] != null && maidArray[index].Visible)
|
|
{
|
|
{
|
|
maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
|
|
maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
|
|
maidArray[index].SetAutoTwistAll(true);
|
|
maidArray[index].SetAutoTwistAll(true);
|