|
@@ -489,16 +489,6 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
bgCombo2List[index] = bgUiNames.TryGetValue(bgArray[index], out string name)
|
|
bgCombo2List[index] = bgUiNames.TryGetValue(bgArray[index], out string name)
|
|
? new GUIContent(name)
|
|
? new GUIContent(name)
|
|
: new GUIContent(bgArray[index]);
|
|
: new GUIContent(bgArray[index]);
|
|
-
|
|
|
|
- Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
|
|
|
|
- if (saveDataDic != null)
|
|
|
|
- {
|
|
|
|
- foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
|
|
|
|
- {
|
|
|
|
- if (bgArray[index] == keyValuePair.Key)
|
|
|
|
- bgCombo2List[index] = new GUIContent(keyValuePair.Value);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
slotCombo.selectedItemIndex = 0;
|
|
slotCombo.selectedItemIndex = 0;
|
|
@@ -1169,15 +1159,10 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
|
|
|
|
bgCombo.selectedItemIndex = bgIndex;
|
|
bgCombo.selectedItemIndex = bgIndex;
|
|
bgComboList = new GUIContent[bgArray.Length];
|
|
bgComboList = new GUIContent[bgArray.Length];
|
|
- Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
|
|
|
|
for (int j = 0; j < bgArray.Length; j++)
|
|
for (int j = 0; j < bgArray.Length; j++)
|
|
{
|
|
{
|
|
- // TODO: Merge dicts at some point?
|
|
|
|
- if (bgUiNames.TryGetValue(bgArray[j], out string name))
|
|
|
|
- bgComboList[j] = new GUIContent(name);
|
|
|
|
- else if(saveDataDic.TryGetValue(bgArray[j], out name))
|
|
|
|
- bgComboList[j] = new GUIContent(name);
|
|
|
|
- else if(bgDict.TryGetValue(bgArray[j], out name))
|
|
|
|
|
|
+ // Dicts merged during init
|
|
|
|
+ if (bgDict.TryGetValue(bgArray[j], out string name))
|
|
bgComboList[j] = new GUIContent(name);
|
|
bgComboList[j] = new GUIContent(name);
|
|
else
|
|
else
|
|
bgComboList[j] = new GUIContent(bgArray[j]);
|
|
bgComboList[j] = new GUIContent(bgArray[j]);
|
|
@@ -1187,11 +1172,9 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
doguComboList = new GUIContent[doguBArray.Length];
|
|
doguComboList = new GUIContent[doguBArray.Length];
|
|
for (int j = 0; j < doguComboList.Length; j++)
|
|
for (int j = 0; j < doguComboList.Length; j++)
|
|
{
|
|
{
|
|
- // TODO: Neater?
|
|
|
|
|
|
+ // Dicts merged during init
|
|
if (doguUiNames.TryGetValue(doguBArray[j], out string name))
|
|
if (doguUiNames.TryGetValue(doguBArray[j], out string name))
|
|
doguComboList[j] = new GUIContent(name);
|
|
doguComboList[j] = new GUIContent(name);
|
|
- else if(doguDict.TryGetValue(doguBArray[j], out var data))
|
|
|
|
- doguComboList[j] = new GUIContent(data.name);
|
|
|
|
else
|
|
else
|
|
doguComboList[j] = new GUIContent(doguBArray[j]);
|
|
doguComboList[j] = new GUIContent(doguBArray[j]);
|
|
}
|
|
}
|
|
@@ -2811,9 +2794,8 @@ namespace CM3D2.MultipleMaids.Plugin
|
|
"追加",
|
|
"追加",
|
|
guistyle3))
|
|
guistyle3))
|
|
{
|
|
{
|
|
- PhotoBGObjectData objResult = null;
|
|
|
|
GameObject gameObject2 = null;
|
|
GameObject gameObject2 = null;
|
|
- if (doguDict.TryGetValue(doguBArray[doguBIndex], out objResult))
|
|
|
|
|
|
+ if (doguDict.TryGetValue(doguBArray[doguBIndex], out PhotoBGObjectData objResult))
|
|
{
|
|
{
|
|
if (!string.IsNullOrEmpty(objResult.create_prefab_name))
|
|
if (!string.IsNullOrEmpty(objResult.create_prefab_name))
|
|
{
|
|
{
|