ghorsington 5 năm trước cách đây
mục cha
commit
cb7f9392a8

+ 5 - 5
Assembly-CSharp.sln

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
 # Visual Studio 15
 VisualStudioVersion = 15.0.26228.4
 MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp\Assembly-CSharp.csproj", "{2FCA663B-1824-417F-8365-5CA65BAC6B14}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp\Assembly-CSharp.csproj", "{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,10 +11,10 @@ Global
 		Release|Any CPU = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{2FCA663B-1824-417F-8365-5CA65BAC6B14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{2FCA663B-1824-417F-8365-5CA65BAC6B14}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{2FCA663B-1824-417F-8365-5CA65BAC6B14}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{2FCA663B-1824-417F-8365-5CA65BAC6B14}.Release|Any CPU.Build.0 = Release|Any CPU
+		{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 16 - 16
Assembly-CSharp/Assembly-CSharp.csproj

@@ -4,7 +4,7 @@
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{2FCA663B-1824-417F-8365-5CA65BAC6B14}</ProjectGuid>
+    <ProjectGuid>{A9E2D430-7780-4356-A18F-F7C9CE6F8D7A}</ProjectGuid>
     <OutputType>Library</OutputType>
     <RootNamespace>Assembly-CSharp</RootNamespace>
     <AssemblyName>Assembly-CSharp</AssemblyName>
@@ -34,49 +34,49 @@
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="Assembly-CSharp-firstpass">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
     </Reference>
     <Reference Include="Assembly-UnityScript-firstpass">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\Assembly-UnityScript-firstpass.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\Assembly-UnityScript-firstpass.dll</HintPath>
     </Reference>
     <Reference Include="FoveUnityPlugin">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\FoveUnityPlugin.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\FoveUnityPlugin.dll</HintPath>
     </Reference>
     <Reference Include="Ionic.Zlib">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\Ionic.Zlib.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\Ionic.Zlib.dll</HintPath>
     </Reference>
     <Reference Include="JsonFx.Json">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\JsonFx.Json.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\JsonFx.Json.dll</HintPath>
     </Reference>
     <Reference Include="LeapCSharp.NET3.5">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\LeapCSharp.NET3.5.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\LeapCSharp.NET3.5.dll</HintPath>
     </Reference>
     <Reference Include="System">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.dll</HintPath>
     </Reference>
     <Reference Include="System.Core">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.Core.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.Core.dll</HintPath>
     </Reference>
     <Reference Include="System.Drawing">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.Drawing.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.Drawing.dll</HintPath>
     </Reference>
     <Reference Include="System.Windows.Forms">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.Windows.Forms.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.Windows.Forms.dll</HintPath>
     </Reference>
     <Reference Include="System.Xml">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.Xml.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.Xml.dll</HintPath>
     </Reference>
     <Reference Include="System.Xml.Linq">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\System.Xml.Linq.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\System.Xml.Linq.dll</HintPath>
     </Reference>
     <Reference Include="UnityEngine">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\UnityEngine.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\UnityEngine.dll</HintPath>
     </Reference>
     <Reference Include="UnityEngine.UI">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\UnityEngine.UI.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\UnityEngine.UI.dll</HintPath>
     </Reference>
     <Reference Include="zxing.unity">
-      <HintPath>..\..\..\..\..\com3d2_up135\data\COM3D2x64_Data\Managed\zxing.unity.dll</HintPath>
+      <HintPath>A:\Gams\KISS\CMUlt\KISS\COM3D2\COM3D2x64_Data\Managed\zxing.unity.dll</HintPath>
     </Reference>
   </ItemGroup>
   <ItemGroup>

+ 34 - 20
Assembly-CSharp/SceneEdit.cs

@@ -1504,8 +1504,11 @@ public class SceneEdit : MonoBehaviour
 		this.m_misDelOnly = null;
 		for (int i = 0; i < this.m_listBtnPartsType.Count; i++)
 		{
-			GameObject obj = this.m_listBtnPartsType[i];
-			UnityEngine.Object.DestroyImmediate(obj);
+			GameObject gameObject = this.m_listBtnPartsType[i];
+			if (gameObject != null)
+			{
+				UnityEngine.Object.DestroyImmediate(gameObject);
+			}
 		}
 		this.m_listBtnPartsType.Clear();
 		for (int j = 0; j < this.m_listSliderItem.Count; j++)
@@ -1535,29 +1538,33 @@ public class SceneEdit : MonoBehaviour
 		for (int n = 0; n < f_cate.m_listPartsType.Count; n++)
 		{
 			SceneEdit.SPartsType spartsType = f_cate.m_listPartsType[n];
-			if (MPN.EarNone > spartsType.m_mpn || spartsType.m_mpn > MPN.EarScl || PluginData.IsEnabled("GP001") || Product.type == Product.Type.JpPublic)
+			if (MPN.EarNone <= spartsType.m_mpn && spartsType.m_mpn <= MPN.EarScl && !PluginData.IsEnabled("GP001") && Product.type != Product.Type.JpPublic)
+			{
+				this.m_listBtnPartsType.Add(null);
+			}
+			else
 			{
 				UnityEngine.Object @object = Resources.Load("SceneEdit/MainMenu/Prefab/ButtonCate");
-				GameObject gameObject = NGUITools.AddChild(this.m_Panel_PartsType.goGrid, @object as GameObject);
-				UILabel uilabel = gameObject.GetComponentsInChildren<UILabel>(true)[0];
+				GameObject gameObject2 = NGUITools.AddChild(this.m_Panel_PartsType.goGrid, @object as GameObject);
+				UILabel uilabel = gameObject2.GetComponentsInChildren<UILabel>(true)[0];
 				Localize component = uilabel.gameObject.GetComponent<Localize>();
 				if (component != null)
 				{
 					component.SetTerm("SceneEdit/カテゴリー/サブ/" + spartsType.m_strPartsTypeName);
 				}
-				ButtonEdit buttonEdit = gameObject.GetComponentsInChildren<ButtonEdit>(true)[0];
+				ButtonEdit buttonEdit = gameObject2.GetComponentsInChildren<ButtonEdit>(true)[0];
 				buttonEdit.m_PartsType = spartsType;
-				UIButton uibutton = gameObject.GetComponentsInChildren<UIButton>(true)[0];
+				UIButton uibutton = gameObject2.GetComponentsInChildren<UIButton>(true)[0];
 				uibutton.isEnabled = spartsType.m_isEnabled;
 				if (uibutton.isEnabled)
 				{
 					EventDelegate.Add(uibutton.onClick, new EventDelegate.Callback(this.ClickCallback));
 				}
-				buttonEdit.m_goFrame = gameObject.transform.Find("Frame").gameObject;
+				buttonEdit.m_goFrame = gameObject2.transform.Find("Frame").gameObject;
 				buttonEdit.m_goFrame.transform.GetComponent<UISprite>().enabled = false;
 				UIButton component2 = buttonEdit.GetComponent<UIButton>();
 				buttonEdit.m_colBtnDefault = component2.defaultColor;
-				this.m_listBtnPartsType.Add(gameObject);
+				this.m_listBtnPartsType.Add(gameObject2);
 			}
 		}
 		this.m_Panel_PartsType.ResetScrollPos(0.5f);
@@ -2275,11 +2282,14 @@ public class SceneEdit : MonoBehaviour
 			for (int k = 0; k < this.m_listBtnPartsType.Count; k++)
 			{
 				GameObject gameObject = this.m_listBtnPartsType[k];
-				ButtonEdit componentInChildren2 = gameObject.GetComponentInChildren<ButtonEdit>();
-				UISprite component3 = componentInChildren2.m_goFrame.GetComponent<UISprite>();
-				component3.enabled = false;
-				UIButton component4 = componentInChildren2.GetComponent<UIButton>();
-				component4.defaultColor = componentInChildren2.m_colBtnDefault;
+				if (!(gameObject == null))
+				{
+					ButtonEdit componentInChildren2 = gameObject.GetComponentInChildren<ButtonEdit>();
+					UISprite component3 = componentInChildren2.m_goFrame.GetComponent<UISprite>();
+					component3.enabled = false;
+					UIButton component4 = componentInChildren2.GetComponent<UIButton>();
+					component4.defaultColor = componentInChildren2.m_colBtnDefault;
+				}
 			}
 			UISprite component5 = componentInChildren.m_goFrame.GetComponent<UISprite>();
 			component5.enabled = true;
@@ -2726,13 +2736,16 @@ public class SceneEdit : MonoBehaviour
 		}
 		foreach (GameObject gameObject in this.m_listBtnPartsType)
 		{
-			ButtonEdit buttonEdit = gameObject.GetComponentsInChildren<ButtonEdit>(true)[0];
-			SceneEdit.SPartsType partsType = buttonEdit.m_PartsType;
-			UIButton uibutton = gameObject.GetComponentsInChildren<UIButton>(true)[0];
-			uibutton.isEnabled = partsType.m_isEnabled;
-			if (uibutton.isEnabled && (uibutton.onClick == null || uibutton.onClick.Count == 0))
+			if (!(gameObject == null))
 			{
-				EventDelegate.Add(uibutton.onClick, new EventDelegate.Callback(this.ClickCallback));
+				ButtonEdit buttonEdit = gameObject.GetComponentsInChildren<ButtonEdit>(true)[0];
+				SceneEdit.SPartsType partsType = buttonEdit.m_PartsType;
+				UIButton uibutton = gameObject.GetComponentsInChildren<UIButton>(true)[0];
+				uibutton.isEnabled = partsType.m_isEnabled;
+				if (uibutton.isEnabled && (uibutton.onClick == null || uibutton.onClick.Count == 0))
+				{
+					EventDelegate.Add(uibutton.onClick, new EventDelegate.Callback(this.ClickCallback));
+				}
 			}
 		}
 		if (this.isNewFace && this.maid.GetProp(MPN.EarNone).value != 0)
@@ -3069,6 +3082,7 @@ public class SceneEdit : MonoBehaviour
 		{
 			if (scategory.m_listPartsType[i].m_ePartsType == partsType && i < this.m_listBtnPartsType.Count)
 			{
+				this.m_listBtnPartsType[i].name = partsType;
 				UIButton componentInChildren = this.m_listBtnPartsType[i].GetComponentInChildren<UIButton>();
 				if (componentInChildren != null)
 				{

+ 1 - 1
Assembly-CSharp/com/workman/cm3d2/scene/dailyEtc/DailyAPI.cs

@@ -127,7 +127,7 @@ namespace com.workman.cm3d2.scene.dailyEtc
 			}
 			GameMain.Instance.CharacterMgr.DeactivateCharaAll();
 			GameMain.Instance.CharacterMgr.DeactivateMaid(0);
-			if (PluginData.IsEnabled("GP002"))
+			if (PluginData.IsEnabled("GP002") && !DailyMgr.IsLegacy)
 			{
 				this.m_isPrivate = PrivateModeMgr.Instance.LoadPrivateMaid(this.m_bDay);
 			}