Instantly share code, notes, and snippets.
Created
June 1, 2023 18:59
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save pardeike/1228686e7f0710f0ad84efd0d986a60e to your computer and use it in GitHub Desktop.
MainMenuDrawer::DoMainMenuControls IL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Patch: static System.Void RimWorld.MainMenuDrawer::DoMainMenuControls(UnityEngine.Rect rect, System.Boolean anyMapFiles) | |
### Replacement: static System.Void RimWorld.MainMenuDrawer::RimWorld.MainMenuDrawer.DoMainMenuControls_Patch0(UnityEngine.Rect rect, System.Boolean anyMapFiles) | |
IL_0000: Local var 0: UnityEngine.Rect | |
IL_0000: Local var 1: UnityEngine.Rect | |
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.ListableOption> | |
IL_0000: Local var 3: Verse.ListableOption | |
IL_0000: Local var 4: System.String | |
IL_0000: Local var 5: System.Action | |
IL_0000: Local var 6: System.Action | |
IL_0000: Local var 7: System.Collections.Generic.List`1<Verse.ListableOption> | |
IL_0000: Local var 8: Verse.ListableOption | |
IL_0000: Local var 9: System.Single | |
IL_0000: Local var 10: System.Nullable`1<UnityEngine.TextAnchor> | |
IL_0000: Local var 11: System.Collections.Generic.List`1<Verse.FloatMenuOption> | |
IL_0000: Local var 12: System.Collections.Generic.IEnumerator`1<Verse.LoadedLanguage> | |
IL_0000: Local var 13: Verse.LoadedLanguage | |
IL_0000: Local var 14: RimWorld.MainMenuDrawer/<>c__DisplayClass18_0 | |
IL_0000: // start original | |
IL_0000: ldarg.0 | |
IL_0001: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect rect) | |
IL_0006: ldloca.s 0 (UnityEngine.Rect) | |
IL_0008: ldc.r4 0 | |
IL_000D: ldc.r4 0 | |
IL_0012: ldc.r4 170 | |
IL_0017: ldarga.s 0 | |
IL_0019: call System.Single UnityEngine.Rect::get_height() | |
IL_001E: call System.Void UnityEngine.Rect::.ctor(System.Single x, System.Single y, System.Single width, System.Single height) | |
IL_0023: ldloca.s 1 (UnityEngine.Rect) | |
IL_0025: ldloca.s 0 (UnityEngine.Rect) | |
IL_0027: call System.Single UnityEngine.Rect::get_xMax() | |
IL_002C: ldc.r4 17 | |
IL_0031: add | |
IL_0032: ldc.r4 0 | |
IL_0037: ldc.r4 145 | |
IL_003C: ldarga.s 0 | |
IL_003E: call System.Single UnityEngine.Rect::get_height() | |
IL_0043: call System.Void UnityEngine.Rect::.ctor(System.Single x, System.Single y, System.Single width, System.Single height) | |
IL_0048: ldc.i4.1 | |
IL_0049: call static System.Void Verse.Text::set_Font(Verse.GameFont value) | |
IL_004E: newobj System.Void System.Collections.Generic.List`1<Verse.ListableOption>::.ctor() | |
IL_0053: stloc.2 | |
IL_0054: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_0059: brtrue => Label0 | |
IL_005E: ldstr "Tutorial" | |
IL_0063: call static System.Boolean Verse.Translator::CanTranslate(System.String key) | |
IL_0068: brtrue => Label1 | |
IL_006D: ldstr "LearnToPlay" | |
IL_0072: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0077: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_007C: stloc.s 4 (System.String) | |
IL_007E: br => Label2 | |
IL_0083: Label1 | |
IL_0083: ldstr "Tutorial" | |
IL_0088: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_008D: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0092: stloc.s 4 (System.String) | |
IL_0094: Label2 | |
IL_0094: ldloc.2 | |
IL_0095: ldloc.s 4 (System.String) | |
IL_0097: ldsfld System.Action RimWorld.<>c::<>9__18_10 | |
IL_009C: dup | |
IL_009D: brtrue => Label3 | |
IL_00A2: pop | |
IL_00A3: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_00A8: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_10() | |
IL_00AE: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_00B3: dup | |
IL_00B4: stsfld System.Action RimWorld.<>c::<>9__18_10 | |
IL_00B9: Label3 | |
IL_00B9: ldnull | |
IL_00BA: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_00BF: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_00C4: ldloc.2 | |
IL_00C5: ldstr "NewColony" | |
IL_00CA: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_00CF: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_00D4: ldsfld System.Action RimWorld.<>c::<>9__18_11 | |
IL_00D9: dup | |
IL_00DA: brtrue => Label4 | |
IL_00DF: pop | |
IL_00E0: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_00E5: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_11() | |
IL_00EB: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_00F0: dup | |
IL_00F1: stsfld System.Action RimWorld.<>c::<>9__18_11 | |
IL_00F6: Label4 | |
IL_00F6: ldnull | |
IL_00F7: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_00FC: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0101: call static System.Boolean Verse.Prefs::get_DevMode() | |
IL_0106: brfalse => Label5 | |
IL_010B: ldloc.2 | |
IL_010C: call static System.Void HarmonyMod.MainMenuDrawer_Quickstart_Patch::AddReplacementQuickstartButton(System.Collections.Generic.List`1<Verse.ListableOption> buttons) | |
IL_0111: br => Label5 | |
IL_0116: ldstr "DevQuickTest" | |
IL_011B: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0120: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0125: ldsfld System.Action RimWorld.<>c::<>9__18_12 | |
IL_012A: dup | |
IL_012B: brtrue => Label6 | |
IL_0130: pop | |
IL_0131: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0136: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_12() | |
IL_013C: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0141: dup | |
IL_0142: stsfld System.Action RimWorld.<>c::<>9__18_12 | |
IL_0147: Label6 | |
IL_0147: ldnull | |
IL_0148: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_014D: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0152: Label0 | |
IL_0152: Label5 | |
IL_0152: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_0157: ldc.i4.2 | |
IL_0158: bne.un => Label7 | |
IL_015D: call static System.Boolean Verse.GameDataSaveLoader::get_SavingIsTemporarilyDisabled() | |
IL_0162: brtrue => Label8 | |
IL_0167: call static Verse.Game Verse.Current::get_Game() | |
IL_016C: callvirt Verse.GameInfo Verse.Game::get_Info() | |
IL_0171: ldfld System.Boolean Verse.GameInfo::permadeathMode | |
IL_0176: brtrue => Label9 | |
IL_017B: ldloc.2 | |
IL_017C: ldstr "Save" | |
IL_0181: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0186: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_018B: ldsfld System.Action RimWorld.<>c::<>9__18_0 | |
IL_0190: dup | |
IL_0191: brtrue => Label10 | |
IL_0196: pop | |
IL_0197: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_019C: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_0() | |
IL_01A2: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_01A7: dup | |
IL_01A8: stsfld System.Action RimWorld.<>c::<>9__18_0 | |
IL_01AD: Label10 | |
IL_01AD: ldnull | |
IL_01AE: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_01B3: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_01B8: Label7 | |
IL_01B8: Label8 | |
IL_01B8: Label9 | |
IL_01B8: ldarg.1 | |
IL_01B9: brfalse => Label11 | |
IL_01BE: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_01C3: ldc.i4.2 | |
IL_01C4: bne.un => Label12 | |
IL_01C9: call static Verse.Game Verse.Current::get_Game() | |
IL_01CE: callvirt Verse.GameInfo Verse.Game::get_Info() | |
IL_01D3: ldfld System.Boolean Verse.GameInfo::permadeathMode | |
IL_01D8: brtrue => Label13 | |
IL_01DD: Label12 | |
IL_01DD: ldstr "LoadGame" | |
IL_01E2: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_01E7: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_01EC: ldsfld System.Action RimWorld.<>c::<>9__18_1 | |
IL_01F1: dup | |
IL_01F2: brtrue => Label14 | |
IL_01F7: pop | |
IL_01F8: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_01FD: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_1() | |
IL_0203: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0208: dup | |
IL_0209: stsfld System.Action RimWorld.<>c::<>9__18_1 | |
IL_020E: Label14 | |
IL_020E: ldnull | |
IL_020F: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_0214: stloc.3 | |
IL_0215: ldloc.2 | |
IL_0216: ldloc.3 | |
IL_0217: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_021C: Label11 | |
IL_021C: Label13 | |
IL_021C: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_0221: ldc.i4.2 | |
IL_0222: bne.un => Label15 | |
IL_0227: ldloc.2 | |
IL_0228: ldstr "ReviewScenario" | |
IL_022D: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0232: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0237: ldsfld System.Action RimWorld.<>c::<>9__18_2 | |
IL_023C: dup | |
IL_023D: brtrue => Label16 | |
IL_0242: pop | |
IL_0243: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0248: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_2() | |
IL_024E: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0253: dup | |
IL_0254: stsfld System.Action RimWorld.<>c::<>9__18_2 | |
IL_0259: Label16 | |
IL_0259: ldnull | |
IL_025A: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_025F: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0264: Label15 | |
IL_0264: ldstr "Options" | |
IL_0269: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_026E: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0273: ldsfld System.Action RimWorld.<>c::<>9__18_3 | |
IL_0278: dup | |
IL_0279: brtrue => Label17 | |
IL_027E: pop | |
IL_027F: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0284: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_3() | |
IL_028A: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_028F: dup | |
IL_0290: stsfld System.Action RimWorld.<>c::<>9__18_3 | |
IL_0295: Label17 | |
IL_0295: ldstr "MenuButton-Options" | |
IL_029A: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_029F: stloc.3 | |
IL_02A0: ldloc.2 | |
IL_02A1: ldloc.3 | |
IL_02A2: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_02A7: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_02AC: brtrue => Label18 | |
IL_02B1: ldstr "Mods" | |
IL_02B6: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_02BB: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_02C0: ldsfld System.Action RimWorld.<>c::<>9__18_4 | |
IL_02C5: dup | |
IL_02C6: brtrue => Label19 | |
IL_02CB: pop | |
IL_02CC: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_02D1: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_4() | |
IL_02D7: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_02DC: dup | |
IL_02DD: stsfld System.Action RimWorld.<>c::<>9__18_4 | |
IL_02E2: Label19 | |
IL_02E2: ldnull | |
IL_02E3: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_02E8: stloc.3 | |
IL_02E9: ldloc.2 | |
IL_02EA: ldloc.3 | |
IL_02EB: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_02F0: call static System.Boolean Verse.Prefs::get_DevMode() | |
IL_02F5: brfalse => Label20 | |
IL_02FA: ldsfld Verse.LoadedLanguage Verse.LanguageDatabase::activeLanguage | |
IL_02FF: ldsfld Verse.LoadedLanguage Verse.LanguageDatabase::defaultLanguage | |
IL_0304: bne.un => Label21 | |
IL_0309: ldsfld Verse.LoadedLanguage Verse.LanguageDatabase::activeLanguage | |
IL_030E: ldfld System.Boolean Verse.LoadedLanguage::anyError | |
IL_0313: brfalse => Label22 | |
IL_0318: ldstr "SaveTranslationReport" | |
IL_031D: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0322: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0327: ldsfld System.Action RimWorld.<>c::<>9__18_5 | |
IL_032C: dup | |
IL_032D: brtrue => Label23 | |
IL_0332: pop | |
IL_0333: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0338: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_5() | |
IL_033E: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0343: dup | |
IL_0344: stsfld System.Action RimWorld.<>c::<>9__18_5 | |
IL_0349: Label23 | |
IL_0349: ldnull | |
IL_034A: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_034F: stloc.3 | |
IL_0350: ldloc.2 | |
IL_0351: ldloc.3 | |
IL_0352: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0357: Label20 | |
IL_0357: Label21 | |
IL_0357: Label22 | |
IL_0357: ldstr "Credits" | |
IL_035C: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0361: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0366: ldsfld System.Action RimWorld.<>c::<>9__18_6 | |
IL_036B: dup | |
IL_036C: brtrue => Label24 | |
IL_0371: pop | |
IL_0372: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0377: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_6() | |
IL_037D: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0382: dup | |
IL_0383: stsfld System.Action RimWorld.<>c::<>9__18_6 | |
IL_0388: Label24 | |
IL_0388: ldnull | |
IL_0389: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_038E: stloc.3 | |
IL_038F: ldloc.2 | |
IL_0390: ldloc.3 | |
IL_0391: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0396: Label18 | |
IL_0396: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_039B: ldc.i4.2 | |
IL_039C: bne.un => Label25 | |
IL_03A1: call static Verse.Game Verse.Current::get_Game() | |
IL_03A6: callvirt Verse.GameInfo Verse.Game::get_Info() | |
IL_03AB: ldfld System.Boolean Verse.GameInfo::permadeathMode | |
IL_03B0: brfalse => Label26 | |
IL_03B5: call static System.Boolean Verse.GameDataSaveLoader::get_SavingIsTemporarilyDisabled() | |
IL_03BA: brtrue => Label27 | |
IL_03BF: ldstr "SaveAndQuitToMainMenu" | |
IL_03C4: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_03C9: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_03CE: ldsfld System.Action RimWorld.<>c::<>9__18_7 | |
IL_03D3: dup | |
IL_03D4: brtrue => Label28 | |
IL_03D9: pop | |
IL_03DA: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_03DF: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_7() | |
IL_03E5: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_03EA: dup | |
IL_03EB: stsfld System.Action RimWorld.<>c::<>9__18_7 | |
IL_03F0: Label28 | |
IL_03F0: ldnull | |
IL_03F1: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_03F6: stloc.3 | |
IL_03F7: ldloc.2 | |
IL_03F8: ldloc.3 | |
IL_03F9: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_03FE: ldstr "SaveAndQuitToOS" | |
IL_0403: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0408: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_040D: ldsfld System.Action RimWorld.<>c::<>9__18_8 | |
IL_0412: dup | |
IL_0413: brtrue => Label29 | |
IL_0418: pop | |
IL_0419: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_041E: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_8() | |
IL_0424: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_0429: dup | |
IL_042A: stsfld System.Action RimWorld.<>c::<>9__18_8 | |
IL_042F: Label29 | |
IL_042F: ldnull | |
IL_0430: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_0435: stloc.3 | |
IL_0436: ldloc.2 | |
IL_0437: ldloc.3 | |
IL_0438: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_043D: br => Label30 | |
IL_0442: Label26 | |
IL_0442: Label27 | |
IL_0442: ldsfld System.Action RimWorld.<>c::<>9__18_17 | |
IL_0447: dup | |
IL_0448: brtrue => Label31 | |
IL_044D: pop | |
IL_044E: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0453: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_17() | |
IL_0459: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_045E: dup | |
IL_045F: stsfld System.Action RimWorld.<>c::<>9__18_17 | |
IL_0464: Label31 | |
IL_0464: stloc.s 5 (System.Action) | |
IL_0466: ldstr "QuitToMainMenu" | |
IL_046B: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0470: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0475: ldloc.s 5 (System.Action) | |
IL_0477: ldnull | |
IL_0478: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_047D: stloc.3 | |
IL_047E: ldloc.2 | |
IL_047F: ldloc.3 | |
IL_0480: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0485: ldsfld System.Action RimWorld.<>c::<>9__18_18 | |
IL_048A: dup | |
IL_048B: brtrue => Label32 | |
IL_0490: pop | |
IL_0491: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_0496: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_18() | |
IL_049C: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_04A1: dup | |
IL_04A2: stsfld System.Action RimWorld.<>c::<>9__18_18 | |
IL_04A7: Label32 | |
IL_04A7: stloc.s 6 (System.Action) | |
IL_04A9: ldstr "QuitToOS" | |
IL_04AE: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_04B3: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_04B8: ldloc.s 6 (System.Action) | |
IL_04BA: ldnull | |
IL_04BB: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_04C0: stloc.3 | |
IL_04C1: ldloc.2 | |
IL_04C2: ldloc.3 | |
IL_04C3: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_04C8: br => Label33 | |
IL_04CD: Label25 | |
IL_04CD: ldstr "QuitToOS" | |
IL_04D2: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_04D7: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_04DC: ldsfld System.Action RimWorld.<>c::<>9__18_9 | |
IL_04E1: dup | |
IL_04E2: brtrue => Label34 | |
IL_04E7: pop | |
IL_04E8: ldsfld RimWorld.<>c RimWorld.<>c::<>9 | |
IL_04ED: ldftn System.Void RimWorld.<>c::<DoMainMenuControls>b__18_9() | |
IL_04F3: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_04F8: dup | |
IL_04F9: stsfld System.Action RimWorld.<>c::<>9__18_9 | |
IL_04FE: Label34 | |
IL_04FE: ldnull | |
IL_04FF: newobj System.Void Verse.ListableOption::.ctor(System.String label, System.Action action, System.String uiHighlightTag) | |
IL_0504: stloc.3 | |
IL_0505: ldloc.2 | |
IL_0506: ldloc.3 | |
IL_0507: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_050C: Label30 | |
IL_050C: Label33 | |
IL_050C: ldloc.0 | |
IL_050D: ldloc.2 | |
IL_050E: call static System.Single Verse.OptionListingUtility::DrawOptionListing(UnityEngine.Rect rect, System.Collections.Generic.List`1<Verse.ListableOption> optList) | |
IL_0513: pop | |
IL_0514: ldc.i4.1 | |
IL_0515: call static System.Void Verse.Text::set_Font(Verse.GameFont value) | |
IL_051A: newobj System.Void System.Collections.Generic.List`1<Verse.ListableOption>::.ctor() | |
IL_051F: stloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0521: ldstr "FictionPrimer" | |
IL_0526: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_052B: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0530: ldstr "https://rimworldgame.com/backstory" | |
IL_0535: ldsfld UnityEngine.Texture2D Verse.TexButton::IconBlog | |
IL_053A: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_053F: stloc.s 8 (Verse.ListableOption) | |
IL_0541: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0543: ldloc.s 8 (Verse.ListableOption) | |
IL_0545: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_054A: ldstr "LudeonBlog" | |
IL_054F: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0554: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0559: ldstr "https://ludeon.com/blog" | |
IL_055E: ldsfld UnityEngine.Texture2D Verse.TexButton::IconBlog | |
IL_0563: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_0568: stloc.s 8 (Verse.ListableOption) | |
IL_056A: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_056C: ldloc.s 8 (Verse.ListableOption) | |
IL_056E: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0573: ldstr "Forums" | |
IL_0578: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_057D: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0582: ldstr "https://ludeon.com/forums" | |
IL_0587: ldsfld UnityEngine.Texture2D Verse.TexButton::IconForums | |
IL_058C: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_0591: stloc.s 8 (Verse.ListableOption) | |
IL_0593: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0595: ldloc.s 8 (Verse.ListableOption) | |
IL_0597: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_059C: ldstr "OfficialWiki" | |
IL_05A1: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_05A6: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_05AB: ldstr "https://rimworldwiki.com" | |
IL_05B0: ldsfld UnityEngine.Texture2D Verse.TexButton::IconBlog | |
IL_05B5: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_05BA: stloc.s 8 (Verse.ListableOption) | |
IL_05BC: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_05BE: ldloc.s 8 (Verse.ListableOption) | |
IL_05C0: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_05C5: ldstr "TynansTwitter" | |
IL_05CA: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_05CF: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_05D4: ldstr "https://twitter.com/TynanSylvester" | |
IL_05D9: ldsfld UnityEngine.Texture2D Verse.TexButton::IconTwitter | |
IL_05DE: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_05E3: stloc.s 8 (Verse.ListableOption) | |
IL_05E5: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_05E7: ldloc.s 8 (Verse.ListableOption) | |
IL_05E9: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_05EE: ldstr "TynansDesignBook" | |
IL_05F3: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_05F8: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_05FD: ldstr "https://tynansylvester.com/book" | |
IL_0602: ldsfld UnityEngine.Texture2D Verse.TexButton::IconBook | |
IL_0607: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_060C: stloc.s 8 (Verse.ListableOption) | |
IL_060E: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0610: ldloc.s 8 (Verse.ListableOption) | |
IL_0612: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0617: ldstr "HelpTranslate" | |
IL_061C: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_0621: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_0626: ldsfld System.String RimWorld.MainMenuDrawer::TranslationsContributeURL | |
IL_062B: ldsfld UnityEngine.Texture2D Verse.TexButton::IconForums | |
IL_0630: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_0635: stloc.s 8 (Verse.ListableOption) | |
IL_0637: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0639: ldloc.s 8 (Verse.ListableOption) | |
IL_063B: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0640: ldstr "BuySoundtrack" | |
IL_0645: call static Verse.TaggedString Verse.Translator::Translate(System.String key) | |
IL_064A: call static System.String Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString) | |
IL_064F: ldstr "http://www.lasgameaudio.co.uk/#!store/t04fw" | |
IL_0654: ldsfld UnityEngine.Texture2D Verse.TexButton::IconSoundtrack | |
IL_0659: newobj System.Void Verse.ListableOption_WebLink::.ctor(System.String label, System.String url, UnityEngine.Texture2D image) | |
IL_065E: stloc.s 8 (Verse.ListableOption) | |
IL_0660: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_0662: ldloc.s 8 (Verse.ListableOption) | |
IL_0664: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.ListableOption>::Add(Verse.ListableOption item) | |
IL_0669: ldloc.1 | |
IL_066A: ldloc.s 7 (System.Collections.Generic.List`1[Verse.ListableOption]) | |
IL_066C: call static System.Single Verse.OptionListingUtility::DrawOptionListing(UnityEngine.Rect rect, System.Collections.Generic.List`1<Verse.ListableOption> optList) | |
IL_0671: stloc.s 9 (System.Single) | |
IL_0673: ldloc.1 | |
IL_0674: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect rect) | |
IL_0679: call static Verse.ProgramState Verse.Current::get_ProgramState() | |
IL_067E: brtrue => Label35 | |
IL_0683: ldc.r4 0 | |
IL_0688: ldloc.s 9 (System.Single) | |
IL_068A: ldc.r4 10 | |
IL_068F: add | |
IL_0690: ldloca.s 1 (UnityEngine.Rect) | |
IL_0692: call System.Single UnityEngine.Rect::get_width() | |
IL_0697: ldc.r4 50 | |
IL_069C: newobj System.Void UnityEngine.Rect::.ctor(System.Single x, System.Single y, System.Single width, System.Single height) | |
IL_06A1: ldsfld Verse.LoadedLanguage Verse.LanguageDatabase::activeLanguage | |
IL_06A6: callvirt System.String Verse.LoadedLanguage::get_FriendlyNameNative() | |
IL_06AB: ldc.i4.1 | |
IL_06AC: ldc.i4.1 | |
IL_06AD: ldc.i4.1 | |
IL_06AE: ldloca.s 10 (System.Nullable`1[UnityEngine.TextAnchor]) | |
IL_06B0: initobj System.Nullable`1[UnityEngine.TextAnchor] | |
IL_06B6: ldloc.s 10 (System.Nullable`1[UnityEngine.TextAnchor]) | |
IL_06B8: call static System.Boolean Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label, System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor) | |
IL_06BD: brfalse => Label36 | |
IL_06C2: newobj System.Void System.Collections.Generic.List`1<Verse.FloatMenuOption>::.ctor() | |
IL_06C7: stloc.s 11 (System.Collections.Generic.List`1[Verse.FloatMenuOption]) | |
IL_06C9: call static System.Collections.Generic.IEnumerable`1<Verse.LoadedLanguage> Verse.LanguageDatabase::get_AllLoadedLanguages() | |
IL_06CE: callvirt abstract virtual System.Collections.Generic.IEnumerator`1<Verse.LoadedLanguage> System.Collections.Generic.IEnumerable`1<Verse.LoadedLanguage>::GetEnumerator() | |
IL_06D3: stloc.s 12 (System.Collections.Generic.IEnumerator`1[Verse.LoadedLanguage]) | |
.try | |
{ | |
IL_06D5: br => Label37 | |
IL_06DA: Label38 | |
IL_06DA: ldloc.s 12 (System.Collections.Generic.IEnumerator`1[Verse.LoadedLanguage]) | |
IL_06DC: callvirt abstract virtual Verse.LoadedLanguage System.Collections.Generic.IEnumerator`1<Verse.LoadedLanguage>::get_Current() | |
IL_06E1: stloc.s 13 (Verse.LoadedLanguage) | |
IL_06E3: newobj System.Void RimWorld.<>c__DisplayClass18_0::.ctor() | |
IL_06E8: stloc.s 14 (RimWorld.MainMenuDrawer+<>c__DisplayClass18_0) | |
IL_06EA: ldloc.s 14 (RimWorld.MainMenuDrawer+<>c__DisplayClass18_0) | |
IL_06EC: ldloc.s 13 (Verse.LoadedLanguage) | |
IL_06EE: stfld Verse.LoadedLanguage RimWorld.<>c__DisplayClass18_0::localLang | |
IL_06F3: ldloc.s 11 (System.Collections.Generic.List`1[Verse.FloatMenuOption]) | |
IL_06F5: ldloc.s 14 (RimWorld.MainMenuDrawer+<>c__DisplayClass18_0) | |
IL_06F7: ldfld Verse.LoadedLanguage RimWorld.<>c__DisplayClass18_0::localLang | |
IL_06FC: callvirt System.String Verse.LoadedLanguage::get_DisplayName() | |
IL_0701: ldloc.s 14 (RimWorld.MainMenuDrawer+<>c__DisplayClass18_0) | |
IL_0703: ldftn System.Void RimWorld.<>c__DisplayClass18_0::<DoMainMenuControls>b__21() | |
IL_0709: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method) | |
IL_070E: ldc.i4.4 | |
IL_070F: ldnull | |
IL_0710: ldnull | |
IL_0711: ldc.r4 0 | |
IL_0716: ldnull | |
IL_0717: ldnull | |
IL_0718: ldc.i4.1 | |
IL_0719: ldc.i4.0 | |
IL_071A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label, System.Action action, Verse.MenuOptionPriority priority, System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing revalidateClickTarget, System.Single extraPartWidth, System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI, RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean playSelectionSound, System.Int32 orderInPriority) | |
IL_071F: callvirt virtual System.Void System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption item) | |
IL_0724: Label37 | |
IL_0724: ldloc.s 12 (System.Collections.Generic.IEnumerator`1[Verse.LoadedLanguage]) | |
IL_0726: callvirt abstract virtual System.Boolean System.Collections.IEnumerator::MoveNext() | |
IL_072B: brtrue => Label38 | |
IL_0730: leave => Label39 | |
IL_0735: leave => (autogenerated) | |
} // end try | |
.finally | |
{ | |
IL_073A: ldloc.s 12 (System.Collections.Generic.IEnumerator`1[Verse.LoadedLanguage]) | |
IL_073C: brfalse => Label40 | |
IL_0741: ldloc.s 12 (System.Collections.Generic.IEnumerator`1[Verse.LoadedLanguage]) | |
IL_0743: callvirt abstract virtual System.Void System.IDisposable::Dispose() | |
IL_0748: Label40 | |
IL_0748: endfinally | |
IL_0749: leave => (autogenerated) | |
} // end handler | |
IL_074A: Label39 | |
IL_074A: call static Verse.WindowStack Verse.Find::get_WindowStack() | |
IL_074F: ldloc.s 11 (System.Collections.Generic.List`1[Verse.FloatMenuOption]) | |
IL_0751: newobj System.Void Verse.FloatMenu::.ctor(System.Collections.Generic.List`1<Verse.FloatMenuOption> options) | |
IL_0756: callvirt System.Void Verse.WindowStack::Add(Verse.Window window) | |
IL_075B: Label35 | |
IL_075B: Label36 | |
IL_075B: call static System.Void Verse.Widgets::EndGroup() | |
IL_0760: call static System.Void Verse.Widgets::EndGroup() | |
IL_0765: // end original | |
IL_0765: ret | |
DONE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment