|
@@ -110,7 +110,7 @@ public class Menu : MonoBehaviour
|
|
Menu.ProcScriptBin(maid, cd, mp, f_bTemp, f_SubProp);
|
|
Menu.ProcScriptBin(maid, cd, mp, f_bTemp, f_SubProp);
|
|
if (flag)
|
|
if (flag)
|
|
{
|
|
{
|
|
- Menu.ProcModScriptBin(maid, array, text2, false);
|
|
|
|
|
|
+ Menu.ProcModScriptBin(maid, array, text2, mp, false);
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -160,13 +160,15 @@ public class Menu : MonoBehaviour
|
|
string text9 = string.Empty;
|
|
string text9 = string.Empty;
|
|
string slotname = string.Empty;
|
|
string slotname = string.Empty;
|
|
int version = 100;
|
|
int version = 100;
|
|
|
|
+ bool flag2 = false;
|
|
|
|
+ bool flag3 = false;
|
|
for (;;)
|
|
for (;;)
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
for (;;)
|
|
for (;;)
|
|
{
|
|
{
|
|
- IL_102:
|
|
|
|
|
|
+ IL_108:
|
|
int num3 = (int)binaryReader.ReadByte();
|
|
int num3 = (int)binaryReader.ReadByte();
|
|
text8 = text7;
|
|
text8 = text7;
|
|
text7 = string.Empty;
|
|
text7 = string.Empty;
|
|
@@ -180,11 +182,11 @@ public class Menu : MonoBehaviour
|
|
}
|
|
}
|
|
if (!(text7 == string.Empty))
|
|
if (!(text7 == string.Empty))
|
|
{
|
|
{
|
|
- goto IL_169;
|
|
|
|
|
|
+ goto IL_16F;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- IL_169:
|
|
|
|
|
|
+ IL_16F:
|
|
string stringCom = UTY.GetStringCom(text7);
|
|
string stringCom = UTY.GetStringCom(text7);
|
|
string[] stringList = UTY.GetStringList(text7);
|
|
string[] stringList = UTY.GetStringList(text7);
|
|
if (stringCom == "end")
|
|
if (stringCom == "end")
|
|
@@ -193,38 +195,38 @@ public class Menu : MonoBehaviour
|
|
}
|
|
}
|
|
if (stringCom == "name")
|
|
if (stringCom == "name")
|
|
{
|
|
{
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "ver")
|
|
if (stringCom == "ver")
|
|
{
|
|
{
|
|
TBodySkin slot2 = body.GetSlot(stringList[1]);
|
|
TBodySkin slot2 = body.GetSlot(stringList[1]);
|
|
version = int.Parse(stringList[2]);
|
|
version = int.Parse(stringList[2]);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "アイテム")
|
|
if (stringCom == "アイテム")
|
|
{
|
|
{
|
|
Menu.SetMaidItemTemp(maid, stringList[1], f_bTemp);
|
|
Menu.SetMaidItemTemp(maid, stringList[1], f_bTemp);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "アイテム条件")
|
|
if (stringCom == "アイテム条件")
|
|
{
|
|
{
|
|
string slotname2 = stringList[1];
|
|
string slotname2 = stringList[1];
|
|
if (stringList[2] == "に何か")
|
|
if (stringList[2] == "に何か")
|
|
{
|
|
{
|
|
- bool flag2 = false;
|
|
|
|
|
|
+ bool flag4 = false;
|
|
TBodySkin slot3 = body.GetSlot(slotname2);
|
|
TBodySkin slot3 = body.GetSlot(slotname2);
|
|
if (stringList[3] == "有る")
|
|
if (stringList[3] == "有る")
|
|
{
|
|
{
|
|
if (slot3.obj != null)
|
|
if (slot3.obj != null)
|
|
{
|
|
{
|
|
- flag2 = true;
|
|
|
|
|
|
+ flag4 = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (stringList[3] == "無い")
|
|
else if (stringList[3] == "無い")
|
|
{
|
|
{
|
|
if (slot3.obj == null)
|
|
if (slot3.obj == null)
|
|
{
|
|
{
|
|
- flag2 = true;
|
|
|
|
|
|
+ flag4 = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -233,56 +235,56 @@ public class Menu : MonoBehaviour
|
|
}
|
|
}
|
|
if (stringList[4] == "なら")
|
|
if (stringList[4] == "なら")
|
|
{
|
|
{
|
|
- if (flag2)
|
|
|
|
|
|
+ if (flag4)
|
|
{
|
|
{
|
|
Menu.SetMaidItemTemp(maid, stringList[5], f_bTemp);
|
|
Menu.SetMaidItemTemp(maid, stringList[5], f_bTemp);
|
|
- goto IL_2C3;
|
|
|
|
|
|
+ goto IL_2C9;
|
|
}
|
|
}
|
|
- goto IL_2C3;
|
|
|
|
- IL_2C3:
|
|
|
|
- goto IL_2DA;
|
|
|
|
|
|
+ goto IL_2C9;
|
|
|
|
+ IL_2C9:
|
|
|
|
+ goto IL_2E0;
|
|
}
|
|
}
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
- goto IL_2DA;
|
|
|
|
- IL_2DA:
|
|
|
|
- goto IL_40E;
|
|
|
|
|
|
+ goto IL_2E0;
|
|
|
|
+ IL_2E0:
|
|
|
|
+ goto IL_414;
|
|
}
|
|
}
|
|
if (stringList[2] == "が")
|
|
if (stringList[2] == "が")
|
|
{
|
|
{
|
|
- bool flag3 = false;
|
|
|
|
|
|
+ bool flag5 = false;
|
|
TBodySkin slot4 = body.GetSlot(slotname2);
|
|
TBodySkin slot4 = body.GetSlot(slotname2);
|
|
if (slot4.m_strModelFileName == stringList[3])
|
|
if (slot4.m_strModelFileName == stringList[3])
|
|
{
|
|
{
|
|
- flag3 = true;
|
|
|
|
|
|
+ flag5 = true;
|
|
}
|
|
}
|
|
if (stringList[4] == "なら")
|
|
if (stringList[4] == "なら")
|
|
{
|
|
{
|
|
- if (flag3)
|
|
|
|
|
|
+ if (flag5)
|
|
{
|
|
{
|
|
Menu.SetMaidItemTemp(maid, stringList[5], f_bTemp);
|
|
Menu.SetMaidItemTemp(maid, stringList[5], f_bTemp);
|
|
- goto IL_33F;
|
|
|
|
|
|
+ goto IL_345;
|
|
}
|
|
}
|
|
- goto IL_33F;
|
|
|
|
- IL_33F:
|
|
|
|
- goto IL_356;
|
|
|
|
|
|
+ goto IL_345;
|
|
|
|
+ IL_345:
|
|
|
|
+ goto IL_35C;
|
|
}
|
|
}
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
- goto IL_356;
|
|
|
|
- IL_356:
|
|
|
|
- goto IL_40E;
|
|
|
|
|
|
+ goto IL_35C;
|
|
|
|
+ IL_35C:
|
|
|
|
+ goto IL_414;
|
|
}
|
|
}
|
|
if (!(stringList[2] == "のアイテムパラメータの"))
|
|
if (!(stringList[2] == "のアイテムパラメータの"))
|
|
{
|
|
{
|
|
- goto IL_40E;
|
|
|
|
|
|
+ goto IL_414;
|
|
}
|
|
}
|
|
- bool flag4 = false;
|
|
|
|
|
|
+ bool flag6 = false;
|
|
TBodySkin slot5 = body.GetSlot(slotname2);
|
|
TBodySkin slot5 = body.GetSlot(slotname2);
|
|
string param = slot5.GetParam(stringList[3].ToLower());
|
|
string param = slot5.GetParam(stringList[3].ToLower());
|
|
if (stringList[4] == "が")
|
|
if (stringList[4] == "が")
|
|
{
|
|
{
|
|
if (stringList[5].ToLower() == param)
|
|
if (stringList[5].ToLower() == param)
|
|
{
|
|
{
|
|
- flag4 = true;
|
|
|
|
|
|
+ flag6 = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -291,38 +293,38 @@ public class Menu : MonoBehaviour
|
|
}
|
|
}
|
|
if (stringList[6] == "なら")
|
|
if (stringList[6] == "なら")
|
|
{
|
|
{
|
|
- if (flag4)
|
|
|
|
|
|
+ if (flag6)
|
|
{
|
|
{
|
|
Menu.SetMaidItemTemp(maid, stringList[7], f_bTemp);
|
|
Menu.SetMaidItemTemp(maid, stringList[7], f_bTemp);
|
|
- goto IL_3F7;
|
|
|
|
|
|
+ goto IL_3FD;
|
|
}
|
|
}
|
|
- goto IL_3F7;
|
|
|
|
- IL_3F7:
|
|
|
|
- goto IL_40E;
|
|
|
|
|
|
+ goto IL_3FD;
|
|
|
|
+ IL_3FD:
|
|
|
|
+ goto IL_414;
|
|
}
|
|
}
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
NDebug.Assert("アイテム条件が不正です。「なら」が必要です。\n" + text7, false);
|
|
- goto IL_40E;
|
|
|
|
- IL_40E:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_414;
|
|
|
|
+ IL_414:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "if")
|
|
if (stringCom == "if")
|
|
{
|
|
{
|
|
if (stringList[1].IndexOf("maidprop[") != 0)
|
|
if (stringList[1].IndexOf("maidprop[") != 0)
|
|
{
|
|
{
|
|
- goto IL_58E;
|
|
|
|
|
|
+ goto IL_594;
|
|
}
|
|
}
|
|
string value = stringList[1].Substring(9, stringList[1].Length - 9 - 1);
|
|
string value = stringList[1].Substring(9, stringList[1].Length - 9 - 1);
|
|
MPN mpn = (MPN)Enum.Parse(typeof(MPN), value, false);
|
|
MPN mpn = (MPN)Enum.Parse(typeof(MPN), value, false);
|
|
MaidProp prop = maid.GetProp(mpn);
|
|
MaidProp prop = maid.GetProp(mpn);
|
|
if (!(stringList[2] == "==") || !(stringList[3] == "nothing") || prop.nFileNameRID != 0 || !(stringList[4] == "?") || stringList[5].IndexOf("setprop[") != 0)
|
|
if (!(stringList[2] == "==") || !(stringList[3] == "nothing") || prop.nFileNameRID != 0 || !(stringList[4] == "?") || stringList[5].IndexOf("setprop[") != 0)
|
|
{
|
|
{
|
|
- goto IL_58E;
|
|
|
|
|
|
+ goto IL_594;
|
|
}
|
|
}
|
|
string value2 = stringList[5].Substring(8, stringList[5].Length - 8 - 1);
|
|
string value2 = stringList[5].Substring(8, stringList[5].Length - 8 - 1);
|
|
MPN idx = (MPN)Enum.Parse(typeof(MPN), value2, false);
|
|
MPN idx = (MPN)Enum.Parse(typeof(MPN), value2, false);
|
|
if (!(stringList[6] == "="))
|
|
if (!(stringList[6] == "="))
|
|
{
|
|
{
|
|
- goto IL_58E;
|
|
|
|
|
|
+ goto IL_594;
|
|
}
|
|
}
|
|
string text10;
|
|
string text10;
|
|
if (stringList[7].IndexOf("getprop[") == 0)
|
|
if (stringList[7].IndexOf("getprop[") == 0)
|
|
@@ -339,11 +341,11 @@ public class Menu : MonoBehaviour
|
|
if (!string.IsNullOrEmpty(text10))
|
|
if (!string.IsNullOrEmpty(text10))
|
|
{
|
|
{
|
|
maid.SetProp(idx, text10, 0, false, false);
|
|
maid.SetProp(idx, text10, 0, false, false);
|
|
- goto IL_58E;
|
|
|
|
|
|
+ goto IL_594;
|
|
}
|
|
}
|
|
- goto IL_58E;
|
|
|
|
- IL_58E:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_594;
|
|
|
|
+ IL_594:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "アイテムパラメータ")
|
|
if (stringCom == "アイテムパラメータ")
|
|
{
|
|
{
|
|
@@ -358,12 +360,12 @@ public class Menu : MonoBehaviour
|
|
text12,
|
|
text12,
|
|
text13
|
|
text13
|
|
}));
|
|
}));
|
|
- goto IL_603;
|
|
|
|
|
|
+ goto IL_609;
|
|
}
|
|
}
|
|
Debug.LogError("アイテムパラメータ 命令の引数が不正です。SlotNameを明示的に指定しする必要があります。アイテムパラメータ <スロット名> <変数名> <値> の順です。" + text7);
|
|
Debug.LogError("アイテムパラメータ 命令の引数が不正です。SlotNameを明示的に指定しする必要があります。アイテムパラメータ <スロット名> <変数名> <値> の順です。" + text7);
|
|
- goto IL_603;
|
|
|
|
- IL_603:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_609;
|
|
|
|
+ IL_609:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "半脱ぎ" || stringCom == "リソース参照")
|
|
if (stringCom == "半脱ぎ" || stringCom == "リソース参照")
|
|
{
|
|
{
|
|
@@ -387,34 +389,34 @@ public class Menu : MonoBehaviour
|
|
if (sortedDictionary.TryGetValue(key, out empty))
|
|
if (sortedDictionary.TryGetValue(key, out empty))
|
|
{
|
|
{
|
|
sortedDictionary[key] = value4;
|
|
sortedDictionary[key] = value4;
|
|
- goto IL_6B5;
|
|
|
|
|
|
+ goto IL_6BB;
|
|
}
|
|
}
|
|
sortedDictionary.Add(key, value4);
|
|
sortedDictionary.Add(key, value4);
|
|
- goto IL_6B5;
|
|
|
|
- IL_6B5:
|
|
|
|
- goto IL_6DA;
|
|
|
|
|
|
+ goto IL_6BB;
|
|
|
|
+ IL_6BB:
|
|
|
|
+ goto IL_6E0;
|
|
}
|
|
}
|
|
sortedDictionary = new SortedDictionary<string, string>();
|
|
sortedDictionary = new SortedDictionary<string, string>();
|
|
sortedDictionary.Add(key, value4);
|
|
sortedDictionary.Add(key, value4);
|
|
Menu.m_dicResourceRef.Add(hashCode, sortedDictionary);
|
|
Menu.m_dicResourceRef.Add(hashCode, sortedDictionary);
|
|
- goto IL_6DA;
|
|
|
|
- IL_6DA:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_6E0;
|
|
|
|
+ IL_6E0:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "set")
|
|
if (stringCom == "set")
|
|
{
|
|
{
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "setname")
|
|
if (stringCom == "setname")
|
|
{
|
|
{
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "setslotitem")
|
|
if (stringCom == "setslotitem")
|
|
{
|
|
{
|
|
string tag = stringList[1];
|
|
string tag = stringList[1];
|
|
uint val = uint.Parse(stringList[2]);
|
|
uint val = uint.Parse(stringList[2]);
|
|
maid.SetProp(tag, (int)val, false);
|
|
maid.SetProp(tag, (int)val, false);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "additem")
|
|
if (stringCom == "additem")
|
|
{
|
|
{
|
|
@@ -455,23 +457,25 @@ public class Menu : MonoBehaviour
|
|
}
|
|
}
|
|
body.AddItem((MPN)Enum.Parse(typeof(MPN), text9, true), text14, stringList[1], attachSlot, attachName, f_bTemp, version);
|
|
body.AddItem((MPN)Enum.Parse(typeof(MPN), text9, true), text14, stringList[1], attachSlot, attachName, f_bTemp, version);
|
|
body.SetVisibleNodeSlot(text14, true, "_ALL_");
|
|
body.SetVisibleNodeSlot(text14, true, "_ALL_");
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "nofloory")
|
|
if (stringCom == "nofloory")
|
|
{
|
|
{
|
|
TBody.SlotID index = (TBody.SlotID)Enum.Parse(typeof(TBody.SlotID), stringList[1], true);
|
|
TBody.SlotID index = (TBody.SlotID)Enum.Parse(typeof(TBody.SlotID), stringList[1], true);
|
|
body.goSlot[(int)index].m_bHitFloorY = false;
|
|
body.goSlot[(int)index].m_bHitFloorY = false;
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "saveitem")
|
|
if (stringCom == "saveitem")
|
|
{
|
|
{
|
|
text5 = stringList[1];
|
|
text5 = stringList[1];
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "category")
|
|
if (stringCom == "category")
|
|
{
|
|
{
|
|
text9 = stringList[1];
|
|
text9 = stringList[1];
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ flag2 = (text9 == "skin");
|
|
|
|
+ flag3 = (text9 == "haircolor");
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "maskitem")
|
|
if (stringCom == "maskitem")
|
|
{
|
|
{
|
|
@@ -479,11 +483,11 @@ public class Menu : MonoBehaviour
|
|
{
|
|
{
|
|
string maskslot = stringList[1];
|
|
string maskslot = stringList[1];
|
|
body.AddMask(text9, maskslot);
|
|
body.AddMask(text9, maskslot);
|
|
- goto IL_90A;
|
|
|
|
|
|
+ goto IL_92C;
|
|
}
|
|
}
|
|
- goto IL_90A;
|
|
|
|
- IL_90A:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_92C;
|
|
|
|
+ IL_92C:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "delitem")
|
|
if (stringCom == "delitem")
|
|
{
|
|
{
|
|
@@ -493,27 +497,27 @@ public class Menu : MonoBehaviour
|
|
slotname3 = stringList[1];
|
|
slotname3 = stringList[1];
|
|
}
|
|
}
|
|
body.DelItem((MPN)Enum.Parse(typeof(MPN), text9, true), slotname3);
|
|
body.DelItem((MPN)Enum.Parse(typeof(MPN), text9, true), slotname3);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "node消去")
|
|
if (stringCom == "node消去")
|
|
{
|
|
{
|
|
body.SetVisibleNodeSlot(text9, false, stringList[1]);
|
|
body.SetVisibleNodeSlot(text9, false, stringList[1]);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "node表示")
|
|
if (stringCom == "node表示")
|
|
{
|
|
{
|
|
body.SetVisibleNodeSlot(text9, true, stringList[1]);
|
|
body.SetVisibleNodeSlot(text9, true, stringList[1]);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "パーツnode消去")
|
|
if (stringCom == "パーツnode消去")
|
|
{
|
|
{
|
|
body.SetVisibleNodeSlotParts(text9, stringList[1], false, stringList[2]);
|
|
body.SetVisibleNodeSlotParts(text9, stringList[1], false, stringList[2]);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "パーツnode表示")
|
|
if (stringCom == "パーツnode表示")
|
|
{
|
|
{
|
|
body.SetVisibleNodeSlotParts(text9, stringList[1], true, stringList[2]);
|
|
body.SetVisibleNodeSlotParts(text9, stringList[1], true, stringList[2]);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "color")
|
|
if (stringCom == "color")
|
|
{
|
|
{
|
|
@@ -522,62 +526,79 @@ public class Menu : MonoBehaviour
|
|
string prop_name = stringList[3];
|
|
string prop_name = stringList[3];
|
|
Color col = new Color(float.Parse(stringList[4]) / 255f, float.Parse(stringList[5]) / 255f, float.Parse(stringList[6]) / 255f, float.Parse(stringList[7]) / 255f);
|
|
Color col = new Color(float.Parse(stringList[4]) / 255f, float.Parse(stringList[5]) / 255f, float.Parse(stringList[6]) / 255f, float.Parse(stringList[7]) / 255f);
|
|
body.ChangeCol(name, matno, prop_name, col);
|
|
body.ChangeCol(name, matno, prop_name, col);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "mancolor")
|
|
if (stringCom == "mancolor")
|
|
{
|
|
{
|
|
Color manColor = new Color(float.Parse(stringList[1]) / 255f, float.Parse(stringList[2]) / 255f, float.Parse(stringList[3]) / 255f, 1f);
|
|
Color manColor = new Color(float.Parse(stringList[1]) / 255f, float.Parse(stringList[2]) / 255f, float.Parse(stringList[3]) / 255f, 1f);
|
|
maid.ManColor = manColor;
|
|
maid.ManColor = manColor;
|
|
maid.ManColorUpdate();
|
|
maid.ManColorUpdate();
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "tex" || stringCom == "テクスチャ変更")
|
|
if (stringCom == "tex" || stringCom == "テクスチャ変更")
|
|
{
|
|
{
|
|
string text15 = stringList[1];
|
|
string text15 = stringList[1];
|
|
- int matno2 = int.Parse(stringList[2]);
|
|
|
|
- string prop_name2 = stringList[3];
|
|
|
|
|
|
+ int num4 = int.Parse(stringList[2]);
|
|
|
|
+ string text16 = stringList[3];
|
|
string filename = stringList[4];
|
|
string filename = stringList[4];
|
|
MaidParts.PARTS_COLOR parts_COLOR = MaidParts.PARTS_COLOR.NONE;
|
|
MaidParts.PARTS_COLOR parts_COLOR = MaidParts.PARTS_COLOR.NONE;
|
|
if (stringList.Length == 6)
|
|
if (stringList.Length == 6)
|
|
{
|
|
{
|
|
- string text16 = stringList[5];
|
|
|
|
|
|
+ string text17 = stringList[5];
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- parts_COLOR = (MaidParts.PARTS_COLOR)Enum.Parse(typeof(MaidParts.PARTS_COLOR), text16.ToUpper());
|
|
|
|
|
|
+ parts_COLOR = (MaidParts.PARTS_COLOR)Enum.Parse(typeof(MaidParts.PARTS_COLOR), text17.ToUpper());
|
|
}
|
|
}
|
|
catch
|
|
catch
|
|
{
|
|
{
|
|
- NDebug.Assert("無限色IDがありません。" + text16, false);
|
|
|
|
|
|
+ NDebug.Assert("無限色IDがありません。" + text17, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (mp.idx == 61)
|
|
if (mp.idx == 61)
|
|
{
|
|
{
|
|
- matno2 = 7;
|
|
|
|
|
|
+ num4 = 7;
|
|
}
|
|
}
|
|
- body.ChangeTex(text15, matno2, prop_name2, filename, null, parts_COLOR);
|
|
|
|
|
|
+ if (flag2 && parts_COLOR == MaidParts.PARTS_COLOR.SKIN)
|
|
|
|
+ {
|
|
|
|
+ if (text15 == "body" && num4 == 0 && text16.ToLower() == "_maintex")
|
|
|
|
+ {
|
|
|
|
+ body.ChangeShader(text15, num4, "CM3D2_Toony_Lighted_Outline_Tex");
|
|
|
|
+ flag = true;
|
|
|
|
+ body.ChangeTex(text15, num4, "_OutlineTex", filename, null, MaidParts.PARTS_COLOR.SKIN_OUTLINE);
|
|
|
|
+ body.ChangeTex(text15, num4, "_OutlineToonRamp", "toonBlackA1.tex", null, MaidParts.PARTS_COLOR.SKIN_OUTLINE);
|
|
|
|
+ }
|
|
|
|
+ else if (text15 == "head" && num4 == 5 && text16.ToLower() == "_maintex")
|
|
|
|
+ {
|
|
|
|
+ body.ChangeShader(text15, num4, "CM3D2_Toony_Lighted_Outline_Tex");
|
|
|
|
+ flag = true;
|
|
|
|
+ body.ChangeTex(text15, num4, "_OutlineTex", filename, null, MaidParts.PARTS_COLOR.SKIN_OUTLINE);
|
|
|
|
+ body.ChangeTex(text15, num4, "_OutlineToonRamp", "toonBlackA1.tex", null, MaidParts.PARTS_COLOR.SKIN_OUTLINE);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ body.ChangeTex(text15, num4, text16, filename, null, parts_COLOR);
|
|
if (parts_COLOR != MaidParts.PARTS_COLOR.NONE)
|
|
if (parts_COLOR != MaidParts.PARTS_COLOR.NONE)
|
|
{
|
|
{
|
|
maid.Parts.SetPartsColor(parts_COLOR, maid.Parts.GetPartsColor(parts_COLOR));
|
|
maid.Parts.SetPartsColor(parts_COLOR, maid.Parts.GetPartsColor(parts_COLOR));
|
|
}
|
|
}
|
|
- if ((text9 == "skin" || text9 == "haircolor") && !flag)
|
|
|
|
|
|
+ if ((flag2 || flag3) && !flag)
|
|
{
|
|
{
|
|
body.RestoreShader(text15);
|
|
body.RestoreShader(text15);
|
|
- goto IL_BC7;
|
|
|
|
|
|
+ goto IL_CBC;
|
|
}
|
|
}
|
|
- goto IL_BC7;
|
|
|
|
- IL_BC7:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_CBC;
|
|
|
|
+ IL_CBC:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "prop")
|
|
if (stringCom == "prop")
|
|
{
|
|
{
|
|
string tag2 = stringList[1];
|
|
string tag2 = stringList[1];
|
|
string s = stringList[2];
|
|
string s = stringList[2];
|
|
maid.SetProp(tag2, int.Parse(s), false);
|
|
maid.SetProp(tag2, int.Parse(s), false);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "テクスチャ乗算")
|
|
if (stringCom == "テクスチャ乗算")
|
|
{
|
|
{
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "テクスチャ合成")
|
|
if (stringCom == "テクスチャ合成")
|
|
{
|
|
{
|
|
@@ -588,12 +609,12 @@ public class Menu : MonoBehaviour
|
|
if ((text9 == "accTatoo" || text9 == "hokuro") && !text.Contains("_del"))
|
|
if ((text9 == "accTatoo" || text9 == "hokuro") && !text.Contains("_del"))
|
|
{
|
|
{
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), true, 0, 0, 0f, 0f, true, f_SubProp, 1f, 1024);
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), true, 0, 0, 0f, 0f, true, f_SubProp, 1f, 1024);
|
|
- goto IL_D2A;
|
|
|
|
|
|
+ goto IL_E1F;
|
|
}
|
|
}
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), false, 0, 0, 0f, 0f, false, null, 1f, 1024);
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), false, 0, 0, 0f, 0f, false, null, 1f, 1024);
|
|
- goto IL_D2A;
|
|
|
|
- IL_D2A:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_E1F;
|
|
|
|
+ IL_E1F:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "テクスチャセット合成")
|
|
if (stringCom == "テクスチャセット合成")
|
|
{
|
|
{
|
|
@@ -602,7 +623,7 @@ public class Menu : MonoBehaviour
|
|
NDebug.Assert("テクスチャセット合成 の引数が不正です。" + stringList.Length, false);
|
|
NDebug.Assert("テクスチャセット合成 の引数が不正です。" + stringList.Length, false);
|
|
}
|
|
}
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), true, 0, 0, 0f, 0f, true, null, 1f, 1024);
|
|
body.MulTexSet(stringList[1], int.Parse(stringList[2]), stringList[3], int.Parse(stringList[4]), stringList[5], (GameUty.SystemMaterial)Enum.Parse(typeof(GameUty.SystemMaterial), stringList[6]), true, 0, 0, 0f, 0f, true, null, 1f, 1024);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "マテリアル変更")
|
|
if (stringCom == "マテリアル変更")
|
|
{
|
|
{
|
|
@@ -610,7 +631,7 @@ public class Menu : MonoBehaviour
|
|
int f_nMatNo = int.Parse(stringList[2]);
|
|
int f_nMatNo = int.Parse(stringList[2]);
|
|
string f_strFileName = stringList[3];
|
|
string f_strFileName = stringList[3];
|
|
body.ChangeMaterial(f_strSlotName, f_nMatNo, f_strFileName);
|
|
body.ChangeMaterial(f_strSlotName, f_nMatNo, f_strFileName);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "shader")
|
|
if (stringCom == "shader")
|
|
{
|
|
{
|
|
@@ -619,14 +640,14 @@ public class Menu : MonoBehaviour
|
|
string f_strShaderFileName = stringList[3];
|
|
string f_strShaderFileName = stringList[3];
|
|
body.ChangeShader(f_strSlotName2, f_nMatNo2, f_strShaderFileName);
|
|
body.ChangeShader(f_strSlotName2, f_nMatNo2, f_strShaderFileName);
|
|
flag = true;
|
|
flag = true;
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "アタッチポイントの設定")
|
|
if (stringCom == "アタッチポイントの設定")
|
|
{
|
|
{
|
|
if (stringList.Length < 5)
|
|
if (stringList.Length < 5)
|
|
{
|
|
{
|
|
Debug.LogError("アタッチポイントの設定引数の数が不正です。 " + text7 + " " + text3);
|
|
Debug.LogError("アタッチポイントの設定引数の数が不正です。 " + text7 + " " + text3);
|
|
- goto IL_EED;
|
|
|
|
|
|
+ goto IL_FE2;
|
|
}
|
|
}
|
|
Vector3 v = new Vector3(float.Parse(stringList[2]), float.Parse(stringList[3]), float.Parse(stringList[4]));
|
|
Vector3 v = new Vector3(float.Parse(stringList[2]), float.Parse(stringList[3]), float.Parse(stringList[4]));
|
|
Quaternion q = Quaternion.identity;
|
|
Quaternion q = Quaternion.identity;
|
|
@@ -639,27 +660,27 @@ public class Menu : MonoBehaviour
|
|
Debug.LogError("アタッチポイントの設定引数に角度指定がありません。 " + text7 + " " + text3);
|
|
Debug.LogError("アタッチポイントの設定引数に角度指定がありません。 " + text7 + " " + text3);
|
|
}
|
|
}
|
|
body.SetAttachPoint(slotname, stringList[1], v, q, f_bTemp);
|
|
body.SetAttachPoint(slotname, stringList[1], v, q, f_bTemp);
|
|
- goto IL_EED;
|
|
|
|
- IL_EED:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_FE2;
|
|
|
|
+ IL_FE2:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "blendset")
|
|
if (stringCom == "blendset")
|
|
{
|
|
{
|
|
string blendSetName = stringList[1];
|
|
string blendSetName = stringList[1];
|
|
- int num4 = (stringList.Length - 2) / 2;
|
|
|
|
|
|
+ int num5 = (stringList.Length - 2) / 2;
|
|
body.Face.morph.NewBlendSet(blendSetName);
|
|
body.Face.morph.NewBlendSet(blendSetName);
|
|
- for (int j = 0; j < num4; j++)
|
|
|
|
|
|
+ for (int j = 0; j < num5; j++)
|
|
{
|
|
{
|
|
string tag3 = stringList[2 + j * 2].ToLower();
|
|
string tag3 = stringList[2 + j * 2].ToLower();
|
|
float val2 = float.Parse(stringList[3 + j * 2]);
|
|
float val2 = float.Parse(stringList[3 + j * 2]);
|
|
body.Face.morph.SetValueBlendSet(blendSetName, tag3, val2);
|
|
body.Face.morph.SetValueBlendSet(blendSetName, tag3, val2);
|
|
}
|
|
}
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "paramset")
|
|
if (stringCom == "paramset")
|
|
{
|
|
{
|
|
body.Face.NewParamSet(text7);
|
|
body.Face.NewParamSet(text7);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "commenttype")
|
|
if (stringCom == "commenttype")
|
|
{
|
|
{
|
|
@@ -668,18 +689,18 @@ public class Menu : MonoBehaviour
|
|
maid.status.partsDic.Add(stringList[1], string.Empty);
|
|
maid.status.partsDic.Add(stringList[1], string.Empty);
|
|
}
|
|
}
|
|
maid.status.partsDic[stringList[1]] = stringList[2];
|
|
maid.status.partsDic[stringList[1]] = stringList[2];
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "useredit")
|
|
if (stringCom == "useredit")
|
|
{
|
|
{
|
|
if (stringList[2].ToLower() == "material")
|
|
if (stringList[2].ToLower() == "material")
|
|
{
|
|
{
|
|
body.SetMaterialProperty(text9, stringList[3], int.Parse(stringList[4]), stringList[5], stringList[6], stringList[7], false);
|
|
body.SetMaterialProperty(text9, stringList[3], int.Parse(stringList[4]), stringList[5], stringList[6], stringList[7], false);
|
|
- goto IL_1045;
|
|
|
|
|
|
+ goto IL_113A;
|
|
}
|
|
}
|
|
- goto IL_1045;
|
|
|
|
- IL_1045:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_113A;
|
|
|
|
+ IL_113A:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "bonemorph")
|
|
if (stringCom == "bonemorph")
|
|
{
|
|
{
|
|
@@ -690,43 +711,43 @@ public class Menu : MonoBehaviour
|
|
if (stringList.Length == 9)
|
|
if (stringList.Length == 9)
|
|
{
|
|
{
|
|
body.bonemorph.ChangeMorphPosValue(stringList[1], stringList[2], new Vector3(float.Parse(stringList[3]), float.Parse(stringList[4]), float.Parse(stringList[5])), new Vector3(float.Parse(stringList[6]), float.Parse(stringList[7]), float.Parse(stringList[8])));
|
|
body.bonemorph.ChangeMorphPosValue(stringList[1], stringList[2], new Vector3(float.Parse(stringList[3]), float.Parse(stringList[4]), float.Parse(stringList[5])), new Vector3(float.Parse(stringList[6]), float.Parse(stringList[7]), float.Parse(stringList[8])));
|
|
- goto IL_120B;
|
|
|
|
|
|
+ goto IL_1300;
|
|
}
|
|
}
|
|
- string text17 = stringList[1].ToLower();
|
|
|
|
|
|
+ string text18 = stringList[1].ToLower();
|
|
string strPropName = stringList[2];
|
|
string strPropName = stringList[2];
|
|
string f_strBoneName = stringList[3];
|
|
string f_strBoneName = stringList[3];
|
|
Vector3 f_fAddMin = new Vector3(float.Parse(stringList[4]), float.Parse(stringList[5]), float.Parse(stringList[6]));
|
|
Vector3 f_fAddMin = new Vector3(float.Parse(stringList[4]), float.Parse(stringList[5]), float.Parse(stringList[6]));
|
|
Vector3 f_fAddMax = new Vector3(float.Parse(stringList[7]), float.Parse(stringList[8]), float.Parse(stringList[9]));
|
|
Vector3 f_fAddMax = new Vector3(float.Parse(stringList[7]), float.Parse(stringList[8]), float.Parse(stringList[9]));
|
|
- if (text17 != null)
|
|
|
|
|
|
+ if (text18 != null)
|
|
{
|
|
{
|
|
- if (text17 == "pos")
|
|
|
|
|
|
+ if (text18 == "pos")
|
|
{
|
|
{
|
|
body.bonemorph.ChangeMorphPosValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
body.bonemorph.ChangeMorphPosValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
- goto IL_120B;
|
|
|
|
|
|
+ goto IL_1300;
|
|
}
|
|
}
|
|
- if (text17 == "rot")
|
|
|
|
|
|
+ if (text18 == "rot")
|
|
{
|
|
{
|
|
body.bonemorph.ChangeMorphRotatioValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
body.bonemorph.ChangeMorphRotatioValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
- goto IL_120B;
|
|
|
|
|
|
+ goto IL_1300;
|
|
}
|
|
}
|
|
- if (text17 == "scl")
|
|
|
|
|
|
+ if (text18 == "scl")
|
|
{
|
|
{
|
|
body.bonemorph.ChangeMorphSclValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
body.bonemorph.ChangeMorphSclValue(strPropName, f_strBoneName, f_fAddMin, f_fAddMax);
|
|
- goto IL_120B;
|
|
|
|
|
|
+ goto IL_1300;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Debug.LogError(string.Concat(new string[]
|
|
Debug.LogError(string.Concat(new string[]
|
|
{
|
|
{
|
|
"BoneMorpのタイプ指定が不正です[",
|
|
"BoneMorpのタイプ指定が不正です[",
|
|
- text17,
|
|
|
|
|
|
+ text18,
|
|
"]\n",
|
|
"]\n",
|
|
text7,
|
|
text7,
|
|
" ",
|
|
" ",
|
|
text3
|
|
text3
|
|
}));
|
|
}));
|
|
- goto IL_120B;
|
|
|
|
- IL_120B:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_1300;
|
|
|
|
+ IL_1300:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "length")
|
|
if (stringCom == "length")
|
|
{
|
|
{
|
|
@@ -735,7 +756,7 @@ public class Menu : MonoBehaviour
|
|
Debug.LogError("lengthの設定引数の数が不正です。 " + text7 + " " + text3);
|
|
Debug.LogError("lengthの設定引数の数が不正です。 " + text7 + " " + text3);
|
|
}
|
|
}
|
|
body.SetHairLengthDataList(stringList[1], stringList[2], stringList[3], stringList[4], new Vector3(float.Parse(stringList[5]), float.Parse(stringList[6]), float.Parse(stringList[7])), new Vector3(float.Parse(stringList[8]), float.Parse(stringList[9]), float.Parse(stringList[10])));
|
|
body.SetHairLengthDataList(stringList[1], stringList[2], stringList[3], stringList[4], new Vector3(float.Parse(stringList[5]), float.Parse(stringList[6]), float.Parse(stringList[7])), new Vector3(float.Parse(stringList[8]), float.Parse(stringList[9]), float.Parse(stringList[10])));
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "anime")
|
|
if (stringCom == "anime")
|
|
{
|
|
{
|
|
@@ -751,7 +772,7 @@ public class Menu : MonoBehaviour
|
|
f_bLoop = (stringList[3] == "loop");
|
|
f_bLoop = (stringList[3] == "loop");
|
|
}
|
|
}
|
|
body.ItemAnimationPlay(f_slot, stringList[2], f_bLoop);
|
|
body.ItemAnimationPlay(f_slot, stringList[2], f_bLoop);
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "param2")
|
|
if (stringCom == "param2")
|
|
{
|
|
{
|
|
@@ -759,23 +780,23 @@ public class Menu : MonoBehaviour
|
|
{
|
|
{
|
|
string slotname4 = stringList[1];
|
|
string slotname4 = stringList[1];
|
|
body.GetSlot(slotname4).SetParam2(stringList[2], stringList[3]);
|
|
body.GetSlot(slotname4).SetParam2(stringList[2], stringList[3]);
|
|
- goto IL_137E;
|
|
|
|
|
|
+ goto IL_1473;
|
|
}
|
|
}
|
|
Debug.LogError("param2の設定引数の数が不正です。 " + text7 + " " + text3);
|
|
Debug.LogError("param2の設定引数の数が不正です。 " + text7 + " " + text3);
|
|
- goto IL_137E;
|
|
|
|
- IL_137E:
|
|
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_1473;
|
|
|
|
+ IL_1473:
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
if (stringCom == "animematerial")
|
|
if (stringCom == "animematerial")
|
|
{
|
|
{
|
|
TBody.SlotID f_slot2 = (TBody.SlotID)Enum.Parse(typeof(TBody.SlotID), stringList[1], true);
|
|
TBody.SlotID f_slot2 = (TBody.SlotID)Enum.Parse(typeof(TBody.SlotID), stringList[1], true);
|
|
string s2 = stringList[2];
|
|
string s2 = stringList[2];
|
|
body.MaterialAnimatorAdd(f_slot2, int.Parse(s2));
|
|
body.MaterialAnimatorAdd(f_slot2, int.Parse(s2));
|
|
- goto IL_13C4;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
}
|
|
}
|
|
- goto IL_13C4;
|
|
|
|
- IL_13C4:
|
|
|
|
- goto IL_1447;
|
|
|
|
|
|
+ goto IL_14B9;
|
|
|
|
+ IL_14B9:
|
|
|
|
+ goto IL_153C;
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
@@ -793,10 +814,10 @@ public class Menu : MonoBehaviour
|
|
ex.StackTrace
|
|
ex.StackTrace
|
|
}));
|
|
}));
|
|
NDebug.Assert("メニューファイル処理中にエラーが発生しました。" + Path.GetFileName(text), true);
|
|
NDebug.Assert("メニューファイル処理中にエラーが発生しました。" + Path.GetFileName(text), true);
|
|
- goto IL_1447;
|
|
|
|
|
|
+ goto IL_153C;
|
|
}
|
|
}
|
|
- IL_1447:
|
|
|
|
- goto IL_102;
|
|
|
|
|
|
+ IL_153C:
|
|
|
|
+ goto IL_108;
|
|
}
|
|
}
|
|
list.Sort((Menu.LastParam a, Menu.LastParam b) => a.nOrder - a.nOrder);
|
|
list.Sort((Menu.LastParam a, Menu.LastParam b) => a.nOrder - a.nOrder);
|
|
for (int k = 0; k < list.Count; k++)
|
|
for (int k = 0; k < list.Count; k++)
|
|
@@ -886,7 +907,7 @@ public class Menu : MonoBehaviour
|
|
Directory.CreateDirectory(text);
|
|
Directory.CreateDirectory(text);
|
|
}
|
|
}
|
|
StreamWriter streamWriter = new StreamWriter(text + "\\" + text2 + ".txt", false, Encoding.UTF8);
|
|
StreamWriter streamWriter = new StreamWriter(text + "\\" + text2 + ".txt", false, Encoding.UTF8);
|
|
- streamWriter.WriteLine("出力バージョン\t" + 1240);
|
|
|
|
|
|
+ streamWriter.WriteLine("出力バージョン\t" + 1250);
|
|
streamWriter.WriteLine("基本アイテム\t" + filename.Replace(" ", ":"));
|
|
streamWriter.WriteLine("基本アイテム\t" + filename.Replace(" ", ":"));
|
|
try
|
|
try
|
|
{
|
|
{
|
|
@@ -1249,6 +1270,19 @@ public class Menu : MonoBehaviour
|
|
|
|
|
|
private static void ProcModScriptBin(Maid maid, byte[] cd, string filename, bool f_bTemp = false)
|
|
private static void ProcModScriptBin(Maid maid, byte[] cd, string filename, bool f_bTemp = false)
|
|
{
|
|
{
|
|
|
|
+ Menu.ProcModScriptBin(maid, cd, filename, null, f_bTemp);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private static void ProcModScriptBin(Maid maid, byte[] cd, string filename, MaidProp mp, bool f_bTemp = false)
|
|
|
|
+ {
|
|
|
|
+ if (mp != null && maid.body0 != null && (mp.idx == 61 || mp.idx == 64 || mp.idx == 65 || mp.idx == 66))
|
|
|
|
+ {
|
|
|
|
+ TBodySkin slot = maid.body0.GetSlot(1);
|
|
|
|
+ if (slot.PartsVersion < 110)
|
|
|
|
+ {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
BinaryReader binaryReader = new BinaryReader(new MemoryStream(cd), Encoding.UTF8);
|
|
BinaryReader binaryReader = new BinaryReader(new MemoryStream(cd), Encoding.UTF8);
|
|
string text = binaryReader.ReadString();
|
|
string text = binaryReader.ReadString();
|
|
NDebug.Assert(text == "CM3D2_MOD", "ProcModScriptBin 例外 : ヘッダーファイルが不正です。" + text);
|
|
NDebug.Assert(text == "CM3D2_MOD", "ProcModScriptBin 例外 : ヘッダーファイルが不正です。" + text);
|
|
@@ -1289,12 +1323,12 @@ public class Menu : MonoBehaviour
|
|
{
|
|
{
|
|
Menu.IMode mode = Menu.IMode.Non;
|
|
Menu.IMode mode = Menu.IMode.Non;
|
|
string slotname = string.Empty;
|
|
string slotname = string.Empty;
|
|
- int num3 = 0;
|
|
|
|
TBodySkin tbodySkin = null;
|
|
TBodySkin tbodySkin = null;
|
|
Material material = null;
|
|
Material material = null;
|
|
string text9;
|
|
string text9;
|
|
while ((text9 = stringReader.ReadLine()) != null)
|
|
while ((text9 = stringReader.ReadLine()) != null)
|
|
{
|
|
{
|
|
|
|
+ int num3 = 0;
|
|
string[] array = text9.Split(new char[]
|
|
string[] array = text9.Split(new char[]
|
|
{
|
|
{
|
|
'\t',
|
|
'\t',
|
|
@@ -1369,7 +1403,12 @@ public class Menu : MonoBehaviour
|
|
NDebug.Assert("無限色IDがありません。" + text10, false);
|
|
NDebug.Assert("無限色IDがありません。" + text10, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- maid.body0.ChangeTex(array[1], int.Parse(array[2]), array[3], array[4].ToLower(), dictionary, parts_COLOR);
|
|
|
|
|
|
+ num3 = int.Parse(array[2]);
|
|
|
|
+ if (mp != null && mp.idx == 61)
|
|
|
|
+ {
|
|
|
|
+ num3 = 7;
|
|
|
|
+ }
|
|
|
|
+ maid.body0.ChangeTex(array[1], num3, array[3], array[4].ToLower(), dictionary, parts_COLOR);
|
|
if (parts_COLOR != MaidParts.PARTS_COLOR.NONE)
|
|
if (parts_COLOR != MaidParts.PARTS_COLOR.NONE)
|
|
{
|
|
{
|
|
maid.Parts.SetPartsColor(parts_COLOR, maid.Parts.GetPartsColor(parts_COLOR));
|
|
maid.Parts.SetPartsColor(parts_COLOR, maid.Parts.GetPartsColor(parts_COLOR));
|