using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using BepInEx; using BepInEx.Configuration; using CommonAPI; using CommonAPI.Systems; using CommonAPI.Systems.ModLocalization; using HarmonyLib; using NGPT; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Events; using UnityEngine.UI; using crecheng.DSPModSave; using xiaoye97; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Water electrolysis")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Water electrolysis")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("7c9af07a-64ff-409f-b5bc-b78e172b5e36")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace MoreMegaStructure; [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Gnimaerd.DSP.plugin.MMSBottleneckCompat", "MMSBottleneckCompat", "1.0")] public class MMSBottleneckCompat : BaseUnityPlugin { private static readonly List StarAssemblyIndex = new List(); public void Awake() { } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Gnimaerd.DSP.plugin.MMSCCBSCompat", "MMSCCBSCompat", "1.0")] public class CustomCreateBirthStarCompat : BaseUnityPlugin { public static bool enabled; public void Awake() { enabled = true; } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Gnimaerd.DSP.plugin.MMSGS2Compat", "MMSGS2Compat", "1.0")] public class GalacticScaleCompat : BaseUnityPlugin { public static bool enabled; public void Awake() { enabled = true; } } public class MegaButtonGroupBehaviour { private static bool cleared; private static float targetX; public static float currentX; public static void ShowSetMegaGroup() { targetX = 0f; if (UIRoot.instance?.uiGame?.dysonEditor?.selection != null && !cleared) { try { cleared = true; UIRoot.instance.uiGame.dysonEditor.selection.ClearAllSelection(); } catch (Exception) { } } } public static void HideSetMegaGroup() { targetX = -270f; cleared = false; } public static void SetMegaGroupMove() { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_0223: Unknown result type (might be due to invalid IL or missing references) bool flag = false; Transform transform = MoreMegaStructure.setMegaGroupObj.transform; Vector3 localPosition = transform.localPosition; if (MoreMegaStructure.NoUIAnimation.Value) { if (localPosition.x != targetX) { currentX = targetX; transform.localPosition = new Vector3(currentX, localPosition.y, localPosition.z); flag = true; } } else if (targetX > localPosition.x + 0.5f) { float num = targetX - localPosition.x; float num2 = Math.Max(num * 0.2f, 0.5f); currentX = localPosition.x + num2; transform.localPosition = new Vector3(currentX, localPosition.y, localPosition.z); flag = true; } else if (targetX < localPosition.x - 0.5f) { float num3 = targetX - localPosition.x; float num4 = Math.Min(num3 * 0.2f, -0.5f); currentX = localPosition.x + num4; transform.localPosition = new Vector3(currentX, localPosition.y, localPosition.z); flag = true; } else if (targetX != localPosition.x) { currentX = targetX; transform.localPosition = new Vector3(currentX, localPosition.y, localPosition.z); flag = true; } if (flag) { MoreMegaStructure.SetMegaStructureWarningText.text = Localization.Translate("鼠标触碰左侧黄条以规划巨构"); float num5 = (-200f - currentX) * 1f / 70f; ((Graphic)MoreMegaStructure.SetMegaStructureWarningText).color = new Color(1f, 1f, 0.57f, num5); float num6 = (0f - currentX) * 1f / 270f; if (num6 > 1f) { num6 = 1f; } MoreMegaStructure.LeftMegaBuildWarning.transform.localScale = new Vector3(num6, 1f, 1f); } } } internal static class MMSProtos { public class StringProto { public string Name { get; set; } public string ZHCN { get; set; } public string ENUS { get; set; } public void RegisterTranslation() { LocalizationModule.RegisterTranslation(Name, ENUS, ZHCN, ""); } } public static int StarCannonTechId = 1918; public static int componentId = 9500; internal static void RefreshInitAll() { ItemProto.InitFluids(); ItemProto.InitItemIds(); ItemProto.InitFuelNeeds(); ItemProto.InitItemIndices(); ItemProto.InitMechaMaterials(); } public static void ItemsDesc() { } internal static void AddNewItems() { //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0272: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0323: Unknown result type (might be due to invalid IL or missing references) //IL_0337: Unknown result type (might be due to invalid IL or missing references) //IL_03d6: Unknown result type (might be due to invalid IL or missing references) //IL_03ea: Unknown result type (might be due to invalid IL or missing references) //IL_045d: Unknown result type (might be due to invalid IL or missing references) //IL_0471: Unknown result type (might be due to invalid IL or missing references) //IL_0520: Unknown result type (might be due to invalid IL or missing references) //IL_0534: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Unknown result type (might be due to invalid IL or missing references) //IL_061f: Unknown result type (might be due to invalid IL or missing references) //IL_06e8: Unknown result type (might be due to invalid IL or missing references) //IL_06fc: Unknown result type (might be due to invalid IL or missing references) //IL_07a8: Unknown result type (might be due to invalid IL or missing references) //IL_07bc: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Unknown result type (might be due to invalid IL or missing references) //IL_087c: Unknown result type (might be due to invalid IL or missing references) //IL_0928: Unknown result type (might be due to invalid IL or missing references) //IL_093c: Unknown result type (might be due to invalid IL or missing references) //IL_09ea: Unknown result type (might be due to invalid IL or missing references) //IL_09fe: Unknown result type (might be due to invalid IL or missing references) //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0aa2: Unknown result type (might be due to invalid IL or missing references) //IL_0b28: Unknown result type (might be due to invalid IL or missing references) int num = MoreMegaStructure.pagenum * 1000; int num2 = 0; bool flag = true; num = MoreMegaStructure.pagenum * 1000 + 100; num2 = -100; RecipeProto val = ((ProtoSet)(object)LDB.recipes).Select(51); RecipeProto val2 = MethedEx.Copy(val); if (MoreMegaStructure.GenesisCompatibility) { val2.Type = (ERecipeType)10; } ItemProto val3 = ((ProtoSet)(object)LDB.items).Select(1303); int num3 = 0; if (MoreMegaStructure.GenesisCompatibility) { num3 = -200; } ProtoRegistry.RegisterItem(9480, Localization.Translate("引力发生装置"), Localization.Translate("引力发生装置描述"), "Assets/MegaStructureTab/gravitygenerator", 101 + num + num2, 100, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.9f, 0.3f))); ProtoRegistry.RegisterRecipe(num3 + 530, (ERecipeType)4, 180, new int[2] { 1107, 1127 }, new int[2] { 1, 1 }, new int[1] { 9480 }, new int[1] { 1 }, "引力发生装置描述", 1704, 101 + num + num2, "Assets/MegaStructureTab/gravitygenerator"); ProtoRegistry.RegisterItem(9481, Localization.Translate("位面约束环"), Localization.Translate("位面约束环描述"), "Assets/MegaStructureTab/constrainring", 102 + num + num2, 100, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.4f, 0.08f, 0.4f))); if (MoreMegaStructure.GenesisCompatibility) { ProtoRegistry.RegisterRecipe(num3 + 531, (ERecipeType)4, 180, new int[3] { 1205, 1119, 1126 }, new int[3] { 2, 1, 1 }, new int[1] { 9481 }, new int[1] { 2 }, "位面约束环描述", 1141, 102 + num + num2, "Assets/MegaStructureTab/constrainring"); } else { ProtoRegistry.RegisterRecipe(num3 + 531, (ERecipeType)4, 180, new int[2] { 1205, 1304 }, new int[2] { 2, 1 }, new int[1] { 9481 }, new int[1] { 2 }, "位面约束环描述", 1141, 102 + num + num2, "Assets/MegaStructureTab/constrainring"); } ProtoRegistry.RegisterItem(9482, Localization.Translate("引力钻头"), Localization.Translate("引力钻头描述"), "Assets/MegaStructureTab/gravitydrill2", 103 + num + num2, 50, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.black, new Color(0.3f, 0.9f, 0.3f))); ProtoRegistry.RegisterRecipe(num3 + 532, (ERecipeType)4, 180, new int[3] { 9480, 9481, 1209 }, new int[3] { 1, 1, 1 }, new int[1] { 9482 }, new int[1] { 1 }, "引力钻头描述", 1704, 103 + num + num2, "Assets/MegaStructureTab/gravitydrill2"); ProtoRegistry.RegisterItem(9483, Localization.Translate("隧穿激发装置"), Localization.Translate("隧穿激发装置描述"), "Assets/MegaStructureTab/tunnelingexciter2", 104 + num + num2, 200, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.1f, 0f))); ProtoRegistry.RegisterRecipe(num3 + 533, (ERecipeType)4, 360, new int[2] { 1303, 1014 }, new int[2] { 1, 2 }, new int[1] { 9483 }, new int[1] { 6 }, "隧穿激发装置描述", 1703, 104 + num + num2, "Assets/MegaStructureTab/tunnelingexciter2"); ProtoRegistry.RegisterItem(9484, Localization.Translate("谐振盘"), Localization.Translate("谐振盘描述"), "Assets/MegaStructureTab/resonancedisc", 105 + num + num2, 200, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.gray, new Color(0.4f, 0.4f, 0.8f))); ProtoRegistry.RegisterRecipe(num3 + 534, (ERecipeType)4, 240, new int[3] { 9483, 1113, 1305 }, new int[3] { 3, 2, 1 }, new int[1] { 9484 }, new int[1] { 1 }, "谐振盘描述", 1303, 105 + num + num2, "Assets/MegaStructureTab/resonancedisc"); IconDesc defaultIconDesc = ProtoRegistry.GetDefaultIconDesc(Color.gray, new Color(0.6f, 0.6f, 0.9f)); defaultIconDesc.solidAlpha = 0.1f; ProtoRegistry.RegisterItem(9485, Localization.Translate("光子探针"), Localization.Translate("光子探针描述"), "Assets/MegaStructureTab/photonprobeflipsmall", 106 + num + num2, 200, (EItemType)3, defaultIconDesc); ProtoRegistry.RegisterRecipe(num3 + 535, (ERecipeType)4, 240, new int[2] { 1404, 1208 }, new int[2] { 2, 1 }, new int[1] { 9485 }, new int[1] { 1 }, "光子探针描述", 1504, 106 + num + num2, "Assets/MegaStructureTab/photonprobeflipsmall"); IconDesc defaultIconDesc2 = ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0f, 0.7f, 1f)); defaultIconDesc2.solidAlpha = 0f; ProtoRegistry.RegisterItem(9486, Localization.Translate("量子计算机"), Localization.Translate("量子计算机描述"), "Assets/MegaStructureTab/quantumcomputer3", 107 + num + num2, 200, (EItemType)3, defaultIconDesc2); ProtoRegistry.RegisterRecipe(num3 + 536, (ERecipeType)4, 720, new int[3] { 1305, 1402, 9483 }, new int[3] { 3, 2, 1 }, new int[1] { 9486 }, new int[1] { 1 }, "量子计算机描述", 1303, 107 + num + num2, "Assets/MegaStructureTab/quantumcomputer3"); ProtoRegistry.RegisterItem(9487, Localization.Translate("星际组装厂组件"), Localization.Translate("星际组装厂组件描述"), "Assets/MegaStructureTab/iacomponent", 108 + num + num2, 200, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.7f, 0.2f, 0.7f))); ProtoRegistry.RegisterRecipe(num3 + 537, (ERecipeType)4, 480, new int[3] { 1125, 2305, 1143 }, new int[3] { 3, 3, 1 }, new int[1] { 9487 }, new int[1] { 1 }, "星际组装厂组件描述", 1303, 108 + num + num2, "Assets/MegaStructureTab/iacomponent"); RecipeProto val4 = ((ProtoSet)(object)LDB.recipes).Select(83); ItemProto val5 = ((ProtoSet)(object)LDB.items).Select(1503); ProtoRegistry.RegisterItem(9488, Localization.Translate("物质解压器运载火箭"), Localization.Translate("物质解压器运载火箭描述"), "Assets/MegaStructureTab/rocketMatter", 201 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(new Color(1f, 0.9f, 0.9f), new Color(0.7f, 0.2f, 0.2f))); RecipeProto val6 = ProtoRegistry.RegisterRecipe(num3 + 538, (ERecipeType)4, 480, new int[3] { 9482, 9484, 1802 }, new int[3] { 2, 1, 2 }, new int[1] { 9488 }, new int[1] { 1 }, "物质解压器运载火箭描述", 1522, 201 + num, "Assets/MegaStructureTab/rocketMatter"); ProtoRegistry.RegisterItem(9489, Localization.Translate("科学枢纽运载火箭"), Localization.Translate("科学枢纽运载火箭描述"), "Assets/MegaStructureTab/rocketScience", 202 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(new Color(1f, 1f, 0.9f), new Color(0.7f, 0.7f, 0.2f))); RecipeProto val7 = ProtoRegistry.RegisterRecipe(num3 + 539, (ERecipeType)4, 480, new int[3] { 9481, 9486, 1802 }, new int[3] { 3, 1, 2 }, new int[1] { 9489 }, new int[1] { 1 }, "科学枢纽运载火箭描述", 1522, 202 + num, "Assets/MegaStructureTab/rocketScience"); ProtoRegistry.RegisterItem(9490, Localization.Translate("谐振发射器运载火箭"), Localization.Translate("谐振发射器运载火箭描述"), "Assets/MegaStructureTab/rocketWarp", 203 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(new Color(0.9f, 1f, 0.9f), new Color(0.2f, 0.7f, 0.2f))); RecipeProto val8 = ProtoRegistry.RegisterRecipe(num3 + 540, (ERecipeType)4, 480, new int[3] { 9480, 9484, 1802 }, new int[3] { 1, 4, 2 }, new int[1] { 9490 }, new int[1] { 1 }, "谐振发射器运载火箭描述", 1522, 203 + num, "Assets/MegaStructureTab/rocketWarp"); ProtoRegistry.RegisterItem(9491, Localization.Translate("星际组装厂运载火箭"), Localization.Translate("星际组装厂运载火箭描述"), "Assets/MegaStructureTab/rocketAssembly", 204 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(new Color(0.9f, 0.9f, 1f), new Color(0.1f, 0.5f, 0.7f))); RecipeProto val9 = ProtoRegistry.RegisterRecipe(num3 + 541, (ERecipeType)4, 480, new int[2] { 9487, 1802 }, new int[2] { 2, 2 }, new int[1] { 9491 }, new int[1] { 1 }, "星际组装厂运载火箭描述", 1522, 204 + num, "Assets/MegaStructureTab/rocketAssembly"); ProtoRegistry.RegisterItem(9492, Localization.Translate("晶体重构器运载火箭"), Localization.Translate("晶体重构器运载火箭描述"), "Assets/MegaStructureTab/rocketCrystal", 205 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(new Color(1f, 0.9f, 1f), new Color(0.7f, 0.2f, 0.7f))); RecipeProto val10 = ProtoRegistry.RegisterRecipe(num3 + 542, (ERecipeType)4, 480, new int[3] { 9485, 1802, 1305 }, new int[3] { 1, 2, 2 }, new int[1] { 9492 }, new int[1] { 1 }, "晶体重构器运载火箭描述", 1522, 205 + num, "Assets/MegaStructureTab/rocketCrystal"); ProtoRegistry.RegisterItem(9500, Localization.Translate("多功能集成组件"), Localization.Translate("多功能集成组件描述"), "Assets/MegaStructureTab/integratedcomponents", 109 + num + num2, 1000, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, Color.white)); ProtoRegistry.RegisterRecipe(num3 + 550, (ERecipeType)4, 60, new int[1] { 9500 }, new int[1] { 1 }, new int[1] { 9500 }, new int[1] { 1 }, "多功能集成组件描述", 1203, 199 + num + num2, "Assets/MegaStructureTab/integratedcomponents"); RecipeProto val11 = ((ProtoSet)(object)LDB.recipes).Select(47); if (MoreMegaStructure.GenesisCompatibility) { val11.Type = (ERecipeType)10; } RecipeProto val12 = MethedEx.Copy(val11); ((Proto)val12).ID = num3 + 551; ((Proto)val12).Name = "传送带 快速组装"; ((Proto)val12).name = Localization.Translate("传送带 快速组装"); val12.Description = "快速组装描述"; val12.description = Localization.Translate("快速组装描述"); val12.Items = new int[1] { 9500 }; val12.ItemCounts = new int[1] { 1 }; val12.Results = new int[1] { 2003 }; val12.ResultCounts = new int[1] { 60 }; val12.GridIndex = 401 + num; val12.TimeSpend = 6; Traverse.Create((object)val12).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickBelt); RecipeProto val13 = MethedEx.Copy(val11); ((Proto)val13).ID = 552; ((Proto)val13).Name = "分拣器 快速组装"; ((Proto)val13).name = Localization.Translate("分拣器 快速组装"); val13.Description = "快速组装描述"; val13.description = Localization.Translate("快速组装描述"); val13.Items = new int[1] { 9500 }; val13.ItemCounts = new int[1] { 1 }; val13.Results = new int[1] { 2013 }; val13.ResultCounts = new int[1] { 10 }; val13.GridIndex = 402 + num; val13.TimeSpend = 6; Traverse.Create((object)val13).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickSorter); RecipeProto val14 = MethedEx.Copy(val11); ((Proto)val14).ID = 553; ((Proto)val14).Name = "配电站 快速组装"; ((Proto)val14).name = Localization.Translate("配电站 快速组装"); val14.Description = "快速组装描述"; val14.description = Localization.Translate("快速组装描述"); val14.Items = new int[1] { 9500 }; val14.ItemCounts = new int[1] { 1 }; val14.Results = new int[1] { 2212 }; val14.ResultCounts = new int[1] { 5 }; val14.GridIndex = 403 + num; val14.TimeSpend = 6; Traverse.Create((object)val14).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickPower); RecipeProto val15 = MethedEx.Copy(val11); ((Proto)val15).ID = 554; ((Proto)val15).Name = "制造台 快速组装"; ((Proto)val15).name = Localization.Translate("制造台 快速组装"); val15.Description = "快速组装描述"; val15.description = Localization.Translate("快速组装描述"); val15.Items = new int[1] { 9500 }; val15.ItemCounts = new int[1] { 1 }; val15.Results = new int[1] { 2305 }; val15.ResultCounts = new int[1] { 1 }; val15.GridIndex = 404 + num; val15.TimeSpend = 6; Traverse.Create((object)val15).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickAssembly); RecipeProto val16 = MethedEx.Copy(val11); ((Proto)val16).ID = 555; ((Proto)val16).Name = "位面熔炉 快速组装"; ((Proto)val16).name = Localization.Translate("位面熔炉 快速组装"); val16.Description = "快速组装描述"; val16.description = Localization.Translate("快速组装描述"); val16.Items = new int[1] { 9500 }; val16.ItemCounts = new int[1] { 1 }; val16.Results = new int[1] { 2315 }; val16.ResultCounts = new int[1] { 1 }; val16.GridIndex = 405 + num; val16.TimeSpend = 6; Traverse.Create((object)val16).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickSmelter); RecipeProto val17 = MethedEx.Copy(val11); ((Proto)val17).ID = 556; ((Proto)val17).Name = "化工厂 快速组装"; ((Proto)val17).name = Localization.Translate("化工厂 快速组装"); val17.Description = "快速组装描述"; val17.description = Localization.Translate("快速组装描述"); val17.Items = new int[1] { 9500 }; val17.ItemCounts = new int[1] { 2 }; val17.Results = new int[1] { 2317 }; val17.ResultCounts = new int[1] { 1 }; val17.GridIndex = 406 + num; val17.TimeSpend = 6; val17.preTech = ((ProtoSet)(object)LDB.techs).Select(1305); Traverse.Create((object)val17).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickChemical); RecipeProto val18 = MethedEx.Copy(val11); ((Proto)val18).ID = 557; ((Proto)val18).Name = "精炼厂 快速组装"; ((Proto)val18).name = Localization.Translate("精炼厂 快速组装"); val18.Description = "快速组装描述"; val18.description = Localization.Translate("快速组装描述"); val18.Items = new int[1] { 9500 }; val18.ItemCounts = new int[1] { 2 }; val18.Results = new int[2] { 2307, 2308 }; val18.ResultCounts = new int[2] { 1, 4 }; val18.GridIndex = 407 + num; val18.TimeSpend = 6; Traverse.Create((object)val18).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickRefinery); RecipeProto val19 = MethedEx.Copy(val11); ((Proto)val19).ID = 558; ((Proto)val19).Name = "对撞机 快速组装"; ((Proto)val19).name = Localization.Translate("对撞机 快速组装"); val19.Description = "快速组装描述"; val19.description = Localization.Translate("快速组装描述"); val19.Items = new int[1] { 9500 }; val19.ItemCounts = new int[1] { 2 }; val19.Results = new int[1] { 2310 }; val19.ResultCounts = new int[1] { 1 }; val19.GridIndex = 408 + num; val19.TimeSpend = 6; Traverse.Create((object)val19).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickCollider); RecipeProto val20 = MethedEx.Copy(val11); ((Proto)val20).ID = 559; ((Proto)val20).Name = "研究站 快速组装"; ((Proto)val20).name = Localization.Translate("研究站 快速组装"); val20.Description = "快速组装描述"; val20.description = Localization.Translate("快速组装描述"); val20.Items = new int[1] { 9500 }; val20.ItemCounts = new int[1] { 1 }; val20.Results = new int[1] { 2901 }; val20.ResultCounts = new int[1] { 2 }; val20.GridIndex = 409 + num; val20.TimeSpend = 6; Traverse.Create((object)val20).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickLab); RecipeProto val21 = MethedEx.Copy(val11); ((Proto)val21).ID = 560; ((Proto)val21).Name = "人造恒星 快速组装"; ((Proto)val21).name = Localization.Translate("人造恒星 快速组装"); val21.Description = "快速组装描述"; val21.description = Localization.Translate("快速组装描述"); val21.Items = new int[1] { 9500 }; val21.ItemCounts = new int[1] { 5 }; val21.Results = new int[1] { 2210 }; val21.ResultCounts = new int[1] { 1 }; val21.GridIndex = 410 + num; val21.TimeSpend = 6; val21.preTech = ((ProtoSet)(object)LDB.techs).Select(1144); Traverse.Create((object)val21).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickReactor); if (MoreMegaStructure.GenesisCompatibility) { val21.ItemCounts = new int[1] { 20 }; val21.Results = new int[1] { 6261 }; Traverse.Create((object)val21).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rreactor2")); } RecipeProto val22 = MethedEx.Copy(val11); ((Proto)val22).ID = 561; ((Proto)val22).Name = "行星内物流 快速组装"; ((Proto)val22).name = Localization.Translate("行星内物流 快速组装"); val22.Description = "快速组装描述"; val22.description = Localization.Translate("快速组装描述"); val22.Items = new int[1] { 9500 }; val22.ItemCounts = new int[1] { 3 }; val22.Results = new int[2] { 2103, 5001 }; val22.ResultCounts = new int[2] { 1, 30 }; val22.GridIndex = 411 + num; val22.TimeSpend = 6; val22.preTech = ((ProtoSet)(object)LDB.techs).Select(1604); Traverse.Create((object)val22).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickPLog); RecipeProto val23 = MethedEx.Copy(val11); ((Proto)val23).ID = 562; ((Proto)val23).Name = "星际物流 快速组装"; ((Proto)val23).name = Localization.Translate("星际物流 快速组装"); val23.Description = "快速组装描述"; val23.description = Localization.Translate("快速组装描述"); val23.Items = new int[1] { 9500 }; val23.ItemCounts = new int[1] { 5 }; val23.Results = new int[2] { 2104, 5002 }; val23.ResultCounts = new int[2] { 1, 10 }; val23.GridIndex = 412 + num; val23.TimeSpend = 6; val23.preTech = ((ProtoSet)(object)LDB.techs).Select(1605); Traverse.Create((object)val23).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconQuickILog); RecipeProto val24 = MethedEx.Copy(val11); ((Proto)val24).ID = 352; ((Proto)val24).Name = "集装分拣器 快速组装"; ((Proto)val24).name = Localization.Translate("集装分拣器 快速组装"); val24.Description = "快速组装描述"; val24.description = Localization.Translate("快速组装描述"); val24.Items = new int[1] { 9500 }; val24.ItemCounts = new int[1] { 1 }; val24.Results = new int[1] { 2014 }; val24.ResultCounts = new int[1] { 4 }; val24.GridIndex = 501 + num; val24.TimeSpend = 6; val24.preTech = ((ProtoSet)(object)LDB.techs).Select(1607); if (MoreMegaStructure.GenesisCompatibility) { val24.preTech = ((ProtoSet)(object)LDB.techs).Select(1522); } Traverse.Create((object)val24).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rsorter4")); RecipeProto val25 = MethedEx.Copy(val11); ((Proto)val25).ID = 353; ((Proto)val25).Name = "制造台4 快速组装"; ((Proto)val25).name = Localization.Translate("制造台4 快速组装"); val25.Description = "快速组装描述"; val25.description = Localization.Translate("快速组装描述"); val25.Items = new int[1] { 9500 }; val25.ItemCounts = new int[1] { 2 }; val25.Results = new int[1] { 2318 }; val25.ResultCounts = new int[1] { 1 }; val25.GridIndex = 502 + num; val25.TimeSpend = 6; val25.preTech = ((ProtoSet)(object)LDB.techs).Select(1902); if (MoreMegaStructure.GenesisCompatibility) { val25.preTech = ((ProtoSet)(object)LDB.techs).Select(1902); } Traverse.Create((object)val25).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rassembly4")); RecipeProto val26 = MethedEx.Copy(val11); ((Proto)val26).ID = 354; ((Proto)val26).Name = "熔炉3 快速组装"; ((Proto)val26).name = Localization.Translate("熔炉3 快速组装"); val26.Description = "快速组装描述"; val26.description = Localization.Translate("快速组装描述"); val26.Items = new int[1] { 9500 }; val26.ItemCounts = new int[1] { 2 }; val26.Results = new int[1] { 2319 }; val26.ResultCounts = new int[1] { 1 }; val26.GridIndex = 503 + num; val26.TimeSpend = 6; val26.preTech = ((ProtoSet)(object)LDB.techs).Select(1903); if (MoreMegaStructure.GenesisCompatibility) { val26.preTech = ((ProtoSet)(object)LDB.techs).Select(1903); } Traverse.Create((object)val26).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rsmelter3")); RecipeProto val27 = MethedEx.Copy(val11); ((Proto)val27).ID = 355; ((Proto)val27).Name = "实验室2 快速组装"; ((Proto)val27).name = Localization.Translate("实验室2 快速组装"); val27.Description = "快速组装描述"; val27.description = Localization.Translate("快速组装描述"); val27.Items = new int[1] { 9500 }; val27.ItemCounts = new int[1] { 1 }; val27.Results = new int[1] { 2902 }; val27.ResultCounts = new int[1] { 1 }; val27.GridIndex = 504 + num; val27.TimeSpend = 6; val27.preTech = ((ProtoSet)(object)LDB.techs).Select(1901); if (MoreMegaStructure.GenesisCompatibility) { val27.preTech = ((ProtoSet)(object)LDB.techs).Select(1901); } Traverse.Create((object)val27).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rlab2")); RecipeProto val28 = MethedEx.Copy(val11); ((Proto)val28).ID = 356; ((Proto)val28).Name = "大矿机 快速组装"; ((Proto)val28).name = Localization.Translate("大矿机 快速组装"); val28.Description = "快速组装描述"; val28.description = Localization.Translate("快速组装描述"); val28.Items = new int[1] { 9500 }; val28.ItemCounts = new int[1] { 2 }; val28.Results = new int[1] { 2316 }; val28.ResultCounts = new int[1] { 1 }; val28.GridIndex = 505 + num; val28.TimeSpend = 6; val28.preTech = ((ProtoSet)(object)LDB.techs).Select(1304); if (MoreMegaStructure.GenesisCompatibility) { val28.preTech = ((ProtoSet)(object)LDB.techs).Select(1304); } Traverse.Create((object)val28).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rmining2")); RecipeProto val29 = MethedEx.Copy(val11); ((Proto)val29).ID = 357; ((Proto)val29).Name = "抽水泵 快速组装"; ((Proto)val29).name = Localization.Translate("抽水泵 快速组装"); val29.Description = "快速组装描述"; val29.description = Localization.Translate("快速组装描述"); val29.Items = new int[1] { 9500 }; val29.ItemCounts = new int[1] { 1 }; val29.Results = new int[1] { 2306 }; val29.ResultCounts = new int[1] { 5 }; val29.GridIndex = 506 + num; val29.TimeSpend = 6; val29.preTech = ((ProtoSet)(object)LDB.techs).Select(1120); Traverse.Create((object)val29).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rpump")); if (MoreMegaStructure.GenesisCompatibility) { val29.preTech = ((ProtoSet)(object)LDB.techs).Select(1304); val29.Results = new int[1] { 6266 }; val29.ResultCounts = new int[1] { 1 }; Traverse.Create((object)val29).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/Rpump2")); } if (MoreMegaStructure.GenesisCompatibility) { val14.GridIndex = 9999; val16.GridIndex = 9999; val15.GridIndex = 9999; val17.GridIndex = 9999; val18.GridIndex = 9999; val19.GridIndex = 9999; } if (MoreMegaStructure.StarCannonOnly.Value) { val6.GridIndex = 9999; val7.GridIndex = 9999; val8.GridIndex = 9999; val9.GridIndex = 9999; val10.GridIndex = 9999; } ((ProtoSet)(object)LDB.items).Select(2003).recipes.Add(val12); ((ProtoSet)(object)LDB.items).Select(2013).recipes.Add(val13); ((ProtoSet)(object)LDB.items).Select(2305).recipes.Add(val15); ((ProtoSet)(object)LDB.items).Select(2315).recipes.Add(val16); ((ProtoSet)(object)LDB.items).Select(2317).recipes.Add(val17); ((ProtoSet)(object)LDB.items).Select(2212).recipes.Add(val14); ((ProtoSet)(object)LDB.items).Select(2308).recipes.Add(val18); ((ProtoSet)(object)LDB.items).Select(2307).recipes.Add(val18); ((ProtoSet)(object)LDB.items).Select(2310).recipes.Add(val19); ((ProtoSet)(object)LDB.items).Select(2901).recipes.Add(val20); ((ProtoSet)(object)LDB.items).Select(2210).recipes.Add(val21); ((ProtoSet)(object)LDB.items).Select(2103).recipes.Add(val22); ((ProtoSet)(object)LDB.items).Select(5001).recipes.Add(val22); ((ProtoSet)(object)LDB.items).Select(2104).recipes.Add(val23); ((ProtoSet)(object)LDB.items).Select(5002).recipes.Add(val23); ((ProtoSet)(object)LDB.items).Select(2014).recipes.Add(val24); ((ProtoSet)(object)LDB.items).Select(2318).recipes.Add(val25); ((ProtoSet)(object)LDB.items).Select(2319).recipes.Add(val26); ((ProtoSet)(object)LDB.items).Select(2902).recipes.Add(val27); ((ProtoSet)(object)LDB.items).Select(2316).recipes.Add(val28); ((ProtoSet)(object)LDB.items).Select(2306).recipes.Add(val29); LDBTool.PostAddProto((Proto)(object)val15); LDBTool.PostAddProto((Proto)(object)val12); LDBTool.PostAddProto((Proto)(object)val17); LDBTool.PostAddProto((Proto)(object)val19); LDBTool.PostAddProto((Proto)(object)val23); LDBTool.PostAddProto((Proto)(object)val20); LDBTool.PostAddProto((Proto)(object)val22); LDBTool.PostAddProto((Proto)(object)val14); LDBTool.PostAddProto((Proto)(object)val21); LDBTool.PostAddProto((Proto)(object)val18); LDBTool.PostAddProto((Proto)(object)val16); LDBTool.PostAddProto((Proto)(object)val13); LDBTool.PostAddProto((Proto)(object)val24); LDBTool.PostAddProto((Proto)(object)val25); LDBTool.PostAddProto((Proto)(object)val26); LDBTool.PostAddProto((Proto)(object)val27); LDBTool.PostAddProto((Proto)(object)val28); LDBTool.PostAddProto((Proto)(object)val29); bool flag2 = true; } public static void AddNewItems2() { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_01e5: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0227: Unknown result type (might be due to invalid IL or missing references) //IL_0255: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_066a: Unknown result type (might be due to invalid IL or missing references) int num = MoreMegaStructure.pagenum * 1000; int num2 = 0; int num3 = 0; if (MoreMegaStructure.GenesisCompatibility) { num2 = -200; num3 = -8; } ProtoRegistry.RegisterItem(9503, "力场发生器", "力场发生器描述", "Assets/MegaStructureTab/forceGen", 201 + num, 20, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9504, "复合态晶体", "复合态晶体描述", "Assets/MegaStructureTab/compoCrystal", 202 + num, 100, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9505, "电磁力抑制器", "电磁力抑制器描述", "Assets/MegaStructureTab/elemaginhibitor2", 203 + num, 50, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9506, "胶子发生器", "胶子发生器描述", "Assets/MegaStructureTab/gluonGen", 204 + num, 50, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9507, "强力过载装置", "强力过载装置描述", "Assets/MegaStructureTab/strIntOverloader", 205 + num, 20, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9508, "导流框架", "导流框架描述", "Assets/MegaStructureTab/starcannonframe", 206 + num, 20, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.2f, 0.7f, 0.7f))); ProtoRegistry.RegisterItem(9509, "恒星炮组件", "恒星炮组件描述", "Assets/MegaStructureTab/starcannoncompo", 207 + num, 20, (EItemType)3, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.3f, 0.3f, 0.9f))); ProtoRegistry.RegisterItem(9510, "恒星炮运载火箭", "恒星炮运载火箭描述", "Assets/MegaStructureTab/rocketStarcannon", 306 + num, 20, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(Color.white, new Color(0.3f, 0.9f, 0.9f))); ItemProto val = ProtoRegistry.RegisterItem(9511, "水滴gm", "水滴描述gm", "Assets/MegaStructureTab/drop1", 707 + num, 10, (EItemType)4, ProtoRegistry.GetDefaultIconDesc(Color.white, Color.white)); ProtoRegistry.RegisterRecipe(565 + num2, (ERecipeType)4, 240, new int[2] { 9480, 9484 }, new int[2] { 1, 2 }, new int[1] { 9503 }, new int[1] { 1 }, "力场发生器描述", StarCannonTechId, 201 + num, "Assets/MegaStructureTab/forceGen"); RecipeProto val2 = ProtoRegistry.RegisterRecipe(566 + num2, (ERecipeType)5, 600, new int[5] { 5203, 1126, 1124, 1118, 1120 }, new int[5] { 1, 1, 1, 1, 1 }, new int[1] { 9504 }, new int[1] { 1 }, "复合态晶体描述", 1919, 202 + num, "Assets/MegaStructureTab/compoCrystal"); ProtoRegistry.RegisterRecipe(567 + num2, (ERecipeType)4, 360, new int[2] { 1305, 1205 }, new int[2] { 1, 2 }, new int[1] { 9505 }, new int[1] { 1 }, "电磁力抑制器描述", 1919, 203 + num, "Assets/MegaStructureTab/elemaginhibitor2"); RecipeProto val3 = ProtoRegistry.RegisterRecipe(568 + num2, (ERecipeType)4, 360, new int[3] { 9483, 1402, 1122 }, new int[3] { 1, 1, 2 }, new int[1] { 9506 }, new int[1] { 1 }, "胶子发生器描述", 1919, 204 + num, "Assets/MegaStructureTab/gluonGen"); RecipeProto val4 = ProtoRegistry.RegisterRecipe(569 + num2, (ERecipeType)4, 1200, new int[2] { 9506, 9486 }, new int[2] { 2, 2 }, new int[1] { 9507 }, new int[1] { 1 }, "强力过载装置描述", 1919, 205 + num, "Assets/MegaStructureTab/strIntOverloader"); ProtoRegistry.RegisterRecipe(570 + num2, (ERecipeType)4, 180, new int[3] { 1125, 9481, 9503 }, new int[3] { 3, 2, 3 }, new int[1] { 9508 }, new int[1] { 1 }, "导流框架描述", StarCannonTechId, 206 + num, "Assets/MegaStructureTab/starcannonframe"); ProtoRegistry.RegisterRecipe(571 + num2, (ERecipeType)4, 480, new int[2] { 1209, 9508 }, new int[2] { 3, 2 }, new int[1] { 9509 }, new int[1] { 1 }, "恒星炮组件描述", StarCannonTechId, 207 + num, "Assets/MegaStructureTab/starcannoncompo"); ProtoRegistry.RegisterRecipe(572 + num2, (ERecipeType)4, 360, new int[3] { 9509, 1802, 1305 }, new int[3] { 2, 2, 2 }, new int[1] { 9510 }, new int[1] { 1 }, "恒星炮运载火箭描述", StarCannonTechId, 306 + num, "Assets/MegaStructureTab/rocketStarcannon"); RecipeProto val5 = ProtoRegistry.RegisterRecipe(573 + num2, (ERecipeType)4, 3600, new int[3] { 9505, 9507, 9504 }, new int[3] { 20, 20, 100 }, new int[1] { 9511 }, new int[1] { 1 }, "水滴描述gm", 1919, 707 + num, "Assets/MegaStructureTab/drop1"); TechProto val6 = ProtoRegistry.RegisterTech(StarCannonTechId, "尼科尔戴森光束", "尼科尔戴森光束描述", "尼科尔戴森光束结论", "Assets/MegaStructureTab/starcannontech", new int[0], new int[1] { 5201 }, new int[1] { 200 }, 36000L, new int[4] { 570 + num2, 571 + num2, 572 + num2, 565 + num2 }, new Vector2((float)(65 + num3), -3f)); val6.PreTechsImplicit = new int[1] { 1522 }; val6.IsHiddenTech = true; val6.PreItem = new int[1] { 5201 }; val2.Handcraft = false; val3.Handcraft = false; val4.Handcraft = false; val5.Handcraft = false; } public static void EditOriRR(Proto proto) { } public static void AddGenesisRecipes() { if (MoreMegaStructure.GenesisCompatibility) { int num = MoreMegaStructure.pagenum * 1000 + 100; RecipeProto val = ProtoRegistry.RegisterRecipe(376, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6257 }, new int[1] { 1 }, "巨建快速组装描述", 1923, 403 + num, "Assets/MegaStructureTab/quick6257"); RecipeProto val2 = ProtoRegistry.RegisterRecipe(377, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6258 }, new int[1] { 1 }, "巨建快速组装描述", 1924, 404 + num, "Assets/MegaStructureTab/quick6258"); RecipeProto val3 = ProtoRegistry.RegisterRecipe(378, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6259 }, new int[1] { 1 }, "巨建快速组装描述", 1925, 405 + num, "Assets/MegaStructureTab/quick6259"); RecipeProto val4 = ProtoRegistry.RegisterRecipe(379, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6260 }, new int[1] { 1 }, "巨建快速组装描述", 1926, 406 + num, "Assets/MegaStructureTab/quick6260"); RecipeProto val5 = ProtoRegistry.RegisterRecipe(380, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6264 }, new int[1] { 1 }, "巨建快速组装描述", 1931, 407 + num, "Assets/MegaStructureTab/quick6264"); RecipeProto val6 = ProtoRegistry.RegisterRecipe(381, (ERecipeType)10, 6, new int[1] { 9500 }, new int[1] { 25 }, new int[1] { 6265 }, new int[1] { 1 }, "巨建快速组装描述", 1927, 408 + num, "Assets/MegaStructureTab/quick6265"); val._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6257"); val2._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6258"); val3._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6259"); val4._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6260"); val5._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6264"); val6._iconSprite = Resources.Load("Assets/MegaStructureTab/quick6265"); LDBTool.PostAddProto((Proto)(object)val); LDBTool.PostAddProto((Proto)(object)val2); LDBTool.PostAddProto((Proto)(object)val3); LDBTool.PostAddProto((Proto)(object)val4); LDBTool.PostAddProto((Proto)(object)val5); LDBTool.PostAddProto((Proto)(object)val6); } } public static void AddReceivers() { int num = MoreMegaStructure.pagenum * 1000; bool flag = true; num = MoreMegaStructure.battlePagenum * 1000 + 100; int num2 = 0; if (MoreMegaStructure.GenesisCompatibility) { num2 = -200; } RecipeProto val = ((ProtoSet)(object)LDB.recipes).Select(41); ItemProto val2 = ((ProtoSet)(object)LDB.items).Select(2208); ItemProto val3 = ((ProtoSet)(object)LDB.items).Select(2104); RecipeProto val4 = MethedEx.Copy(val); ItemProto val5 = MethedEx.Copy(val2); ((Proto)val4).ID = num2 + 543; ((Proto)val4).Name = "星际组装厂生产机器图标专用"; ((Proto)val4).name = Localization.Translate("星际组装厂生产机器图标专用"); val4.Description = ""; val4.description = ""; val4.Items = new int[4] { 1103, 1404, 1303, 9481 }; val4.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val4.Items = new int[4] { 1103, 1014, 1303, 9481 }; val4.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val4.Results = new int[1] { 9493 }; val4.ResultCounts = new int[1] { 1 }; val4.GridIndex = 9901 + num; val4.TimeSpend = 480; Traverse.Create((object)val4).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverIron); val4.preTech = null; if (MoreMegaStructure.isBattleActive) { val4.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val5).ID = 9493; ((Proto)val5).Name = "星际组装厂生产机器图标专用"; ((Proto)val5).name = Localization.Translate("星际组装厂生产机器图标专用"); val5.Description = ""; val5.description = Localization.Translate(""); val5.GridIndex = 9901 + num; val5.HeatValue = 0L; val5.prefabDesc = MethedEx.Copy(val2.prefabDesc); val5.prefabDesc.powerProductHeat = 6000000L; val5.prefabDesc.powerProductId = 1101; val5.handcraft = val4; val5.handcrafts = new List { val4 }; val5.maincraft = val4; val5.recipes = new List { val4 }; val5.Grade = 2; val5.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; val5._iconSprite = Resources.Load("ui/textures/sprites/starmap/planets-icon"); RecipeProto val6 = MethedEx.Copy(val); ItemProto val7 = MethedEx.Copy(val2); ((Proto)val6).ID = num2 + 544; ((Proto)val6).Name = "铜金属重构装置"; ((Proto)val6).name = Localization.Translate("铜金属重构装置"); val6.Description = "接收重构装置描述"; val6.description = Localization.Translate("接收重构装置描述"); val6.Items = new int[4] { 1103, 1404, 1303, 9481 }; val6.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val6.Items = new int[4] { 1103, 1014, 1303, 9481 }; val6.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val6.Results = new int[1] { 9494 }; val6.ResultCounts = new int[1] { 1 }; val6.GridIndex = 9902 + num; val6.TimeSpend = 480; Traverse.Create((object)val6).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCopper); val6.preTech = null; if (MoreMegaStructure.isBattleActive) { val6.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val7).ID = 9494; ((Proto)val7).Name = "铜金属重构装置"; ((Proto)val7).name = Localization.Translate("铜金属重构装置"); val7.Description = "接收重构装置描述"; val7.description = Localization.Translate("接收重构装置描述"); val7.GridIndex = 9902 + num; val7.HeatValue = 0L; val7.prefabDesc = MethedEx.Copy(val2.prefabDesc); val7.prefabDesc.powerProductHeat = 6000000L; val7.prefabDesc.powerProductId = 1104; val7.handcraft = val6; val7.handcrafts = new List { val6 }; val7.maincraft = val6; val7.recipes = new List { val6 }; val7.Grade = 3; val7.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val7).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCopper); RecipeProto val8 = MethedEx.Copy(val); ItemProto val9 = MethedEx.Copy(val2); ((Proto)val8).ID = num2 + 545; ((Proto)val8).Name = "高纯硅重构装置"; ((Proto)val8).name = Localization.Translate("高纯硅重构装置"); val8.Description = "接收重构装置描述"; val8.description = Localization.Translate("接收重构装置描述"); val8.Items = new int[4] { 1103, 1404, 1303, 9481 }; val8.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val8.Items = new int[4] { 1103, 1014, 1303, 9481 }; val8.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val8.Results = new int[1] { 9495 }; val8.ResultCounts = new int[1] { 1 }; val8.GridIndex = 9903 + num; val8.TimeSpend = 480; Traverse.Create((object)val8).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverSilicon); val8.preTech = null; if (MoreMegaStructure.isBattleActive) { val8.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val9).ID = 9495; ((Proto)val9).Name = "高纯硅重构装置"; ((Proto)val9).name = Localization.Translate("高纯硅重构装置"); val9.Description = "接收重构装置描述"; val9.description = Localization.Translate("接收重构装置描述"); val9.GridIndex = 9903 + num; val9.HeatValue = 0L; val9.prefabDesc = MethedEx.Copy(val2.prefabDesc); val9.prefabDesc.powerProductHeat = 6000000L; val9.prefabDesc.powerProductId = 1105; val9.handcraft = val8; val9.handcrafts = new List { val8 }; val9.maincraft = val8; val9.recipes = new List { val8 }; val9.Grade = 4; val9.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val9).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverSilicon); RecipeProto val10 = MethedEx.Copy(val); ItemProto val11 = MethedEx.Copy(val2); ((Proto)val10).ID = num2 + 546; ((Proto)val10).Name = "钛金属重构装置"; ((Proto)val10).name = Localization.Translate("钛金属重构装置"); val10.Description = "接收重构装置描述"; val10.description = Localization.Translate("接收重构装置描述"); val10.Items = new int[4] { 1103, 1404, 1303, 9481 }; val10.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val10.Items = new int[4] { 1103, 1014, 1303, 9481 }; val10.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val10.Results = new int[1] { 9496 }; val10.ResultCounts = new int[1] { 1 }; val10.GridIndex = 9904 + num; val10.TimeSpend = 480; Traverse.Create((object)val10).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverTitanium); val10.preTech = null; if (MoreMegaStructure.isBattleActive) { val10.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val11).ID = 9496; ((Proto)val11).Name = "钛金属重构装置"; ((Proto)val11).name = Localization.Translate("钛金属重构装置"); val11.Description = "接收重构装置描述"; val11.description = Localization.Translate("接收重构装置描述"); val11.GridIndex = 9904 + num; val11.HeatValue = 0L; val11.prefabDesc = MethedEx.Copy(val2.prefabDesc); val11.prefabDesc.powerProductHeat = 6000000L; val11.prefabDesc.powerProductId = 1106; val11.handcraft = val10; val11.handcrafts = new List { val10 }; val11.maincraft = val10; val11.recipes = new List { val10 }; val11.Grade = 5; val11.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val11).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverTitanium); RecipeProto val12 = MethedEx.Copy(val); ItemProto val13 = MethedEx.Copy(val2); ((Proto)val12).ID = num2 + 547; ((Proto)val12).Name = "单极磁石重构装置"; ((Proto)val12).name = Localization.Translate("单极磁石重构装置"); val12.Description = "接收重构装置描述"; val12.description = Localization.Translate("接收重构装置描述"); val12.Items = new int[4] { 1103, 1404, 1303, 9481 }; val12.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val12.Items = new int[4] { 1103, 1014, 1303, 9481 }; val12.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val12.Results = new int[1] { 9497 }; val12.ResultCounts = new int[1] { 1 }; val12.GridIndex = 9905 + num; val12.TimeSpend = 480; Traverse.Create((object)val12).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverMagore); val12.preTech = null; if (MoreMegaStructure.isBattleActive) { val12.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val13).ID = 9497; ((Proto)val13).Name = "单极磁石重构装置"; ((Proto)val13).name = Localization.Translate("单极磁石重构装置"); val13.Description = "接收重构装置描述"; val13.description = Localization.Translate("接收重构装置描述"); val13.GridIndex = 9905 + num; val13.HeatValue = 0L; val13.prefabDesc = MethedEx.Copy(val2.prefabDesc); val13.prefabDesc.powerProductHeat = 6000000L; val13.prefabDesc.powerProductId = 1016; val13.handcraft = val12; val13.handcrafts = new List { val12 }; val13.maincraft = val12; val13.recipes = new List { val12 }; val13.Grade = 6; val13.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val13).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverMagore); RecipeProto val14 = MethedEx.Copy(val); ItemProto val15 = MethedEx.Copy(val2); ((Proto)val14).ID = num2 + 563; ((Proto)val14).Name = "石墨提炼装置"; ((Proto)val14).name = Localization.Translate("石墨提炼装置"); val14.Description = "接收重构装置描述"; val14.description = Localization.Translate("接收重构装置描述"); val14.Items = new int[4] { 1103, 1404, 1303, 9481 }; val14.ItemCounts = new int[4] { 20, 10, 5, 2 }; if (MoreMegaStructure.GenesisCompatibility) { val14.Items = new int[4] { 1103, 1014, 1303, 9481 }; val14.ItemCounts = new int[4] { 20, 20, 5, 2 }; } val14.Results = new int[1] { 9501 }; val14.ResultCounts = new int[1] { 1 }; val14.GridIndex = 9906 + num; val14.TimeSpend = 480; Traverse.Create((object)val14).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCoal); val14.preTech = null; if (MoreMegaStructure.isBattleActive) { val14.preTech = ((ProtoSet)(object)LDB.techs).Select(1920); } ((Proto)val15).ID = 9501; ((Proto)val15).Name = "石墨提炼装置"; ((Proto)val15).name = Localization.Translate("石墨提炼装置"); val15.Description = "接收重构装置描述"; val15.description = Localization.Translate("接收重构装置描述"); val15.GridIndex = 9906 + num; val15.HeatValue = 0L; val15.prefabDesc = MethedEx.Copy(val2.prefabDesc); val15.prefabDesc.powerProductHeat = 12000000L; val15.prefabDesc.powerProductId = 1109; val15.handcraft = val14; val15.handcrafts = new List { val14 }; val15.maincraft = val14; val15.recipes = new List { val14 }; val15.Grade = 7; val15.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val15).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCoal); RecipeProto val16 = MethedEx.Copy(val); ItemProto val17 = MethedEx.Copy(val2); ((Proto)val16).ID = num2 + 548; ((Proto)val16).Name = "晶体接收器"; ((Proto)val16).name = Localization.Translate("晶体接收器"); val16.Description = "晶体接收器描述"; val16.description = Localization.Translate("晶体接收器描述"); val16.Items = new int[4] { 1107, 1404, 1303, 1206 }; val16.ItemCounts = new int[4] { 10, 10, 5, 5 }; if (MoreMegaStructure.GenesisCompatibility) { val16.Items = new int[3] { 1107, 1014, 1303 }; val16.ItemCounts = new int[3] { 10, 20, 10 }; } val16.Results = new int[1] { 9498 }; val16.ResultCounts = new int[1] { 1 }; val16.GridIndex = 9907 + num; val16.TimeSpend = 480; Traverse.Create((object)val16).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCasimir); val16.preTech = null; if (MoreMegaStructure.isBattleActive) { val16.preTech = ((ProtoSet)(object)LDB.techs).Select(1923); } ((Proto)val17).ID = 9498; ((Proto)val17).Name = "晶体接收器"; ((Proto)val17).name = Localization.Translate("晶体接收器"); val17.Description = "晶体接收器描述"; val17.description = Localization.Translate("晶体接收器描述"); val17.GridIndex = 9907 + num; val17.HeatValue = 0L; val17.prefabDesc = MethedEx.Copy(val2.prefabDesc); val17.prefabDesc.powerProductHeat = 120000000L; val17.prefabDesc.powerProductId = 1126; val17.handcraft = val16; val17.handcrafts = new List { val16 }; val17.maincraft = val16; val17.recipes = new List { val16 }; val17.Grade = 8; val17.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val17).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverCasimir); RecipeProto val18 = MethedEx.Copy(val); ItemProto val19 = MethedEx.Copy(val2); ((Proto)val18).ID = num2 + 564; ((Proto)val18).Name = "光栅晶体接收器"; ((Proto)val18).name = Localization.Translate("光栅晶体接收器"); val18.Description = "晶体接收器描述"; val18.description = Localization.Translate("晶体接收器描述"); val18.Items = new int[4] { 1107, 1404, 1303, 1206 }; val18.ItemCounts = new int[4] { 10, 10, 5, 5 }; if (MoreMegaStructure.GenesisCompatibility) { val18.Items = new int[3] { 1107, 1014, 1303 }; val18.ItemCounts = new int[3] { 10, 20, 10 }; } val18.Results = new int[1] { 9502 }; val18.ResultCounts = new int[1] { 1 }; val18.GridIndex = 9908 + num; val18.TimeSpend = 480; Traverse.Create((object)val18).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverGrating); val18.preTech = null; if (MoreMegaStructure.isBattleActive) { val18.preTech = ((ProtoSet)(object)LDB.techs).Select(1923); } ((Proto)val19).ID = 9502; ((Proto)val19).Name = "光栅晶体接收器"; ((Proto)val19).name = Localization.Translate("光栅晶体接收器"); val19.Description = "晶体接收器描述"; val19.description = Localization.Translate("晶体接收器描述"); val19.GridIndex = 9908 + num; val19.HeatValue = 0L; val19.prefabDesc = MethedEx.Copy(val2.prefabDesc); val19.prefabDesc.powerProductHeat = 12000000L; val19.prefabDesc.powerProductId = 1014; val19.handcraft = val18; val19.handcrafts = new List { val18 }; val19.maincraft = val18; val19.recipes = new List { val18 }; val19.Grade = 9; val19.Upgrades = new int[9] { 2208, 9493, 9494, 9495, 9496, 9497, 9501, 9498, 9502 }; Traverse.Create((object)val19).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverGrating); RecipeProto val20 = MethedEx.Copy(val); ItemProto val21 = MethedEx.Copy(val2); ((Proto)val20).ID = num2 + 549; ((Proto)val20).Name = "组件集成装置"; ((Proto)val20).name = Localization.Translate("组件集成装置"); val20.Description = "组件集成装置描述"; val20.description = Localization.Translate("组件集成装置描述"); val20.Items = new int[4] { 1125, 1404, 1303, 1206 }; val20.ItemCounts = new int[4] { 10, 10, 5, 5 }; if (MoreMegaStructure.GenesisCompatibility) { val20.Items = new int[3] { 1125, 1014, 1303 }; val20.ItemCounts = new int[3] { 10, 20, 10 }; } val20.Results = new int[1] { 9499 }; val20.ResultCounts = new int[1] { 1 }; val20.GridIndex = 9902 + num; val20.TimeSpend = 480; Traverse.Create((object)val20).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverIC); val20.preTech = null; if (MoreMegaStructure.isBattleActive) { val20.preTech = ((ProtoSet)(object)LDB.techs).Select(1922); } if (MoreMegaStructure.GenesisCompatibility) { val20.preTech = ((ProtoSet)(object)LDB.techs).Select(1504); } ((Proto)val21).ID = 9499; ((Proto)val21).Name = "组件集成装置"; ((Proto)val21).name = Localization.Translate("组件集成装置"); val21.Description = "组件集成装置描述"; val21.description = Localization.Translate("组件集成装置描述"); val21.GridIndex = 9902 + num; val21.HeatValue = 0L; val21.prefabDesc = MethedEx.Copy(val2.prefabDesc); val21.prefabDesc.powerProductHeat = MoreMegaStructure.multifunctionComponentHeat; val21.prefabDesc.powerProductId = 9500; val21.handcraft = val20; val21.handcrafts = new List { val20 }; val21.maincraft = val20; val21.recipes = new List { val20 }; Traverse.Create((object)val21).Field("_iconSprite").SetValue((object)MoreMegaStructure.iconReceiverIC); ItemProto val22 = MethedEx.Copy(val3); ((Proto)val22).ID = 9512; ((Proto)val22).Name = "物资交换器"; ((Proto)val22).name = Localization.Translate("物资交换器"); val22.Description = "物资交换器描述"; val22.description = Localization.Translate("物资交换器描述"); val22.GridIndex = 309 + num; val22.HeatValue = 0L; val22.prefabDesc = MethedEx.Copy(val3.prefabDesc); val22.BuildIndex = 609; LDBTool.PreAddProto((Proto)(object)val22); Traverse.Create((object)val22).Field("_iconSprite").SetValue((object)Resources.Load("Assets/MegaStructureTab/exchangeLS")); RecipeProto val23 = (val22.handcraft = ((!MoreMegaStructure.isBattleActive) ? ProtoRegistry.RegisterRecipe(575 + num2, (ERecipeType)4, 480, new int[2] { 2104, 2208 }, new int[2] { 1, 1 }, new int[1] { 9512 }, new int[1] { 1 }, "物资交换器描述", 1504, 309 + num, "物资交换器", "Assets/MegaStructureTab/exchangeLS") : ProtoRegistry.RegisterRecipe(575 + num2, (ERecipeType)4, 480, new int[2] { 2104, 2208 }, new int[2] { 1, 1 }, new int[1] { 9512 }, new int[1] { 1 }, "物资交换器描述", 1922, 309 + num, "物资交换器", "Assets/MegaStructureTab/exchangeLS"))); val22.handcrafts = new List { val23 }; val22.maincraft = val23; val22.recipes = new List { val23 }; LDBTool.SetBuildBar(6, 9, 9512); LDBTool.PostAddProto((Proto)(object)val5); LDBTool.PostAddProto((Proto)(object)val4); LDBTool.PostAddProto((Proto)(object)val7); LDBTool.PostAddProto((Proto)(object)val6); LDBTool.PostAddProto((Proto)(object)val9); LDBTool.PostAddProto((Proto)(object)val8); LDBTool.PostAddProto((Proto)(object)val11); LDBTool.PostAddProto((Proto)(object)val10); LDBTool.PostAddProto((Proto)(object)val13); LDBTool.PostAddProto((Proto)(object)val12); LDBTool.PostAddProto((Proto)(object)val17); LDBTool.PostAddProto((Proto)(object)val16); LDBTool.PostAddProto((Proto)(object)val21); LDBTool.PostAddProto((Proto)(object)val20); LDBTool.PostAddProto((Proto)(object)val15); LDBTool.PostAddProto((Proto)(object)val14); LDBTool.PostAddProto((Proto)(object)val19); LDBTool.PostAddProto((Proto)(object)val18); } public static void AddTranslateUILabel() { StringProto stringProto = new StringProto(); stringProto.Name = "巨构建筑"; stringProto.ZHCN = "巨构建筑"; stringProto.ENUS = "Megastructure"; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "规划巨构建筑类型"; stringProto2.ZHCN = "规划巨构建筑类型"; stringProto2.ENUS = "Plan Megastructure"; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "自由组件"; stringProto3.ZHCN = "自由组件"; stringProto3.ENUS = "Floating components "; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "工作效率"; stringProto4.ZHCN = "工作效率"; stringProto4.ENUS = "Capacity"; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "自由组件数量"; stringProto5.ZHCN = "自由组件数量"; stringProto5.ENUS = "Floating components in total"; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "自由组件云"; stringProto6.ZHCN = "自由组件云"; stringProto6.ENUS = "Components Swarm"; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "组件云蓝图"; stringProto7.ZHCN = "组件云蓝图"; stringProto7.ENUS = "Swarm Blueprint"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "锚定结构"; stringProto8.ZHCN = "锚定结构"; stringProto8.ENUS = "Anchored Structure"; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "结构层级"; stringProto9.ZHCN = "结构层级"; stringProto9.ENUS = "Structure Layers"; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "锚定结构蓝图"; stringProto10.ZHCN = "锚定结构蓝图"; stringProto10.ENUS = "Anchored Structure Blueprint"; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "恒星功效系数"; stringProto11.ZHCN = "恒星功效系数"; stringProto11.ENUS = "Star Efficiency"; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "最大工作效率"; stringProto12.ZHCN = "最大工作效率"; stringProto12.ENUS = "Capacity"; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "巨构建筑蓝图"; stringProto13.ZHCN = "巨构建筑蓝图"; stringProto13.ENUS = "Structure Blueprint"; stringProto13.RegisterTranslation(); StringProto stringProto14 = new StringProto(); stringProto14.Name = "自由组件寿命分布"; stringProto14.ZHCN = "自由组件寿命分布"; stringProto14.ENUS = "Life Distribution of Floating Components"; stringProto14.RegisterTranslation(); StringProto stringProto15 = new StringProto(); stringProto15.Name = "自由组件状态统计"; stringProto15.ZHCN = "自由组件状态统计"; stringProto15.ENUS = "Floating Components Status Statistics"; stringProto15.RegisterTranslation(); StringProto stringProto16 = new StringProto(); stringProto16.Name = "自由组件工作效率"; stringProto16.ZHCN = "自由组件工作效率"; stringProto16.ENUS = "Generation of Floating Components"; stringProto16.RegisterTranslation(); StringProto stringProto17 = new StringProto(); stringProto17.Name = "锚定结构工作效率"; stringProto17.ZHCN = "锚定结构工作效率"; stringProto17.ENUS = "Generation of Anchored Structure"; stringProto17.RegisterTranslation(); StringProto stringProto18 = new StringProto(); stringProto18.Name = "研究效率"; stringProto18.ZHCN = "研究效率"; stringProto18.ENUS = "Research Capacity"; stringProto18.RegisterTranslation(); StringProto stringProto19 = new StringProto(); stringProto19.Name = "折跃场加速"; stringProto19.ZHCN = "折跃场加速"; stringProto19.ENUS = "Warp Acceleration"; stringProto19.RegisterTranslation(); } public static void AddTranslateStructureName() { StringProto stringProto = new StringProto(); stringProto.Name = "规划"; stringProto.ZHCN = "规划"; stringProto.ENUS = "Plan "; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "戴森球jinx"; stringProto2.ZHCN = "戴森球"; stringProto2.ENUS = "Dyson Sphere"; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "物质解压器"; stringProto3.ZHCN = "物质解压器"; stringProto3.ENUS = "Matter Decompressor"; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "科学枢纽"; stringProto4.ZHCN = "科学枢纽"; stringProto4.ENUS = "Science Nexus"; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "折跃场广播阵列"; stringProto5.ZHCN = "折跃场广播阵列"; stringProto5.ENUS = "Warp Field Broadcast Array"; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "星际组装厂"; stringProto6.ZHCN = "星际组装厂"; stringProto6.ENUS = "Interstellar Assembly"; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "晶体重构器"; stringProto7.ZHCN = "晶体重构器"; stringProto7.ENUS = "Crystal Reconstructor"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "警告最多一个"; stringProto8.ZHCN = "折跃场广播阵列最多建造一个,请检查星系:"; stringProto8.ENUS = "You can only build one Wrapfield broadcast array, please check:"; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "警告先拆除"; stringProto9.ZHCN = "你必须先拆除所有锚定结构(节点)再规划不同的巨构建筑。"; stringProto9.ENUS = "You have to remove all anchor structures (nodes) before planning different megastructures."; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "警告仅黑洞"; stringProto10.ZHCN = "物质解压器只能在黑洞上建造。"; stringProto10.ENUS = "Matter decompressors can only be built on black holes."; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "警告仅中子星白矮星"; stringProto11.ZHCN = "晶体重构器只能在中子星或白矮星上建造。"; stringProto11.ENUS = "Crystal reconstructors can only be built on neutron stars or white drawf."; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "当前"; stringProto12.ZHCN = "当前"; stringProto12.ENUS = "Currently"; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "警告未知错误"; stringProto13.ZHCN = "设置异常失败,请像mod作者反馈该问题。"; stringProto13.ENUS = "The setting fails abnormally, please report this problem."; stringProto13.RegisterTranslation(); StringProto stringProto14 = new StringProto(); stringProto14.Name = "MegaStructures"; stringProto14.ZHCN = "巨构"; stringProto14.ENUS = "Megastructures"; stringProto14.RegisterTranslation(); StringProto stringProto15 = new StringProto(); stringProto15.Name = "物质合成"; stringProto15.ZHCN = "物质合成"; stringProto15.ENUS = "Substance Generation"; stringProto15.RegisterTranslation(); StringProto stringProto16 = new StringProto(); stringProto16.Name = "原矿模式"; stringProto16.ZHCN = "原矿输出"; stringProto16.ENUS = "Ore Generation"; stringProto16.RegisterTranslation(); StringProto stringProto17 = new StringProto(); stringProto17.Name = "原矿模式提示"; stringProto17.ZHCN = "在原矿输出模式下,产物将直接重构为原矿。"; stringProto17.ENUS = "In Ore Generation mode, the receiver will receive product delivered by the megastructure and directly convert it into the raw ore."; stringProto17.RegisterTranslation(); StringProto stringProto18 = new StringProto(); stringProto18.Name = "恒星炮"; stringProto18.ZHCN = "恒星炮"; stringProto18.ENUS = "Star cannon"; stringProto18.RegisterTranslation(); StringProto stringProto19 = new StringProto(); stringProto19.Name = "警告最多一个恒星炮"; stringProto19.ZHCN = "恒星炮最多建造一个,请检查星系:"; stringProto19.ENUS = "You can only build one Star cannon, please check:"; stringProto19.RegisterTranslation(); } public static void AddTranslateProtoNames1() { StringProto stringProto = new StringProto(); stringProto.Name = "引力发生装置"; stringProto.ZHCN = "引力发生装置"; stringProto.ENUS = "Gravity generator"; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "引力发生装置描述"; stringProto2.ZHCN = "引导临界光子轰击奇异物质即可激发引力波。恒星附近能够获取大量的临界光子,从而能够使引力发生装置高效地运行。"; stringProto2.ENUS = "Gravitational waves can be excited by directing critical photons to hit strange matter. A large number of critical photons can be obtained near the star, allowing the gravitational generator to operate efficiently."; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "位面约束环"; stringProto3.ZHCN = "位面约束环"; stringProto3.ENUS = "Plane constraint ring"; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "位面约束环描述"; stringProto4.ZHCN = "位面约束环能够协同引力透镜引导并操纵引力,也是构建科学枢纽所需的恒星级粒子加速器的必要组件。"; stringProto4.ENUS = "Plane constraint ring can guide and manipulate gravity with graviton lens, and it is also an essential component of the stellar-scale particle accelerators which are needed to build science nexus."; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "引力钻头"; stringProto5.ZHCN = "引力钻头"; stringProto5.ENUS = "Graviton drill"; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "引力钻头描述"; stringProto6.ZHCN = "借助黑洞本身的引力,引力钻头能够将物质从黑洞中取出,这还包括吸积盘中大量的单极磁石。借助谐振盘,黑洞原质将能够被解压并在星系内输送。"; stringProto6.ENUS = "The graviton drill can pull matter out of the black hole using the gravity of the black hole itself, which also includes the unipolar magnets in the accretion disk. With the help of the resonant disc, the matter from the black hole will be able to be decompressed and transported within the galaxy."; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "隧穿激发装置"; stringProto7.ZHCN = "隧穿激发装置"; stringProto7.ENUS = "Tunneling exciter"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "隧穿激发装置描述"; stringProto8.ZHCN = "隧穿激发装置可以完美地掌控量子隧穿效应,常被用来强化量子芯片的处理能力和纠错能力。通过量子隧穿效应还能够轻易突破弯曲空间的能量势垒,使得在任意远的空间打开裂口成为可能。"; stringProto8.ENUS = "Tunneling exciters can perfectly control the quantum tunneling effect, and are often used to enhance the processing and error correction capabilities of quantum chips. The quantum tunneling effect can also easily break through the energy barrier of the curved space, making it possible to open the warp crack in any space far away."; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "谐振盘"; stringProto9.ZHCN = "谐振盘"; stringProto9.ENUS = "Resonant disc"; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "谐振盘描述"; stringProto10.ZHCN = "谐振盘仅通过恒星级别的能量就可以产生跨越恒星系的空间波动能量束。如果将谐振盘组成阵列,理论上可以形成覆盖全宇宙的折跃能量场。"; stringProto10.ENUS = "The resonant disc can generate interstellar-scale space-wave energy beams from only stellar-scale energy. If the resonant discs are formed into an array, a warp field covering the entire universe can theoretically be formed."; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "光子探针"; stringProto11.ZHCN = "光子探针"; stringProto11.ENUS = "Photon probe"; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "光子探针描述"; stringProto12.ZHCN = "将临界光子变频后发射并引导晶体重构,发射的光子还能被回收。"; stringProto12.ENUS = "The critical photons are frequency-converted and emitted, thereby guiding the crystal reconstruction. The photons can also be recovered."; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "量子计算机"; stringProto13.ZHCN = "量子计算机"; stringProto13.ENUS = "Quantum computer"; stringProto13.RegisterTranslation(); StringProto stringProto14 = new StringProto(); stringProto14.Name = "量子计算机描述"; stringProto14.ZHCN = "只要供给足够的能量,量子计算机的运算时钟能够无限逼近普朗克时间。通过量子比特协同,其潜在的单线程运算速率还能突破物理极限,并可以无限提升。现在,限制其计算速度的将只有能量输入水平。"; stringProto14.ENUS = "As long as enough energy is supplied, the computing clock of a quantum computer can approach Planck time indefinitely. Through the cooperation of qubits, its potential single-threaded operation rate can also break through the physical limit and can be infinitely improved. Now, it will only be the level of energy input that will limit its computational speed."; stringProto14.RegisterTranslation(); StringProto stringProto15 = new StringProto(); stringProto15.Name = "星际组装厂组件"; stringProto15.ZHCN = "星际组装厂组件"; stringProto15.ENUS = "Interstellar assembly component"; stringProto15.RegisterTranslation(); StringProto stringProto16 = new StringProto(); stringProto16.Name = "星际组装厂组件描述"; stringProto16.ZHCN = "使用微型火箭将组件运载到恒星附近并构建星际组装厂的节点和框架。"; stringProto16.ENUS = "Use a small carrier rocket to the planned Interstellar assembly to form the nodes and frames of Interstellar assembly."; stringProto16.RegisterTranslation(); StringProto stringProto17 = new StringProto(); stringProto17.Name = "物质解压器运载火箭"; stringProto17.ZHCN = "物质解压器运载火箭"; stringProto17.ENUS = "Matter decompressor carrier rocket"; stringProto17.RegisterTranslation(); StringProto stringProto18 = new StringProto(); stringProto18.Name = "物质解压器运载火箭描述"; stringProto18.ZHCN = "物质解压器相关组件的运载工具。"; stringProto18.ENUS = "The delivery vehicle for the components of the Matter decompressor."; stringProto18.RegisterTranslation(); StringProto stringProto19 = new StringProto(); stringProto19.Name = "科学枢纽运载火箭"; stringProto19.ZHCN = "科学枢纽运载火箭"; stringProto19.ENUS = "Science nexus carrier rocket"; stringProto19.RegisterTranslation(); StringProto stringProto20 = new StringProto(); stringProto20.Name = "科学枢纽运载火箭描述"; stringProto20.ZHCN = "科学枢纽相关组件的运载工具。"; stringProto20.ENUS = "The delivery vehicle for the components of the Science nexus."; stringProto20.RegisterTranslation(); } public static void AddTranslateProtoNames2() { StringProto stringProto = new StringProto(); stringProto.Name = "谐振发射器运载火箭"; stringProto.ZHCN = "谐振发射器运载火箭"; stringProto.ENUS = "Resonant generator carrier rocket"; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "谐振发射器运载火箭描述"; stringProto2.ZHCN = "大量谐振发射器将组成阵列并向全星系广播折跃能量场。"; stringProto2.ENUS = "A large number of resonant generators will form an array and broadcast the warp energy field to the entire galaxy."; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "星际组装厂运载火箭"; stringProto3.ZHCN = "星际组装厂运载火箭"; stringProto3.ENUS = "Interstellar assembly carrier rocket"; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "星际组装厂运载火箭描述"; stringProto4.ZHCN = "星际组装厂组件的运载工具。"; stringProto4.ENUS = "The delivery vehicle of Interstellar assembly components."; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "晶体重构器运载火箭"; stringProto5.ZHCN = "晶体重构器运载火箭"; stringProto5.ENUS = "Crystal reconstructor carrier rocket"; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "晶体重构器运载火箭描述"; stringProto6.ZHCN = "晶体重构器相关组件的运载工具。"; stringProto6.ENUS = "The delivery vehicle for the components of the Crystal reconstructor."; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "铁金属重构装置"; stringProto7.ZHCN = "铁金属重构装置"; stringProto7.ENUS = "Iron reconstruct receiver"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "铜金属重构装置"; stringProto8.ZHCN = "铜金属重构装置"; stringProto8.ENUS = "Copper reconstruct receiver"; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "高纯硅重构装置"; stringProto9.ZHCN = "高纯硅重构装置"; stringProto9.ENUS = "Silicon reconstruct receiver"; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "钛金属重构装置"; stringProto10.ZHCN = "钛金属重构装置"; stringProto10.ENUS = "Titanium reconstruct receiver"; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "单极磁石重构装置"; stringProto11.ZHCN = "单极磁石重构装置"; stringProto11.ENUS = "Unipolar magnet receiver"; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "接收重构装置描述"; stringProto12.ZHCN = "从黑洞中解压出的亚稳态物质被接收后经过处理,重构为可直接使用的稳定材料。"; stringProto12.ENUS = "The metastable matter decompressed from the black hole is received, processed, and reconstructed into stable material that can be used directly."; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "晶体接收器"; stringProto13.ZHCN = "晶体接收器"; stringProto13.ENUS = "Crystal receiver"; stringProto13.RegisterTranslation(); StringProto stringProto14 = new StringProto(); stringProto14.Name = "晶体接收器描述"; stringProto14.ZHCN = "从晶体重构器中合成的卡西米尔晶体前导微晶流将在此经过自发β衰变并形成完美的卡西米尔晶体。接收器也可以转而富集该过程的副产物——光栅石。"; stringProto14.ENUS = "The Casimir crystal precursor crystallite flow synthesized from the Crystal reconstructor will undergo spontaneous β decay here and form perfect casimir crystals. The receivers can also in turn enrich for optical grating crystals, the by-product of the process."; stringProto14.RegisterTranslation(); StringProto stringProto15 = new StringProto(); stringProto15.Name = "组件集成装置"; stringProto15.ZHCN = "组件集成装置"; stringProto15.ENUS = "Component integration station"; stringProto15.RegisterTranslation(); StringProto stringProto16 = new StringProto(); stringProto16.Name = "组件集成装置描述"; stringProto16.ZHCN = "将星际组装厂的高集成配件进行预解压,形成可被快速组装的多功能集成组件。"; stringProto16.ENUS = "Pre-decompress the high-integration parts from the Interstellar assembly, to form multi-functional integrated components that can be quickly assembled."; stringProto16.RegisterTranslation(); StringProto stringProto17 = new StringProto(); stringProto17.Name = "多功能集成组件"; stringProto17.ZHCN = "多功能集成组件"; stringProto17.ENUS = "Multi-functional integrated components"; stringProto17.RegisterTranslation(); StringProto stringProto18 = new StringProto(); stringProto18.Name = "多功能集成组件描述"; stringProto18.ZHCN = "超高集成度使其可以迅速地组装成多种生产建筑和物流组件,却仅占用极小的空间。"; stringProto18.ENUS = "The high level of integration makes it possible to quickly assemble a variety of production building and logistics components, while occupying very little space."; stringProto18.RegisterTranslation(); StringProto stringProto19 = new StringProto(); stringProto19.Name = "光栅晶体接收器"; stringProto19.ZHCN = "光栅晶体接收器"; stringProto19.ENUS = "Optical crystal receiver"; stringProto19.RegisterTranslation(); StringProto stringProto20 = new StringProto(); stringProto20.Name = "石墨提炼装置"; stringProto20.ZHCN = "石墨提炼装置"; stringProto20.ENUS = "Graphite extraction receiver"; stringProto20.RegisterTranslation(); } public static void AddTranslateProtoNames3() { StringProto stringProto = new StringProto(); stringProto.Name = "传送带 快速组装"; stringProto.ZHCN = "传送带 快速组装"; stringProto.ENUS = "Conveyor belt - quick assembly"; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "分拣器 快速组装"; stringProto2.ZHCN = "分拣器 快速组装"; stringProto2.ENUS = "Sorter - quick assembly"; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "配电站 快速组装"; stringProto3.ZHCN = "配电站 快速组装"; stringProto3.ENUS = "Substation - quick assembly"; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "制造台 快速组装"; stringProto4.ZHCN = "制造台 快速组装"; stringProto4.ENUS = "Assembling machine - quick assembly"; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "位面熔炉 快速组装"; stringProto5.ZHCN = "位面熔炉 快速组装"; stringProto5.ENUS = "Plane smelter - quick assembly"; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "化工厂 快速组装"; stringProto6.ZHCN = "化工厂 快速组装"; stringProto6.ENUS = "Chemical plant - quick assembly"; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "精炼厂 快速组装"; stringProto7.ZHCN = "精炼厂 快速组装"; stringProto7.ENUS = "Refinery - quick assembly"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "对撞机 快速组装"; stringProto8.ZHCN = "对撞机 快速组装"; stringProto8.ENUS = "Collider - quick assembly"; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "研究站 快速组装"; stringProto9.ZHCN = "研究站 快速组装"; stringProto9.ENUS = "Lab - quick assembly"; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "人造恒星 快速组装"; stringProto10.ZHCN = "人造恒星 快速组装"; stringProto10.ENUS = "Artificial star - quick assembly"; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "行星内物流 快速组装"; stringProto11.ZHCN = "行星内物流 快速组装"; stringProto11.ENUS = "Planetary logistics - quick assembly"; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "星际物流 快速组装"; stringProto12.ZHCN = "星际物流 快速组装"; stringProto12.ENUS = "Interstellar logistics - quick assembly"; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "快速组装描述"; stringProto13.ZHCN = "使用多功能集成组件快速递组装成目标物品。"; stringProto13.ENUS = "Quickly assemble target items using multi-functional integrated components."; stringProto13.RegisterTranslation(); } public static void AddTranslateProtoNames4() { LocalizationModule.RegisterTranslation("每秒伤害gm", "Base Damage", "基础伤害", ""); LocalizationModule.RegisterTranslation("最大生产速度gm", "Production speed", "生产速度", ""); LocalizationModule.RegisterTranslation("阶段", "stage", "阶段", ""); LocalizationModule.RegisterTranslation("连续开火次数", "Aim targets", "射击目标数", ""); LocalizationModule.RegisterTranslation("最大射程", "Maximum fire range", "最大射程", ""); LocalizationModule.RegisterTranslation("伤害削减", "Damage reduction", "伤害削减", ""); LocalizationModule.RegisterTranslation("当前能量水平", "Current capacity", "当前能量水平", ""); LocalizationModule.RegisterTranslation("请拆除接收站", "Please remove all receivers", "请拆除本星系的接收站", ""); LocalizationModule.RegisterTranslation("下一阶段所需能量水平", "Next stage required capacity", "下一阶段所需能量水平", ""); LocalizationModule.RegisterTranslation("冷却及充能时间", "Charge duration", "充能时间", ""); LocalizationModule.RegisterTranslation("修建进度", "\nProgress to\nnext stage", "修建进度", ""); LocalizationModule.RegisterTranslation("最终阶段", "Final stage", "最终阶段", ""); LocalizationModule.RegisterTranslation("节点总数(已规划)gm", "Nodes in total(Planned)", "节点总数(已规划)", ""); LocalizationModule.RegisterTranslation("请求功率gm", "Requested power", "请求功率", ""); LocalizationModule.RegisterTranslation("无限制gm", "Infinite", "无限制", ""); LocalizationModule.RegisterTranslation("警告巨构科技未解锁", "You must unlock the Mission complete technology to unlock the science nexus", "你必须先解锁通关游戏才能解锁科学枢纽", ""); LocalizationModule.RegisterTranslation("游戏提示mms", "Message", "游戏提示", ""); LocalizationModule.RegisterTranslation("力场发生器", "Force field generator", "力场发生器", ""); LocalizationModule.RegisterTranslation("力场发生器描述", "With the help of the gravity generator, the force field generator can multiply the gravitational force in a fixed resonance field and give it a highly controllable directivity. If the energy supply is sufficient, the force field generator is able to deflects or even reverses the direction of the force field, making it possible to encode the resonant frequency of the force field.", "借助引力发生装置,力场发生器可以将引力在固定的谐振场域成倍放大,并赋予其高度可控的指向性。如果能量供应足够,力场发生器快速偏折甚至掉转力场方向,这使得对力场谐振频率进行编码成为可能。", ""); LocalizationModule.RegisterTranslation("复合态晶体", "Compound cyrstal", "复合态晶体", ""); LocalizationModule.RegisterTranslation("复合态晶体描述", "This single-molecule crystal has a normal density like ordinary matter, but can be reshaped into a material with extremely high hardness under the constraints of strong interaction force, so this material is also called strong interaction material (SIM).", "这种单分子晶体像普通物质一样拥有正常的密度,但能够在强相互作用力的束缚下,被重塑为硬度极高的物质,因此这种物质又被称为强相互作用力材料(SIM)。", ""); LocalizationModule.RegisterTranslation("电磁力抑制器", "Electromagnetic force suppressor", "电磁力抑制器", ""); LocalizationModule.RegisterTranslation("电磁力抑制器描述", "By eliminating the electromagnetic force between atomic nucleus, it allows the range of the strong interaction force to overflow the nucleus and expand to atom scope, providing the conditions for precise control of the strong interaction force. The suppressed electromagnetic force can also be redirected to create a vacuum Valsex field vortex ring.", "通过消除原子核之间的电磁力,允许强相互作用力的范围溢出原子核,并扩展到原子大小,为精确控制强力提供了条件。被抑制的电磁力还可以被引导至特定方向用以产生真空瓦尔塞克斯电场涡环。", ""); LocalizationModule.RegisterTranslation("胶子发生器", "Gluon generator", "胶子发生器", ""); LocalizationModule.RegisterTranslation("胶子发生器描述", "Generate controllable gluons to limit or expand the strength and scope of the strong interaction. The gluon generator must be controlled by quantum computers, so as to precisely control the arrangement of atoms on the quantum scale.", "产生可控胶子,以此限制或扩大强相互作用力的强度和作用范围。胶子发生器必须在量子计算机的协助下才能提高控制的精准程度,从而在量子尺度上精确控制原子排布。", ""); LocalizationModule.RegisterTranslation("强力过载装置", "Strong interaction overload device", "强力过载装置", ""); LocalizationModule.RegisterTranslation("强力过载装置描述", "The SIO device can make the repulsive and the attractive force peak to coincide precisely at a specific point, so that any deviation of the nucleus will be pulled back by the strong interaction force. If electromagnetic interference is removed, the nucleus will be fully anchored.", "强力过载装置可以使强力的排斥力峰值和吸引力峰值在特定的点精准重合,因而原子核的任何偏离都会被强力拉回。如果剔除了电磁力干扰,原子核将被完全锚定。", ""); LocalizationModule.RegisterTranslation("导流框架", "Flow guide frame", "导流框架", ""); LocalizationModule.RegisterTranslation("导流框架描述", "Storing, directing and guiding the energy of stars in a specific direction, creating high power directional energy resonance.", "将恒星的能量存储并引导、集中至特定方向,创造极高功率的定向能量谐振。", ""); LocalizationModule.RegisterTranslation("恒星炮组件", "Star cannon component", "恒星炮组件", ""); LocalizationModule.RegisterTranslation("恒星炮组件描述", "The star cannon can store the energy of the star to stimulate another star's energy surge, guiding its own energy to attack the dark fog. The time for the star cannon to fire is limited, and it needs to be recharged after firing.", "恒星炮能够储存恒星的能量,用以激发另一个恒星的能量涌动,引导其自身的能量攻击其所在星系的黑雾巢穴。恒星炮每次开火的时间有限,开火后需要重新充能。", ""); LocalizationModule.RegisterTranslation("恒星炮运载火箭", "Star cannon carrier rocket", "恒星炮运载火箭", ""); LocalizationModule.RegisterTranslation("恒星炮运载火箭描述", "The delivery vehicle for the components of the Star cannon.", "恒星炮相关组件的运载工具。", ""); LocalizationModule.RegisterTranslation("水滴gm", "Droplet", "水滴", ""); LocalizationModule.RegisterTranslation("水滴描述gm", "Droplets can fight as Icarus' space fleet. It uses extremely solid surface to hit key structures. Precise control of the droplet's propulsion and steering requires powerful remote computing power, as well as a remote supply of Mecha energy to control it. If the launch them manually, they will use 10 times as much energy to attack all enemies in the entire star system, not just those within 1 AU. Although the damage efficiency of the droplet is limited by its attack mode, its structure of strongly interacting materials allows it to withstand unlimited damage. You neet to set the space fleet type to droplet type to use the droplet.", "水滴可以作为伊卡洛斯的空中舰队进行作战,并使用极其坚硬的表面撞击敌人的关键结构。精确地控制水滴的推进和转向需要强大的远端运算能力,且发射水滴和操控也需要机甲能量的远程供给。如果主动发射水滴,其还可以消耗10倍的能量来攻击整个星系内的敌人,而不仅仅是1AU以内的敌人。虽然水滴的输出效率受其攻击方式限制,但其由强相互作用力材料组成的结构可以使其承受无限的伤害。你需要将太空编队的类型设置为水滴编队,以此放入水滴。", ""); LocalizationModule.RegisterTranslation("恒星炮设计说明题目", "Design Instructions", "恒星炮设计说明", ""); LocalizationModule.RegisterTranslation("恒星炮设计说明文本", "1. When the star cannon fires, the rotation axes of all layers will overlap, and the north pole will point to the target, so please design the north pole of each layer's grid as the center of the muzzle;\n2. When the star cannon fires, 12 random nodes on the 1st layer will emit a laser to the muzzle. For aesthetic reasons, please try to make the first layer only contain up to 12 nodes, and try to make them symmetrical to each other;\n3. The construction of the star cannon needs to go through multiple stages. And at the same time, the star cannon can increase its damage, max fire target count, and charging speed several times. After reaching the final stage, continue to build shells will continuously increase the damage;\n4. After built the star cannon, select a star system or a space dark fog hive in starmap mode, then launch the star cannon. Star cannon can NOT fire at its own star system.", "1.恒星炮开火时所有层级的旋转轴将重叠,并且让北极指向目标开火,因此设计时请以各层网格自身的北极点为炮口中心;\n2.恒星炮开火时,第1层的随机12个节点将发射出激光指向炮口,为美观考虑,请尽量使得第1层只包含12个(或更少的)节点,并使其相互对称。\n3.恒星炮建造需要经过多个阶段,随着各建造阶段完成,恒星炮能数次提高伤害、同时射击的目标数和充能速度等属性。在达到最终阶段后,继续修建壳层可以不断提高伤害。\n4.建造恒星炮后,在星图模式中选择一个恒星系或太空黑雾巢穴进行开火。恒星炮无法向自身所在星系开火。", ""); LocalizationModule.RegisterTranslation("恒星炮开火按钮文本", "Launch Star Cannon (R)", " 启动恒星炮 (R)", ""); LocalizationModule.RegisterTranslation("恒星炮开火标题", "Launch Star Cannon", "启动恒星炮", ""); LocalizationModule.RegisterTranslation("恒星炮开火描述", "Attack the space dark fog hive in the selected star system by the Star Cannon.", "使用恒星炮射击该星系内的太空黑雾巢穴。", ""); LocalizationModule.RegisterTranslation("选中黑雾巢穴时的恒星炮开火描述", "Attack the selected dark fog hive in the selected star system by the Star Cannon. Then attack other hives in that star system.", "使用恒星炮向该黑雾巢穴开火,而后继续射击该星系的其他太空黑雾巢穴。", ""); LocalizationModule.RegisterTranslation("优先射击按钮文本", "Prioritize attack (R)", " 优先射击 (R)", ""); LocalizationModule.RegisterTranslation("优先射击标题", "Prioritize attack", "优先射击", ""); LocalizationModule.RegisterTranslation("优先射击描述", "Star Cannon will turn to attack structures of this selected hive immediately.", "恒星炮将立刻开始转而攻击选中的黑雾巢穴结构。", ""); LocalizationModule.RegisterTranslation("恒星炮未规划按钮文本", "Star Cannon not planned", "恒星炮未规划", ""); LocalizationModule.RegisterTranslation("恒星炮建设中按钮文本", "Star Cannon Construction in Progress", "恒星炮建设中", ""); LocalizationModule.RegisterTranslation("恒星炮正在瞄准按钮文本", "Aiming", "瞄准中", ""); LocalizationModule.RegisterTranslation("恒星炮预热中按钮文本", "Guiding", "引导中", ""); LocalizationModule.RegisterTranslation("恒星炮开火中按钮文本", "Firing", "开火中", ""); LocalizationModule.RegisterTranslation("恒星炮冷却中按钮文本", "Cooling down", "冷却中", ""); LocalizationModule.RegisterTranslation("恒星炮充能中按钮文本", "Charging", "充能中", ""); LocalizationModule.RegisterTranslation("恒星炮已就绪", "Star Cannon is Ready", "恒星炮已就绪", ""); LocalizationModule.RegisterTranslation("恒星炮正在瞄准", "Star Cannon Aiming", "恒星炮正在瞄准", ""); LocalizationModule.RegisterTranslation("恒星炮预热中", "Star Cannon Guiding", "恒星炮引导中", ""); LocalizationModule.RegisterTranslation("恒星炮开火中", "Star Cannon Firing", "恒星炮开火中", ""); LocalizationModule.RegisterTranslation("恒星炮冷却中", "Star Cannon Cooling Down", "恒星炮冷却中", ""); LocalizationModule.RegisterTranslation("恒星炮充能中", "Star Cannon Charging", "恒星炮充能中", ""); LocalizationModule.RegisterTranslation("没有规划的恒星炮!", "Star Cannon not planned!", "没有规划的恒星炮!", ""); LocalizationModule.RegisterTranslation("恒星炮尚未规划", "Star Cannon Not Planned", "恒星炮尚未规划", ""); LocalizationModule.RegisterTranslation("恒星炮修建中警告", "Star cannon needs to be built to at least the first stage before it can fire!", "恒星炮需要至少修建至第一阶段才能够开火!", ""); LocalizationModule.RegisterTranslation("恒星炮冷却中警告", "Unable to fire because the star cannon is cooling down.", "恒星炮正在冷却中,无法开火!", ""); LocalizationModule.RegisterTranslation("恒星炮充能中警告", "Unable to fire because the star cannon is charging.", "恒星炮正在充能中,无法开火!", ""); LocalizationModule.RegisterTranslation("目标无法定位警告", "Unable to locate any targets! Please check that you've visited that star system before, and that star system has surviving DF hive.", "无法定位任何目标!请确认至少进入过该星系一次,且该星系有存活的黑雾巢穴。", ""); LocalizationModule.RegisterTranslation("恒星炮不能向自身所在星系开火!", "Star cannon cannot fire at its own star system!", "恒星炮无法向自身所在星系开火!", ""); LocalizationModule.RegisterTranslation("无法更改目标星系警告", "Unable to change the target star system when firing.", "恒星炮正在开火时无法更换目标星系!", ""); LocalizationModule.RegisterTranslation("恒星级武器检测警告", "Star level weapon activation detected!", "检测到恒星级武器启动!", ""); LocalizationModule.RegisterTranslation("尼科尔戴森光束", "Nicoll-Dyson beam", "尼科尔-戴森光束", ""); LocalizationModule.RegisterTranslation("尼科尔戴森光束描述", "Decoding a method to guide stellar energy from dark fog matrix, then use it to attack space dark fog hive.\nAfter built the star cannon, select a star system or a space dark fog hive in starmap mode, then launch the star cannon.\nWarning: This technology has been prohibited by the COSMO Technology Ethics Committee. Please initiate such research manually.", "从黑雾矩阵中解码引导恒星级能量的方法,并利用其攻击太空黑雾巢穴。\n建造恒星炮后,在星图模式中选择一个恒星系或太空黑雾巢穴进行开火。\n警告:该科技的相关技术已被COSMO技术伦理委员会禁用,请手动研究。", ""); LocalizationModule.RegisterTranslation("尼科尔戴森光束结论", "You have unlocked the star cannon.", "你解锁了建造恒星炮的能力。", ""); LocalizationModule.RegisterTranslation("先解锁恒星炮科技警告", "You have to unlocked the Nicoll-Dyson beam tech first.", "你需要先解锁尼科尔-戴森光束的科技。", ""); LocalizationModule.RegisterTranslation("功能说明题目", "Function", "功能", ""); LocalizationModule.RegisterTranslation("物质解压器功能文本", "Produce unipolar magnet and some basic resources such as iron ingot, which can be received by corresponding receivers.", "产出单极磁石和一些基础资源(例如铁块),可被对应的物质重构器接收。", ""); LocalizationModule.RegisterTranslation("科学枢纽功能文本", "Upload hash points for research without requiring any matrix.", "无需矩阵即可上传hash点数进行研究。", ""); LocalizationModule.RegisterTranslation("折跃场广播阵列功能文本", "Create a warp field centered on this megastructure. When any logistics vessels enters the warp field, it will instantly pass through the warp field at a speed of 250 ly/s. In addition, if a interstellar logistics vessel takes off in a warp field, its energy consumption will be reduced.\nThe radius of the warp field and the effect of reducing energy consumption depend on the energy level of the megastructure. But the acceleration effect within the warp field is not affected by the megastructure energy.", "在以巨构为中心的一定半径内创建一个折跃场,任何物流船经过折跃场时,会以250ly/s的速度瞬间穿过折跃场。此外,若星际物流飞船起飞时处在折跃场内,其消耗的能量还会被降低。\n折跃场半径和能耗降低效果取决于巨构能量水平,折跃场内的加速效果不受能量水平影响。", ""); LocalizationModule.RegisterTranslation("星际组装厂功能文本", "You can set up to 15 recipes, this megastructure will automatically obtain materials from the exchange logistic stations on the ground, produce products and transport them back to the ground. The production speed depends on the assignment of energy and the recipe's time cost. And you can use proliferator to get extra products without consuming extra energy, if the recipe allows extra production. In any cases, you can not choose the production speedup mode. Unused energy will automatically produce multi-functional integration components.\nIn addition to receive by the exchange logistic station, components can also be transmitted directly to the mecha (but only 10%efficiency). You can set this function in the mecha panel.", "可设定最多15个配方,从地表的物资交换站获取材料,生产产品并输送回物资交换站,生产速度取决于分配的能量水平。可以将原料喷涂增产剂来获取额外产出(如果配方允许),这不会占用额外能量,也不能切换为生产加速模式。未使用的能量会自动生产多功能集成组件。\n组件除了可以在物资交换站接收,还可以直接远程传输到机甲中(但只有10%效率)。你可以在机甲面板中设置此功能。", ""); LocalizationModule.RegisterTranslation("晶体重构器功能文本", "Produce Casimir crystals and optical grating crystals, which can be received by corresponding receivers.", "产出卡西米尔晶体和光栅石,可被对应的接收器接收。", ""); LocalizationModule.RegisterTranslation("远程折跃多功能组件限制", "Remote receive [Multifunc-Compo] Upper Limit", "远程输送多功能组件限制", ""); LocalizationModule.RegisterTranslation("远程接收关闭gm", "Off", "关闭", ""); LocalizationModule.RegisterTranslation("上限1000", "Max 1000", "上限1000", ""); LocalizationModule.RegisterTranslation("上限2000", "Max 2000", "上限2000", ""); LocalizationModule.RegisterTranslation("组件无限制", "No limit", "无限制", ""); LocalizationModule.RegisterTranslation("已开启优先传输至机甲", "Remote-Teleport To Mecha Enabled", "已开启优先输送至机甲", ""); LocalizationModule.RegisterTranslation("鼠标触碰左侧黄条以规划巨构", "Touch the left bar to plan the megastructure", "鼠标触碰左侧线条以规划巨构", ""); LocalizationModule.RegisterTranslation("物资交换器", "Exchange Logistic Station", "物资交换物流站", ""); LocalizationModule.RegisterTranslation("物资交换器描述", "Exchange Logistic Station can transport materials like Interstellar Logistics Station. In addition, the interstellar assembly also needs this building to obtain raw materials from the ground, or to transport the product to the ground. If the fifth slot is set to proliferator, it will be automatically used to spray the entire exchange station's items. This function only works when its star system has an interstellar assembly.", "物资交换物流站可以像星际物流站一样运输物资,除此之外,星际组装厂还需要此建筑来从地面获取原材料,或将产物输送至地表。如果将第五个栏位设置成增产剂,它将自动被用于喷涂整个交换站的物资。该效果只在该星系是星际组装厂时生效。", ""); LocalizationModule.RegisterTranslation("理论最大速度", "max", "最大", ""); LocalizationModule.RegisterTranslation("可承载速度", "capable", "可承载", ""); LocalizationModule.RegisterTranslation("理想速度", "ideal", "理想速度", ""); LocalizationModule.RegisterTranslation("受限理论最大速度", "(limited) max", "(受限)最大", ""); LocalizationModule.RegisterTranslation("能量分配", "Energy Allocation", "能量分配", ""); LocalizationModule.RegisterTranslation("剩余能量", "Residual Energy", "剩余能量", ""); LocalizationModule.RegisterTranslation("警告巨构不支持恒星系数量大于100个", "Warning! This MegaStructure does not support the galaxy with more than 100 star systems. Please find a star system with StarIndex lower than 100, or try to edit config file to remove this restriction.", "警告!此巨构不支持恒星系数量大于100个!请寻找序号小于100的恒星系,或在config文件中修改设置来解除此限制。", ""); LocalizationModule.RegisterTranslation("警告巨构不支持恒星系数量大于1200个", "Warning! This MegaStructure does not support the galaxy with more than 1200 star systems. Please find another star system with StarIndex lower than 1200", "警告!此巨构不支持恒星系数量大于1200个!请寻找一个序号小于1200的恒星系。", ""); LocalizationModule.RegisterTranslation("警告mms", "Warning", "警告", ""); LocalizationModule.RegisterTranslation("我明白", "Understood", "我明白", ""); LocalizationModule.RegisterTranslation("警告未开启大于1000星系支持", "[MoreMegaStructure]: Warning! You are loading a save which has more than 100 stars, but you\nhaven't enabled the \"Support 1000 Stars\" configuration yet.\nPlease enable that configuration setting in config file \nor please load a save with less than 100 stars.\nOtherwise, errors or mistakes may occur.", "[更多巨构]:警告!你正在加载一个超过100星系的存档,\n但你尚未开启“支持1000星系”的配置项,请在config文件中开启“Support1000Stars”配置项\n或者加载一个少于100星系的存档,\n否则,游戏可能会出现报错或异常问题。", ""); LocalizationModule.RegisterTranslation("警告选择了重复的配方", "Please don't select repeated recipes.", "请不要选择重复的配方。", ""); LocalizationModule.RegisterTranslation("主产物巨构内部仓储", "Internal Storage (Primary Product)", "主产物内部仓储", ""); LocalizationModule.RegisterTranslation("巨构内部仓储", "Internal Storage", "内部仓储", ""); LocalizationModule.RegisterTranslation("显示/隐藏星际组装厂配置", "Show/Hide Star Assembly Recipes", "显示/隐藏 星际组装厂配置", ""); LocalizationModule.RegisterTranslation("配置最大生产速度限制", "Configure production speed limit", "配置生产速度限制", ""); LocalizationModule.RegisterTranslation("最大生产速度限制", "Expected Speed (/min)", "目标生产速度(/min)", ""); LocalizationModule.RegisterTranslation("最大生产速度限制题目", "Expected Speed", "目标生产速度", ""); LocalizationModule.RegisterTranslation("最大生产速度限制描述", "When the energy of the interstellar assembly is sufficient to let all recipes' basic production speed achieve the expected speed, the excess energy will be used to make multifunctional integrated components. When the energy is insufficient, it will allocate energy according to the proportions of the requested speeds of each recipe, keeping their basic production speeds' proportion consistent with the expected speeds' proportion.\nNote that this setting only applies to the basic production speed of the first product, and does not consider the effects of proliferator or specialization. Therefore, the actual production speed may exceed the set value due to proliferator or specialization.", "当星际组装厂的能量足以使得所有配方的基础生产速度达到设定的目标生产速度需求时,多余的能量将被用于制造多功能集成组件。当星际组装厂能量不足时,将按照各配方的速度配比去分配能量,保持他们的基础速度比例与目标生产速度的比例一致。\n注意,此设置仅作用于第一位置产物的基础生产速度,不会考虑增产或特化的影响,因此实际产量可能会由于增产或特化超出设定值。", ""); LocalizationModule.RegisterTranslation("星际组装厂逻辑更新警告", "Due to the updates to the More Megastructure, the energy allocation logic of the interstellar assembly has been changed. Please confirm the speed settings of each recipe in each interstellar assembly to prevent them from shutting down.", "由于更多巨构版本更新,星际组装厂的能量分配逻辑已重构,\n请确认每个星际组装厂的速度设置,以防星际组装厂停摆。", ""); LocalizationModule.RegisterTranslation("加倍所有速度设置", "Double All Expected Spd.", "加倍所有速度设置", ""); LocalizationModule.RegisterTranslation("减半所有速度设置", "Halve All Expected Spd.", "减半所有速度设置", ""); LocalizationModule.RegisterTranslation("有过大数值警告", "The requested speed of recipe {0} is too high to double, please check.", "配方{0}的目标速度过大,无法加倍,请检查。", ""); LocalizationModule.RegisterTranslation("组装厂槽位解锁于", "Locked. Unlock at {0}x speed", "已锁定,解锁于 {0}x 速度", ""); LocalizationModule.RegisterTranslation("星际组装厂槽位未解锁警告", "This slot is locked!", "此栏位尚未解锁!", ""); LocalizationModule.RegisterTranslation("警告巨构不支持此类配方", "Interstellar Assembly is not able to process this recipe.", "星际组装厂无法处理此配方。", ""); LocalizationModule.RegisterTranslation("钨重构装置", "Tungsten Reconstructor", "钨重构装置", ""); LocalizationModule.RegisterTranslation("巨建快速组装描述", "Quickly assemble constructions using multi-functional integrated components", "使用多功能集成组件快速递组装成目标巨建。", ""); LocalizationModule.RegisterTranslation("折跃场半径", "Warp Field Radius", "折跃场半径", ""); LocalizationModule.RegisterTranslation("折跃场内曲速速率", "Warp Speed In Warp Field", "折跃场内曲速速率", ""); LocalizationModule.RegisterTranslation("折跃场内能量消耗", "Energy Cost In Warp Field", "折跃场内能量消耗", ""); LocalizationModule.RegisterTranslation("折跃场已覆盖信息", "Covered By Warp Field From {0}\nLogistic Vessel Energy Consumption -{1:N0}% ", "已被来自{0}的折跃场覆盖\n物流船消耗 -{1:N0}% ", ""); LocalizationModule.RegisterTranslation("折跃场未覆盖信息", "Warp Field Not Covered ", "折跃场未覆盖 ", ""); LocalizationModule.RegisterTranslation("折跃场范围显示", "Warp Field Not Covered ", "折跃场范围显示", ""); LocalizationModule.RegisterTranslation("折跃场范围显示描述", "Click to switch on/off the display of the warp field area in the starmap.", "点击以开启/关闭星图界面的折跃场范围显示。", ""); LocalizationModule.RegisterTranslation("巨构状态", "Mega structure status", "巨构状态", ""); LocalizationModule.RegisterTranslation("巨构类型不符", "type not match", "巨构不符", ""); LocalizationModule.RegisterTranslation("模式错误", "wrong mode", "模式错误", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称0", "Interstellar Assembly Specilization", "星际组装厂 - 特化", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称1", "Stellar Forge", "恒星熔炉", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称2", "Stellar reactor", "恒星反应釜", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称3", "Ring-star Particle Accelerator", "星环粒子加速器", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称4", "Hyper-precision Assembly", "超精密装配厂", ""); LocalizationModule.RegisterTranslation("星际组装厂特化名称5", "Cybrex War Forge", "赛博勒克斯战争工厂", ""); LocalizationModule.RegisterTranslation("特化0介绍标题", "Interstellar Assembly Specilization", "星际组装厂 - 特化", ""); LocalizationModule.RegisterTranslation("特化1介绍标题", "Stellar Forge", "恒星熔炉", ""); LocalizationModule.RegisterTranslation("特化2介绍标题", "Stellar Reactor", "恒星反应釜", ""); LocalizationModule.RegisterTranslation("特化3介绍标题", "Ring-star Particle Accelerator", "星环粒子加速器", ""); LocalizationModule.RegisterTranslation("特化4介绍标题", "Hyper-precision Assembly", "超精密装配厂", ""); LocalizationModule.RegisterTranslation("特化5介绍标题", "Cybrex War Forge", "赛博勒克斯战争工厂", ""); LocalizationModule.RegisterTranslation("特化0介绍内容", "\"Once certain specialization requirements are met, the specialization process of the Interstellar Assembly will begin. After maintaining the requirements for 10-120 minutes, the interstellar Assembly can be converted to this Specialization Mode. The larger the current scale of the Interstellar Assembly, the longer the specialization process will take.\nDifferent specialization modes will provide different bonus effects on different recipes.\nOnce the specialization process is completed, you can no longer maintain the specialization requirements,Unless you start meeting the requirements for a different specialization mode, which will cause it to start converting to the new specialization.", "一旦满足某种特化的要求,星际组装厂的特化进程将开始,保持要求10-120分钟后可以将星际组装厂转化为该特化模式。星际组装厂的当前规模越大,转化过程所需时间越长。\n不同的特化模式将对不同的配方提供加成效果。\n一旦特化进程完成,你可以不再保持特化的要求,除非你转而开始满足另一种不同特化的转化要求,这将使你的星际组装厂向新的特化开始转变。", ""); LocalizationModule.RegisterTranslation("特化1介绍内容", "Requirement: At least 5 smelting recipes are assigned, and no other types of recipes assigned. \n\nSpecialized effect: All smelting recipes have extra-output-enabled, and production speed +200%. But it cannot produce multi-functional integrated components. \n\nExtra-output-enabled: After all raw materials of the recipe are sprayed with proliferators, this recipe will definitely gain the extra product effect in the Interstellar Assembly, regardless of whether the recipe prohibits extra output effects. ", "要求:分配了至少5个冶炼配方,且无其他类型的配方。\n\n特化效果:所有冶炼配方允许增产,且速度+200%。但无法产出多功能集成组件。\n\n允许增产:配方的原料喷涂增产剂后,在星际组装厂中生产的产物一定可以获得额外产出效果,无论该配方是否禁止额外产出效果。", ""); LocalizationModule.RegisterTranslation("特化2介绍内容", "Requirements: At least 3 Chemical, Petroleum or Production Enhancer recipes are assigned, and no other types of recipes assigned.\n\nSpecialized effect: raw materials and products for all chemical, petroleum and proliferator recipes will be automatically sprayed with proliferator for free, and have extra-output-enabled, besides, their production speed +100%.\n\nExtra-output-enabled: After all raw materials of the recipe are sprayed with proliferators, this recipe will definitely gain the extra product effect in the Interstellar Assembly, regardless of whether the recipe prohibits extra output effects. ", "要求:分配了至少3个化工、石油或增产剂配方,且无其他类型的配方。\n\n特化效果:为所有化工、石油和增产剂配方的原料和产物免费喷涂增产剂,并允许增产,且他们的速度+100%。\n\n允许增产:配方的原料喷涂增产剂后,在星际组装厂中生产的产物一定可以获得额外产出效果,无论该配方是否禁止额外产出效果。", ""); LocalizationModule.RegisterTranslation("特化3介绍内容", "Requirements: At least 3 recipes containing Antimatter or Deuterium are assigned, and no other types of recipes assigned. \n\nSpecialization effects: All recipes containing antimatter or deuterium have extra-output-enabled and gain +25% additional output. \n\nContaining : The recipe requires specifying item as raw material inputs, or one of the products is that item.\n\nExtra-output-enabled: After all raw materials of the recipe are sprayed with proliferators, this recipe will definitely gain the extra product effect in the Interstellar Assembly, regardless of whether the recipe prohibits extra output effects.", "要求:分配了至少3个包含反物质或重氢的配方,且没有不包含的配方。\n\n特化效果:所有包含反物质或重氢的配方允许增产,并获得+25%额外产出。\n\n包含:配方需要指定物品作为原材料输入,或者产物之一指定物品。\n\n允许增产:配方的原料喷涂增产剂后,在星际组装厂中生产的产物一定可以获得额外产出效果,无论该配方是否禁止额外产出效果。", ""); LocalizationModule.RegisterTranslation("特化4介绍内容", "Requirements: At least 5 recipes containing processor, quantum chip or quantum computer are assigned, and no other types of recipes assigned.\n\nSpecialized effects: All recipes that use processors, quantum chips or quantum computers as inputs have extra-output-enabled, and gain +25% additional output; \nProduction processor, Quantum chip and Quantum Computer's recipe itself will gain +50% additional output instead.\n\nContaining : The recipe requires specifying item as raw material inputs, or one of the products is that item.\n\nExtra-output-enabled: After all raw materials of the recipe are sprayed with proliferators, this recipe will definitely gain the extra product effect in the Interstellar Assembly, regardless of whether the recipe prohibits extra output effects.", "要求:分配了至少5个包含处理器或量子芯片或量子计算机的配方,且没有不包含的配方\n\n特化效果:所有使用处理器、量子芯片、量子计算机作为输入的配方允许增产,并获得+25%额外产出;\n生产处理器、量子芯片、量子计算机的配方则转而+50%额外产出。\n\n包含:配方需要指定物品作为原材料输入,或者产物之一指定物品。\n\n允许增产:配方的原料喷涂增产剂后,在星际组装厂中生产的产物一定可以获得额外产出效果,无论该配方是否禁止额外产出效果。", ""); LocalizationModule.RegisterTranslation("特化5介绍内容", "Requirements: At least 5 recipes that produce combat drones, warships, ammo or defense facilities are assigned, and no other types of recipes assigned.\n\nSpecialized effects: All recipes of attack drones, warships and defense facilities have extra-output-enabled and gain +50% additional output; the recipes of ammo gain +100% additional output instead.\n\nExtra-output-enabled: After all raw materials of the recipe are sprayed with proliferators, this recipe will definitely gain the extra product effect in the Interstellar Assembly, regardless of whether the recipe prohibits extra output effects.", "要求:分配了至少5个攻击型无人机、战舰、弹药或防御设施的配方,且无其他类型的配方。\n\n特化效果:各类攻击型无人机、战舰和防御设施的配方允许增产,并获得+50%额外产出;弹药的配方则转而获得+100%额外产出。\n\n允许增产:配方的原料喷涂增产剂后,在星际组装厂中生产的产物一定可以获得额外产出效果,无论该配方是否禁止额外产出效果。", ""); LocalizationModule.RegisterTranslation("特化已激活", "Specialization Activated", "特化已激活", ""); LocalizationModule.RegisterTranslation("特化即将被取代", "Specialization is about to be replaced", "特化即将被取代", ""); LocalizationModule.RegisterTranslation("特化进程", "Specialize in progress {0}%", "特化进程 {0}%", ""); LocalizationModule.RegisterTranslation("特化进程消退中", "Progress fading {0}%", "特化进程消退中 {0}%", ""); LocalizationModule.RegisterTranslation("等待其他特化进程消退", "Stand by", "等待进程开始", ""); LocalizationModule.RegisterTranslation("特化条件未满足", "Requirements not satisfied", "特化条件未满足", ""); LocalizationModule.RegisterTranslation("应用到全部", "Apply to the whole planet", "应用到整个行星", ""); LocalizationModule.RegisterTranslation("成功应用数量提示", "Successfully applied to {0} buildings.", "成功应用到{0}个建筑。", ""); LocalizationModule.RegisterTranslation("mms自动喷涂", "Auto Spray", "自动喷涂", ""); LocalizationModule.RegisterTranslation("玩家自行禁用了巨构警告", "Can't set megastructure type because you've disabled this megastructure type in config file.", "无法设置巨构类型,因为玩家在config文件中禁用了此巨构。", ""); LocalizationModule.RegisterTranslation("组装厂速度规范化1标题", "Normalize to final speed (based on current state)", "规范化为最终速度(按当前状态)", ""); LocalizationModule.RegisterTranslation("组装厂速度规范化1描述", "Calculate and modify the expected speed so that the final production speed, considering the current specialization and proliferator effect, is equal to the original input expected speed.\nNote: This effect is only modified once when the button is clicked. If there are changes in the specialization or proliferator effect later, it will not be recalculated and modified.", "计算并修改目标生产速度,使得考虑了当前的特化和增产效果后的生产速度等于原先输入的目标生产速度。\n注意:此效果只在点击按钮时修改一次,如果后续的特化或增产效果发生改变,不会自动重新计算并修改。", ""); LocalizationModule.RegisterTranslation("组装厂速度规范化2标题", "Normalize to final speed (based on fully proliferated state)", "规范化为最终速度(按满级喷涂计)", ""); LocalizationModule.RegisterTranslation("组装厂速度规范化2描述", "Calculate and modify the expected speed so that the final production speed, considering the current specialization and full-level proliferator effect, is equal to the original input expected speed.\nNote: This effect is only modified once when the button is clicked. If there are changes in the specialization or proliferator effect later, it will not be recalculated and modified.", "计算并修改目标生产速度,使得考虑了当前的特化和满级增产效果后的生产速度等于原先输入的目标生产速度。\n注意:此效果只在点击按钮时修改一次,如果后续的特化或增产效果发生改变,不会自动重新计算并修改。", ""); LocalizationModule.RegisterTranslation("PF巨构", "MoreMegaStructure", "更多巨构", ""); LocalizationModule.RegisterTranslation("PF巨构主要逻辑", "MainLogic (MMS)", "主要逻辑(巨构)", ""); LocalizationModule.RegisterTranslation("PF接收器", "Receivers", "接收器", ""); LocalizationModule.RegisterTranslation("PF星际组装厂", "Star Assembly", "星际组装厂", ""); LocalizationModule.RegisterTranslation("PF恒星炮", "Star Cannon", "恒星炮", ""); LocalizationModule.RegisterTranslation("PF寻敌逻辑", "Enemy Search", "寻敌逻辑", ""); LocalizationModule.RegisterTranslation("PF巨构数据统计", "Statistics (MMS)", "数据统计(巨构)", ""); LocalizationModule.RegisterTranslation("PFOtherPatches", "Other Patch", "其他 Patch", ""); } internal static void ChangeReceiverRelatedStringProto() { StringProto stringProto = new StringProto(); stringProto.Name = "光子生成"; stringProto.ZHCN = "物质合成"; stringProto.ENUS = "Substance Generation"; stringProto.RegisterTranslation(); StringProto stringProto2 = new StringProto(); stringProto2.Name = "光子生成描述"; stringProto2.ZHCN = "在物质合成模式下,接收站将允许接收巨构建筑的输出,并将其转换为对应物质。"; stringProto2.ENUS = "In Substance Generation mode, the receiver will receive product delivered by the megastructure and convert it into the corresponding item."; stringProto2.RegisterTranslation(); StringProto stringProto3 = new StringProto(); stringProto3.Name = "戴森球统计页签"; stringProto3.ZHCN = "巨构建筑"; stringProto3.ENUS = "Megastructure"; stringProto3.RegisterTranslation(); StringProto stringProto4 = new StringProto(); stringProto4.Name = "戴森球类"; stringProto4.ZHCN = "巨构建筑 (8)"; stringProto4.ENUS = "Megastructure (8)"; stringProto4.RegisterTranslation(); StringProto stringProto5 = new StringProto(); stringProto5.Name = "戴森球面板提示"; stringProto5.ZHCN = "打开巨构建筑面板,制定巨构建筑的建造规划。"; stringProto5.ENUS = "Turn on the Megastructure editor, and make a build plan."; stringProto5.RegisterTranslation(); StringProto stringProto6 = new StringProto(); stringProto6.Name = "戴森球面板"; stringProto6.ZHCN = "巨构建筑 (Y)"; stringProto6.ENUS = "Megastructure (Y)"; stringProto6.RegisterTranslation(); StringProto stringProto7 = new StringProto(); stringProto7.Name = "修建节点标题"; stringProto7.ZHCN = "巨构节点"; stringProto7.ENUS = "Megastructure Node"; stringProto7.RegisterTranslation(); StringProto stringProto8 = new StringProto(); stringProto8.Name = "修建节点描述"; stringProto8.ZHCN = "规划修建巨构建筑节点,点击该按钮可以选择节点的样式。"; stringProto8.ENUS = "Plan and build the Megastructure Node, click this button to choose the node style."; stringProto8.RegisterTranslation(); StringProto stringProto9 = new StringProto(); stringProto9.Name = "修建壳面标题"; stringProto9.ZHCN = "巨构壳面"; stringProto9.ENUS = "Megastructure Shell"; stringProto9.RegisterTranslation(); StringProto stringProto10 = new StringProto(); stringProto10.Name = "修建壳面描述"; stringProto10.ZHCN = "若要规划一个巨构壳面,需要将相应的壳面用节点和框架规划成一个闭合的多边形。\n点击该按钮可以选择巨构壳面的样式进行修建规划。"; stringProto10.ENUS = "In order to Plan a Megastructure Shell, it is necessary to plan the corresponding shell as a closed polygon with nodes and frames.\nClick this button to choose the Megastructure Shell style."; stringProto10.RegisterTranslation(); StringProto stringProto11 = new StringProto(); stringProto11.Name = "戴森球节点号"; stringProto11.ZHCN = "巨构节点 # {0}-{1}"; stringProto11.ENUS = "Structure Node # {0}-{1}"; stringProto11.RegisterTranslation(); StringProto stringProto12 = new StringProto(); stringProto12.Name = "戴森球框架号"; stringProto12.ZHCN = "巨构框架 # {0}-{1}"; stringProto12.ENUS = "Structure Frame # {0}-{1}"; stringProto12.RegisterTranslation(); StringProto stringProto13 = new StringProto(); stringProto13.Name = "戴森球壳面号"; stringProto13.ZHCN = "巨构壳面 # {0}-{1}"; stringProto13.ENUS = "Structure Shell # {0}-{1}"; stringProto13.RegisterTranslation(); StringProto stringProto14 = new StringProto(); stringProto14.Name = "射线接收站"; stringProto14.ZHCN = "射线重构站"; stringProto14.ENUS = "Ray reconstructor"; stringProto14.RegisterTranslation(); StringProto stringProto15 = new StringProto(); stringProto15.Name = "射线接收站描述"; stringProto15.ZHCN = "接收巨构上传输回来的高能射线或粒子流,将其能量输出到电网或重构为对应物质。"; stringProto15.ENUS = "Receive high-energy rays or particle streams transmitted back from the mega structure, output their energy to the power grid or reconstruct them into corresponding substances."; stringProto15.RegisterTranslation(); } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [CommonAPISubmoduleDependency(new string[] { "ProtoRegistry", "TabSystem", "LocalizationModule" })] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Gnimaerd.DSP.plugin.MoreMegaStructure", "MoreMegaStructure", "1.9.1")] public class MoreMegaStructure : BaseUnityPlugin, IModCanSave { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static UnityAction <>9__155_0; public static UnityAction <>9__155_1; public static UnityAction <>9__155_2; public static UnityAction <>9__155_3; public static UnityAction <>9__155_4; public static UnityAction <>9__155_5; public static UnityAction <>9__155_6; internal void b__155_0() { SetMegaStructure(0); } internal void b__155_1() { SetMegaStructure(1); } internal void b__155_2() { SetMegaStructure(2); } internal void b__155_3() { SetMegaStructure(3); } internal void b__155_4() { SetMegaStructure(4); } internal void b__155_5() { SetMegaStructure(5); } internal void b__155_6() { SetMegaStructure(6); } } public static int modVersion = 191; public static int savedModVersion = 190; public static bool CompatibilityPatchUnlocked = false; public static bool GenesisCompatibility; public static bool isBattleActive; public static bool TCFVCompatibility = false; public static int megaNum = 7; public static bool developerMode = false; public static List RelatedGammas; public static string GUID = "Gnimaerd.DSP.plugin.MoreMegaStructure"; public static string MODID_tab = "MegaStructures"; public static int pagenum = 3; public static int battlePagenum = 3; public static long HashGenDivisor = 40000000L; public static int HashBasicSpeedScale = 99; public static int HashBonusPerLevel = 1; public static long WarpAccDivisor = 10000000L; public static int WarpAccMax = 5000; public static long multifunctionComponentHeat = 4500000000L; public static Color normalTextColor = new Color(1f, 1f, 1f, 1f); public static Color currentTextColor = new Color(1f, 0.75f, 0.1f, 1f); public static Color disableTextColor = new Color(0.75f, 0.75f, 0.75f, 1f); public static bool isRemoteReceiveingGear; public static ConfigEntry NoUIAnimation; public static ConfigEntry IASpdFactor; public static ConfigEntry NonlinearEnergy; public static ConfigEntry Support1000Stars; public static ConfigEntry NoWasteResources; public static ConfigEntry ReverseStarCannonShellAlignDirection; public static ConfigEntry ShowIAUIWhenOpenDE; public static ConfigEntry IAStatisticPanelEnabled; public static ConfigEntry StarCannonOnly; public static ConfigEntry EnableLandingProtection; public static bool resolutionLower1080 = false; public static ResourceData resources; public static ResourceData iconResources; public static Sprite iconRocketMattD; public static Sprite iconRocketScieN; public static Sprite iconRocketWarpG; public static Sprite iconRocketMegaA; public static Sprite iconRocketCrysM; public static Sprite iconGravityGen; public static Sprite iconConstrainRing; public static Sprite iconGravityDrill; public static Sprite iconIACompo; public static Sprite iconInterCompo; public static Sprite iconPhotonProbe; public static Sprite iconQuanComp; public static Sprite iconResDisc; public static Sprite iconTunnExciter; public static Sprite iconQuickAssembly; public static Sprite iconQuickBelt; public static Sprite iconQuickChemical; public static Sprite iconQuickCollider; public static Sprite iconQuickLab; public static Sprite iconQuickPLog; public static Sprite iconQuickILog; public static Sprite iconQuickPower; public static Sprite iconQuickReactor; public static Sprite iconQuickRefinery; public static Sprite iconQuickSmelter; public static Sprite iconQuickSorter; public static Sprite iconHashes; public static Sprite iconWarpBroadcast; public static Sprite iconReceiverIron; public static Sprite iconReceiverCopper; public static Sprite iconReceiverTitanium; public static Sprite iconReceiverSilicon; public static Sprite iconReceiverMagore; public static Sprite iconReceiverCasimir; public static Sprite iconReceiverIC; public static Sprite iconReceiverScience; public static Sprite iconReceiverWarp; public static Sprite iconReceiverCoal; public static Sprite iconReceiverGrating; public static Text LeftDysonCloudTitle; public static Text LeftDysonCloudBluePrintText; public static Text LeftDysonShellTitle; public static Text LeftDysonShellBluePrintText; public static Text LeftDysonShellOrbitTitleText; public static Text RightDysonTitle; public static Text RightStarPowRatioText; public static Text RightMaxPowGenText; public static Text RightMaxPowGenValueText; public static Text RightDysonBluePrintText; public static Text SpSailAmountText; public static Text SpNodeAmountText; public static Text SpSailLifeTimeText; public static Text SpSailLifeTimeBarText; public static Text SpConsumePowText; public static Text SpSwarmPowGenText; public static Text SpShellPowGenText; public static Text SpEnergySatisfiedLabelText; public static Text SoSailAmountText; public static Text SoSailPowGenText; public static Text SoSailLifeTimeText; public static Text SoSailLifeTimeBarText; public static Text LyPowGenText; public static Text NdPowGenText; public static Text FrPowGenText; public static Text ShPowGenText; public static Text ReceiverUIButton2Text; public static GameObject setMegaGroupObj; public static GameObject set2DysonButtonObj; public static GameObject set2MatDecomButtonObj; public static GameObject set2SciNexusButtonObj; public static GameObject set2WarpFieldGenButtonObj; public static GameObject set2MegaAssemButtonObj; public static GameObject set2CrystalMinerButtonObj; public static GameObject set2StarCannonButtonObj; public static GameObject rightBarObj; public static GameObject LeftMegaBuildWarning; public static GameObject DysonEditorPowerDescLabel4BarObj; public static GameObject selectAutoReceiveGearLimitObj; public static GameObject selectAutoReceiveGearLimitLabelObj; public static GameObject selectAutoReceiveGearLimitComboBoxObj; public static Button set2DysonButton; public static Button set2MatDecomButton; public static Button set2SciNexusButton; public static Button set2WarpFieldGenButton; public static Button set2MegaAssemButton; public static Button set2CrystalMinerButton; public static Button set2StarCannonButton; public static Transform set2DysonButtonTextTrans; public static Transform set2MatDecomButtonTextTrans; public static Transform set2SciNexusButtonTextTrans; public static Transform set2WarpFieldGenButtonTextTrans; public static Transform set2MegaAssemButtonTextTrans; public static Transform set2CrystalMinerButtonTextTrans; public static Transform set2StarCannonButtonTextTrans; public static UIComboBox selectAutoReceiveGearLimitComboBox; public static Material setButtonTextNormMat; public static Material setButtonTextAlphaMat; public static Text SetMegaStructureLabelText; public static Text SetMegaStructureWarningText; public static StarData curStar; public static DysonSphere curDysonSphere; public static int WarpBuiltStarIndex; public static int CannonBuiltStarIndex; public static long hashGenByAllSN; public static int resolutionY = 1080; public static Random randSeed = new Random(); public const int MegaArrayOldLen = 1000; public const int MegaArrayLength = 1200; public static int[] StarMegaStructureType = new int[1200]; public static int maxAutoReceiveGear = 1000; public static long autoReceiveGearProgress; public static int pilerLvl = 1; public static bool KeyNPressTime = false; public static int testHitIndex = 0; public void Awake() { //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Expected O, but got Unknown //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown try { using (ProtoRegistry.StartModLoad(GUID)) { string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); resources = new ResourceData(GUID, "MegaStructureTab", directoryName); resources.LoadAssetBundle("mmstabicon"); ProtoRegistry.AddResource(resources); pagenum = TabSystem.RegisterTab(MODID_tab + ":" + MODID_tab + "Tab", new TabData("MegaStructures", "Assets/MegaStructureTab/megaStructureTabIcon")); } } catch (Exception) { pagenum = TabSystem.RegisterTab(MODID_tab + ":" + MODID_tab + "Tab", new TabData("MegaStructures", "Assets/MegaStructureTab/megaStructureTabIcon")); } battlePagenum = pagenum; NoUIAnimation = ((BaseUnityPlugin)this).Config.Bind("config", "NoUIAnimation", false, "Turn this to true if your want to show and hide buttons without animations. 如果你想让按钮的出现和隐藏没有动画立即完成,将此项设置为true。"); IASpdFactor = ((BaseUnityPlugin)this).Config.Bind("config", "InterstellarAssemblySpeedFactor", 0.2, "Higher will make the interstellar assembly work faster with the same energy. 在同样的能量水平下,此项越高,星际组装厂的工作速度越快。可以是小数。"); ConfigEntry val = ((BaseUnityPlugin)this).Config.Bind("config", "NonlinearEnergyAssignmentAdjust", true, "This config is no longer working. 此项已弃用。"); NonlinearEnergy = ((BaseUnityPlugin)this).Config.Bind("config", "NonlinearEnergyAssignmentAdjust2", true, "Turn this to true will let you adjust the energy allocation of the Interstellar Assembly more finely within the range of lower value. 将此项设置为true能够使你在调整星际组装厂配方的能量分配时,在较低分配比例的区间内更加精细地调整。"); Support1000Stars = ((BaseUnityPlugin)this).Config.Bind("config", "Support1000Stars", false, "Turn this to true will let the Interstellar Assemblies support upto 1024 stars (default is 100), but this might slow down your game or your save/load speed. 将此项设置为true能够使星际组装厂支持最多1024个星系(默认只支持100以下),但这可能使你的游戏速度或存读档速度被拖慢。"); NoWasteResources = ((BaseUnityPlugin)this).Config.Bind("config", "NoWasteResources", true, "Turn this to false might slightly increase the game speed. But this will cause: if one of the various materials required by a recipe in Interstellar Assembly is insufficient, (its supply cannot meet the speed of full-speed production). Although the actual output will slow down, other sufficient materials may still be consumed at full speed, which means that they may be wasted. 将此项设置为false可能会轻微提升游戏速度,但这会导致:当星际组装厂中的部分原材料不支持满速消耗时,虽然产出速度按照最低供应原材料的速度为准,但其他充足供应的原材料仍被满速消耗而产生浪费。"); ReverseStarCannonShellAlignDirection = ((BaseUnityPlugin)this).Config.Bind("config", "ReverseStarCannonShellAlignDirection", false, "Turn this to true will reverse the align direction of all the shell of star cannon when firing, which means the south pole (of the shells) will point to the target star rather than the north pole. 将此项设置为true会反转恒星炮开火时壳层的对齐方向,这意味着所有壳层的南极将指向目标恒星开火(而非默认的北极)。如果你的炮口造反了,可以尝试更改此项设置。"); ShowIAUIWhenOpenDE = ((BaseUnityPlugin)this).Config.Bind("config", "AutoShowDEUI", true, "Set this to true will force to show the Interstellar Assembly's UI when opening/switching its Megastructure Editor Panel. Set to false will maintain the IA UI's last state. 将此项设置为true将在每次打开星际组装厂的巨构编辑器面板时,强制显示UI。设置为false则会维持上次的状态。"); IAStatisticPanelEnabled = ((BaseUnityPlugin)this).Config.Bind("config", "InterstellarAssemblyStatisticPanelEnabled", true, "If the Interstellar Assembly's production statistics have a excluive page. 星际组装厂的生产数据是否会拥有一个独立的面板页。"); StarCannonOnly = ((BaseUnityPlugin)this).Config.Bind("config", "StarCannonOnly", false, "Set this to true will disable all mega structures except DysonSphere and StarCannon. 将此项设置为true将禁用除了戴森球和恒星炮以外的任何巨构。"); EnableLandingProtection = ((BaseUnityPlugin)this).Config.Bind("config", "EnableLandingProtection", true, "If you've installed the CustomCreateBirthStar or GalacticScale, enabling this option will prevent possible issues with logistics ships being unable to land, but it may cause non-warp speeds of logistics ships to be very fast in the early stages of the game. 若安装遗产mod或GalacticScale,开启此项将防止可能产生的物流船无法降落的问题,但会导致物流船非曲速的速度在游戏初期就很快。"); UIStatisticsPatcher.enabled = IAStatisticPanelEnabled.Value; if (UIStatisticsPatcher.forceBanned) { UIStatisticsPatcher.enabled = false; } iconRocketMattD = Resources.Load("Assets/MegaStructureTab/rocketMatter"); iconRocketScieN = Resources.Load("Assets/MegaStructureTab/rocketScience"); iconRocketWarpG = Resources.Load("Assets/MegaStructureTab/rocketWarp"); iconRocketMegaA = Resources.Load("Assets/MegaStructureTab/rocketAssembly"); iconRocketCrysM = Resources.Load("Assets/MegaStructureTab/rocketCrystal"); iconGravityGen = Resources.Load("Assets/MegaStructureTab/gravitygenerator"); iconConstrainRing = Resources.Load("Assets/MegaStructureTab/constrainring"); iconGravityDrill = Resources.Load("Assets/MegaStructureTab/gravitydrill2"); iconIACompo = Resources.Load("Assets/MegaStructureTab/iacomponent"); iconInterCompo = Resources.Load("Assets/MegaStructureTab/integratedcomponents"); iconPhotonProbe = Resources.Load("Assets/MegaStructureTab/photonprobeflipsmall"); iconQuanComp = Resources.Load("Assets/MegaStructureTab/quantumcomputer3"); iconResDisc = Resources.Load("Assets/MegaStructureTab/resonancedisc"); iconTunnExciter = Resources.Load("Assets/MegaStructureTab/tunnelingexciter2"); iconQuickAssembly = Resources.Load("Assets/MegaStructureTab/Rassembly"); iconQuickBelt = Resources.Load("Assets/MegaStructureTab/Rbelt"); iconQuickChemical = Resources.Load("Assets/MegaStructureTab/Rchemical2"); iconQuickCollider = Resources.Load("Assets/MegaStructureTab/Rcollider"); iconQuickLab = Resources.Load("Assets/MegaStructureTab/Rlab"); iconQuickPLog = Resources.Load("Assets/MegaStructureTab/Rlogistic"); iconQuickILog = Resources.Load("Assets/MegaStructureTab/Rstellalogistic"); iconQuickPower = Resources.Load("Assets/MegaStructureTab/Rpower"); iconQuickReactor = Resources.Load("Assets/MegaStructureTab/Rreactor"); iconQuickRefinery = Resources.Load("Assets/MegaStructureTab/Rrefinery"); iconQuickSmelter = Resources.Load("Assets/MegaStructureTab/Rsmelter"); iconQuickSorter = Resources.Load("Assets/MegaStructureTab/Rsorter"); iconHashes = Resources.Load("Assets/MegaStructureTab/HashPoints"); iconWarpBroadcast = Resources.Load("Assets/MegaStructureTab/WarpFieldBroadcast"); iconReceiverIron = Resources.Load("Assets/MegaStructureTab/Ciron"); iconReceiverCopper = Resources.Load("Assets/MegaStructureTab/Ccopper"); iconReceiverTitanium = Resources.Load("Assets/MegaStructureTab/Ctitanium"); iconReceiverSilicon = Resources.Load("Assets/MegaStructureTab/Csilicon"); iconReceiverMagore = Resources.Load("Assets/MegaStructureTab/Cmagore"); iconReceiverCasimir = Resources.Load("Assets/MegaStructureTab/Ccrystal"); iconReceiverIC = Resources.Load("Assets/MegaStructureTab/Cic"); iconReceiverScience = Resources.Load("Assets/MegaStructureTab/Cscience"); iconReceiverWarp = Resources.Load("Assets/MegaStructureTab/Cwarp"); iconReceiverCoal = Resources.Load("Assets/MegaStructureTab/Ccoal"); iconReceiverGrating = Resources.Load("Assets/MegaStructureTab/Cgrating"); Harmony.CreateAndPatchAll(typeof(MoreMegaStructure), (string)null); Harmony.CreateAndPatchAll(typeof(StarCannon), (string)null); Harmony.CreateAndPatchAll(typeof(ReceiverPatchers), (string)null); Harmony.CreateAndPatchAll(typeof(StarAssembly), (string)null); Harmony.CreateAndPatchAll(typeof(UIReceiverPatchers), (string)null); if (UIStatisticsPatcher.enabled) { Harmony.CreateAndPatchAll(typeof(UIStatisticsPatcher), (string)null); } if (UIBuildMenuPatcher.enabled) { Harmony.CreateAndPatchAll(typeof(UIBuildMenuPatcher), (string)null); } Harmony.CreateAndPatchAll(typeof(UIStarCannon), (string)null); Harmony.CreateAndPatchAll(typeof(UIMechaWindowPatcher), (string)null); Harmony.CreateAndPatchAll(typeof(UIPerformancePanelPatcher), (string)null); Harmony.CreateAndPatchAll(typeof(UIDialogPatch), (string)null); Harmony.CreateAndPatchAll(typeof(UIStationWindowPatcher), (string)null); Harmony.CreateAndPatchAll(typeof(WarpArray), (string)null); Harmony.CreateAndPatchAll(typeof(UIWarpArray), (string)null); MMSProtos.ChangeReceiverRelatedStringProto(); MMSProtos.AddTranslateUILabel(); MMSProtos.AddTranslateStructureName(); MMSProtos.AddTranslateProtoNames1(); MMSProtos.AddTranslateProtoNames2(); MMSProtos.AddTranslateProtoNames3(); MMSProtos.AddTranslateProtoNames4(); LDBTool.PreAddDataAction = (Action)Delegate.Combine(LDBTool.PreAddDataAction, new Action(MMSProtos.AddNewItems)); LDBTool.PreAddDataAction = (Action)Delegate.Combine(LDBTool.PreAddDataAction, new Action(MMSProtos.AddNewItems2)); LDBTool.PostAddDataAction = (Action)Delegate.Combine(LDBTool.PostAddDataAction, new Action(MMSProtos.AddGenesisRecipes)); LDBTool.PreAddDataAction = (Action)Delegate.Combine(LDBTool.PreAddDataAction, new Action(MMSProtos.AddReceivers)); LDBTool.PostAddDataAction = (Action)Delegate.Combine(LDBTool.PostAddDataAction, new Action(MMSProtos.RefreshInitAll)); LDBTool.EditDataAction = (Action)Delegate.Combine(LDBTool.EditDataAction, new Action(MMSProtos.EditOriRR)); if (CompatibilityPatchUnlocked) { AccessTools.StaticFieldRefAccess(typeof(LDBTool), "CustomID").Clear(); AccessTools.StaticFieldRefAccess(typeof(LDBTool), "CustomGridIndex").Clear(); AccessTools.StaticFieldRefAccess(typeof(LDBTool), "CustomStringZHCN").Clear(); AccessTools.StaticFieldRefAccess(typeof(LDBTool), "CustomStringENUS").Clear(); AccessTools.StaticFieldRefAccess(typeof(LDBTool), "CustomStringFRFR").Clear(); } MMSPF.AddMMSSamples(); } public void Start() { InitWhenStart(); GetVanillaUITexts(); InitMegaSetUI(); LateInitOtherUI(); StarAssembly.InitAll(); ReceiverPatchers.InitRawData(); UIReceiverPatchers.InitAll(); if (UIBuildMenuPatcher.enabled) { UIBuildMenuPatcher.InitAll(); } UIStarCannon.InitAll(); UIStationWindowPatcher.InitAll(); if (isBattleActive) { Harmony.CreateAndPatchAll(typeof(StarCannon), (string)null); } } public void Update() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) Vector3 mousePosition = Input.mousePosition; int num = Math.Max(0, resolutionY - 1080); if (mousePosition.x <= MegaButtonGroupBehaviour.currentX + 280f && mousePosition.y <= (float)(270 + num)) { MegaButtonGroupBehaviour.ShowSetMegaGroup(); } else { MegaButtonGroupBehaviour.HideSetMegaGroup(); } MegaButtonGroupBehaviour.SetMegaGroupMove(); try { pilerLvl = GameMain.history.stationPilerLevel; } catch (Exception) { pilerLvl = 1; } if (Input.GetKeyDown((KeyCode)114) && ((ManualBehaviour)UIRoot.instance.uiGame.starmap).active) { StarCannon.OnFireButtonClick(); } if (developerMode && Input.GetKeyDown((KeyCode)110)) { Utils.Log(DSPGame.globalOption.languageLCID.ToString()); } } public static void InitWhenStart() { StarMegaStructureType = new int[1200]; for (int i = 0; i < 1200; i++) { StarMegaStructureType[i] = 0; } } public static void GetVanillaUITexts() { try { GameObject val = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/swarm/title-text"); GameObject val2 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/swarm/blueprint/text"); LeftDysonCloudTitle = val.GetComponent(); LeftDysonCloudBluePrintText = val2.GetComponent(); } catch (Exception) { } try { GameObject val3 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/layers/title-text"); GameObject val4 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/layers/blueprint-group/blueprint-text"); GameObject val5 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/layers/buttons-group/orbit-title-text"); LeftDysonShellTitle = val3.GetComponent(); LeftDysonShellBluePrintText = val4.GetComponent(); LeftDysonShellOrbitTitleText = val5.GetComponent(); } catch (Exception) { } try { RightDysonTitle = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/overview-group/name-text").GetComponent(); RightStarPowRatioText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/overview-group/star-label").GetComponent(); RightMaxPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/overview-group/gen-label").GetComponent(); RightMaxPowGenValueText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/overview-group/gen-value").GetComponent(); RightDysonBluePrintText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/overview-group/blueprint").GetComponent(); } catch (Exception) { } try { SpSailAmountText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/prop-label-0").GetComponent(); SpNodeAmountText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/prop-label-1").GetComponent(); SpSailLifeTimeText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/sail-stat/sail-histogram/title").GetComponent(); SpSailLifeTimeBarText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/sail-stat/bar-group/title").GetComponent(); SpConsumePowText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/power-desc/label-2").GetComponent(); SpSwarmPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/power-desc/label-3").GetComponent(); SpShellPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/power-desc/label-4").GetComponent(); SpEnergySatisfiedLabelText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/power-desc/Graph/cons-circle/label-c").GetComponent(); } catch (Exception) { } try { SoSailAmountText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/swarm-orbit-group/self-info/prop-label-0").GetComponent(); SoSailPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/swarm-orbit-group/self-info/prop-label-1").GetComponent(); SoSailLifeTimeText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/swarm-orbit-group/sail-stat/sail-histogram/title").GetComponent(); SoSailLifeTimeBarText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/swarm-orbit-group/sail-stat/bar-group/title").GetComponent(); LyPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/layer-group/self-info/prop-label-4").GetComponent(); NdPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/node-group/self-info/prop-label-5").GetComponent(); DysonEditorPowerDescLabel4BarObj = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/power-desc/label-4/legend-4"); } catch (Exception) { } try { FrPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/frame-group/self-info/prop-label-0").GetComponent(); ShPowGenText = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/shell-group/self-info/prop-label-0").GetComponent(); } catch (Exception) { } try { ReceiverUIButton2Text = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Power Generator Window/ray-receiver/switch-button-2/button-text").GetComponent(); ReceiverUIButton2Text.text = Localization.Translate("物质合成"); } catch (Exception) { } } public static void InitMegaSetUI() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_0247: Unknown result type (might be due to invalid IL or missing references) //IL_026b: Unknown result type (might be due to invalid IL or missing references) //IL_028a: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02fc: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03f9: Unknown result type (might be due to invalid IL or missing references) //IL_0494: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Unknown result type (might be due to invalid IL or missing references) //IL_05d2: Unknown result type (might be due to invalid IL or missing references) //IL_05f1: Unknown result type (might be due to invalid IL or missing references) //IL_0710: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Unknown result type (might be due to invalid IL or missing references) //IL_084e: Unknown result type (might be due to invalid IL or missing references) //IL_086d: Unknown result type (might be due to invalid IL or missing references) //IL_098c: Unknown result type (might be due to invalid IL or missing references) //IL_09ab: Unknown result type (might be due to invalid IL or missing references) //IL_0aca: Unknown result type (might be due to invalid IL or missing references) //IL_0ae9: Unknown result type (might be due to invalid IL or missing references) //IL_0bda: Unknown result type (might be due to invalid IL or missing references) //IL_0bdf: Unknown result type (might be due to invalid IL or missing references) //IL_0be5: Expected O, but got Unknown //IL_0c19: Unknown result type (might be due to invalid IL or missing references) //IL_0c1e: Unknown result type (might be due to invalid IL or missing references) //IL_0c24: Expected O, but got Unknown //IL_0c58: Unknown result type (might be due to invalid IL or missing references) //IL_0c5d: Unknown result type (might be due to invalid IL or missing references) //IL_0c63: Expected O, but got Unknown //IL_0c97: Unknown result type (might be due to invalid IL or missing references) //IL_0c9c: Unknown result type (might be due to invalid IL or missing references) //IL_0ca2: Expected O, but got Unknown //IL_0cd6: Unknown result type (might be due to invalid IL or missing references) //IL_0cdb: Unknown result type (might be due to invalid IL or missing references) //IL_0ce1: Expected O, but got Unknown //IL_0d15: Unknown result type (might be due to invalid IL or missing references) //IL_0d1a: Unknown result type (might be due to invalid IL or missing references) //IL_0d20: Expected O, but got Unknown //IL_0d54: Unknown result type (might be due to invalid IL or missing references) //IL_0d59: Unknown result type (might be due to invalid IL or missing references) //IL_0d5f: Expected O, but got Unknown try { Rect rect = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel").GetComponent().rect; float height = ((Rect)(ref rect)).height; int num = (int)(270f - height); int num2 = Math.Min((int)(-940f * height / 1080f), -835); GameObject val = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy"); setMegaGroupObj = new GameObject("mega-buttons"); setMegaGroupObj.transform.SetParent(val.transform); setMegaGroupObj.transform.localPosition = new Vector3(0f, (float)num, 0f); setMegaGroupObj.transform.localScale = new Vector3(1f, 1f, 1f); GameObject val2 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/layers/title-text"); LeftMegaBuildWarning = Object.Instantiate(val2); ((Object)LeftMegaBuildWarning).name = "settype-warning"; LeftMegaBuildWarning.transform.SetParent(val.transform, false); LeftMegaBuildWarning.transform.localPosition = new Vector3(280f, (float)num2, 0f); LeftMegaBuildWarning.GetComponent().pivot = new Vector2(1f, 1f); LeftMegaBuildWarning.GetComponent().anchorMin = new Vector2(1f, 1f); LeftMegaBuildWarning.GetComponent().anchorMax = new Vector2(1f, 1f); LeftMegaBuildWarning.SetActive(true); SetMegaStructureWarningText = LeftMegaBuildWarning.GetComponent(); ((Component)SetMegaStructureWarningText).GetComponent().sizeDelta = new Vector2(270f, 100f); SetMegaStructureWarningText.text = Localization.Translate("鼠标触碰左侧黄条以规划巨构"); SetMegaStructureWarningText.alignment = (TextAnchor)4; SetMegaStructureWarningText.fontSize = 16; ((Graphic)SetMegaStructureWarningText).color = new Color(1f, 1f, 0.57f, 1f); rightBarObj = Object.Instantiate(GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/inspector/sphere-group/sail-stat/bar-group/bar-orange"), setMegaGroupObj.transform); ((Object)rightBarObj).name = "right-bar"; rightBarObj.transform.localPosition = new Vector3(270f, 0f, 0f); rightBarObj.transform.localScale = new Vector3(1f, 1f, 1f); rightBarObj.GetComponent().pivot = new Vector2(0f, 1f); rightBarObj.GetComponent().anchorMin = new Vector2(0f, 0f); rightBarObj.GetComponent().anchorMax = new Vector2(0f, 0f); rightBarObj.GetComponent().fillAmount = 1f; rightBarObj.GetComponent().sizeDelta = new Vector2(8f, 243f); GameObject val3 = Object.Instantiate(val2); ((Object)val3).name = "title3"; val3.transform.SetParent(setMegaGroupObj.transform, false); val3.transform.localPosition = new Vector3(22f, 0f, 0f); SetMegaStructureLabelText = val3.GetComponent(); SetMegaStructureLabelText.text = "规划巨构建筑类型"; GameObject val4 = GameObject.Find("UI Root/Overlay Canvas/In Game/Windows/Dyson Sphere Editor/Dyson Editor Control Panel/hierarchy/layers/buttons-group/buttons/add-button"); set2DysonButtonObj = Object.Instantiate(val4); set2DysonButtonObj.SetActive(true); ((Object)set2DysonButtonObj).name = "set-mega-0"; set2DysonButtonObj.transform.SetParent(setMegaGroupObj.transform, false); set2DysonButtonObj.transform.localPosition = new Vector3(30f, -35f, 0f); set2DysonButtonObj.GetComponent().sizeDelta = new Vector2(220f, 28f); set2DysonButtonTextTrans = set2DysonButtonObj.transform.Find("Text"); set2DysonButton = set2DysonButtonObj.GetComponent