0% found this document useful (0 votes)
10 views19 pages

Harmony Log

The document outlines a patch for the method MouseoverReadoutOnGUI in the Verse.MouseoverReadout class, detailing the changes made to its implementation. It includes a series of instructions and local variable declarations that are part of the method's functionality. The patch appears to enhance the user interface by modifying how mouseover information is displayed in the game RimWorld.

Uploaded by

Ramiro Tost
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views19 pages

Harmony Log

The document outlines a patch for the method MouseoverReadoutOnGUI in the Verse.MouseoverReadout class, detailing the changes made to its implementation. It includes a series of instructions and local variable declarations that are part of the method's functionality. The patch appears to enhance the user interface by modifying how mouseover information is displayed in the game RimWorld.

Uploaded by

Ramiro Tost
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 19

### Patch: System.Void Verse.

MouseoverReadout::MouseoverReadoutOnGUI()
### Replacement: static System.Void
Verse.MouseoverReadout::Verse.MouseoverReadout.MouseoverReadoutOnGUI_Patch1(Verse.M
ouseoverReadout this)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.Zone
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 5: Verse.RoofDef
IL_0000: Local var 6: Verse.TerrainDef
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.String
IL_0000: Local var 10: System.String
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: System.String
IL_0000: Local var 13: Verse.SnowCategory
IL_0000: Local var 14: System.String
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.Thing
IL_0000: Local var 17: RimWorld.CompSelectProxy
IL_0000: Local var 18: Verse.Pawn
IL_0000: Local var 19: System.String
IL_0000: // start original
IL_0000: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0005: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_000A: ldc.i4.7
IL_000B: beq => Label0
IL_0010: br => Label23
IL_0015: Label0
IL_0015: call static RimWorld.MainTabsRoot Verse.Find::get_MainTabsRoot()
IL_001A: callvirt RimWorld.MainButtonDef RimWorld.MainTabsRoot::get_OpenTab()
IL_001F: brfalse => Label1
IL_0024: br => Label24
IL_0029: Label1
IL_0029: ldc.r4 256
IL_002E: ldsfld System.Int32 Verse.UI::screenHeight
IL_0033: ldc.i4 256
IL_0038: sub
IL_0039: conv.r4
IL_003A: ldc.r4 -256
IL_003F: ldc.r4 256
IL_0044: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0049: call static System.Void
Verse.GenUI::DrawTextWinterShadow(UnityEngine.Rect rect)
IL_004E: ldc.i4.1
IL_004F: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0054: ldc.r4 1
IL_0059: ldc.r4 1
IL_005E: ldc.r4 1
IL_0063: ldc.r4 0.8
IL_0068: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_006D: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0072: call static Verse.IntVec3 Verse.UI::MouseCell()
IL_0077: stloc.0
IL_0078: ldloc.0
IL_0079: call static Verse.Map Verse.Find::get_CurrentMap()
IL_007E: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0083: brtrue => Label2
IL_0088: br => Label25
IL_008D: Label2
IL_008D: call static System.Single
MSSFP.HarmonyPatches.MouseoverReadout_Patch::DrawMrStreamer()
IL_0092: stloc.1
IL_0093: ldloc.0
IL_0094: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0099: call static System.Boolean Verse.GridsUtility::Fogged(Verse.IntVec3
c, Verse.Map map)
IL_009E: brfalse => Label3
IL_00A3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00A8: ldfld System.Single UnityEngine.Vector2::x
IL_00AD: ldsfld System.Int32 Verse.UI::screenHeight
IL_00B2: conv.r4
IL_00B3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00B8: ldfld System.Single UnityEngine.Vector2::y
IL_00BD: sub
IL_00BE: ldloc.1
IL_00BF: sub
IL_00C0: ldc.r4 999
IL_00C5: ldc.r4 999
IL_00CA: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00CF: ldstr "Undiscovered"
IL_00D4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00D9: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_00DE: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_00E3: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00E8: br => Label26
IL_00ED: Label3
IL_00ED: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00F2: ldfld System.Single UnityEngine.Vector2::x
IL_00F7: ldsfld System.Int32 Verse.UI::screenHeight
IL_00FC: conv.r4
IL_00FD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0102: ldfld System.Single UnityEngine.Vector2::y
IL_0107: sub
IL_0108: ldloc.1
IL_0109: sub
IL_010A: ldc.r4 999
IL_010F: ldc.r4 999
IL_0114: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0119: call static Verse.Map Verse.Find::get_CurrentMap()
IL_011E: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_0123: ldloc.0
IL_0124: ldc.i4.0
IL_0125: ldc.i4.0
IL_0126: callvirt System.Single Verse.GlowGrid::GroundGlowAt(Verse.IntVec3 c,
System.Boolean ignoreCavePlants, System.Boolean ignoreSky)
IL_012B: call static System.String
Verse.MouseoverUtility::GetGlowLabelByValue(System.Single value)
IL_0130: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0135: ldloc.1
IL_0136: ldc.r4 19
IL_013B: add
IL_013C: stloc.1
IL_013D: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0142: ldfld System.Single UnityEngine.Vector2::x
IL_0147: ldsfld System.Int32 Verse.UI::screenHeight
IL_014C: conv.r4
IL_014D: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0152: ldfld System.Single UnityEngine.Vector2::y
IL_0157: sub
IL_0158: ldloc.1
IL_0159: sub
IL_015A: ldc.r4 999
IL_015F: ldc.r4 999
IL_0164: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0169: ldloc.0
IL_016A: call static Verse.Map Verse.Find::get_CurrentMap()
IL_016F: call static Verse.TerrainDef
Verse.GridsUtility::GetTerrain(Verse.IntVec3 c, Verse.Map map)
IL_0174: stloc.s 6 (Verse.TerrainDef)
IL_0176: ldloc.s 6
IL_0178: call static System.Void
ReGrowthCore.CellInspectorDrawer_DrawMapInspector_Patch::TerrainLabelReplacement(Ve
rse.TerrainDef def)
IL_017D: ldloc.0
IL_017E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0183: call static System.Boolean
Verse.GridsUtility::IsPolluted(Verse.IntVec3 c, Verse.Map map)
IL_0188: stloc.s 7 (System.Boolean)
IL_018A: ldloc.s 6 (Verse.TerrainDef)
IL_018C: ldarg.0
IL_018D: ldfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0192: bne.un => Label4
IL_0197: ldloc.s 7 (System.Boolean)
IL_0199: ldarg.0
IL_019A: ldfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_019F: beq => Label5
IL_01A4: Label4
IL_01A4: ldloc.0
IL_01A5: call static Verse.Map Verse.Find::get_CurrentMap()
IL_01AA: call static System.Single
Verse.GridsUtility::GetFertility(Verse.IntVec3 c, Verse.Map map)
IL_01AF: stloc.s 8 (System.Single)
IL_01B1: ldloc.s 8 (System.Single)
IL_01B3: conv.r8
IL_01B4: ldc.r8 0.0001
IL_01BD: bgt => Label6
IL_01C2: ldstr ""
IL_01C7: br => Label7
IL_01CC: Label6
IL_01CC: ldstr " "
IL_01D1: ldstr "FertShort"
IL_01D6: call static System.String
Verse.Translator::TranslateSimple(System.String key)
IL_01DB: ldstr " "
IL_01E0: ldloc.s 8 (System.Single)
IL_01E2: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_01E7: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_01EC: Label7
IL_01EC: stloc.s 9 (System.String)
IL_01EE: ldloc.s 7 (System.Boolean)
IL_01F0: brtrue => Label8
IL_01F5: ldloc.s 6 (Verse.TerrainDef)
IL_01F7: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_01FC: br => Label9
IL_0201: Label8
IL_0201: ldstr "PollutedTerrain"
IL_0206: ldloc.s 6 (Verse.TerrainDef)
IL_0208: ldfld System.String Verse.Def::label
IL_020D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0212: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0217: stloc.s 11 (Verse.TaggedString)
IL_0219: ldloca.s 11 (Verse.TaggedString)
IL_021B: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0220: Label9
IL_0220: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0225: stloc.s 10 (System.String)
IL_0227: ldarg.0
IL_0228: ldloc.s 10 (System.String)
IL_022A: ldloc.s 6 (Verse.TerrainDef)
IL_022C: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0231: ldc.i4.2
IL_0232: bne.un => Label10
IL_0237: ldnull
IL_0238: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_023D: br => Label11
IL_0242: Label10
IL_0242: ldstr " ("
IL_0247: ldstr "WalkSpeed"
IL_024C: ldloc.s 6 (Verse.TerrainDef)
IL_024E: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_0253: conv.r4
IL_0254: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_0259: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_025E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0263: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0268: ldloc.s 9 (System.String)
IL_026A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_026F: ldstr ")"
IL_0274: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0279: Label11
IL_0279: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_027E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0283: stfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_0288: ldarg.0
IL_0289: ldloc.s 6 (Verse.TerrainDef)
IL_028B: stfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0290: ldarg.0
IL_0291: ldloc.s 7 (System.Boolean)
IL_0293: stfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_0298: Label5
IL_0298: ldarg.0
IL_0299: ldfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_029E: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_02A3: ldloc.1
IL_02A4: ldc.r4 19
IL_02A9: add
IL_02AA: stloc.1
IL_02AB: ldloc.0
IL_02AC: call static Verse.Map Verse.Find::get_CurrentMap()
IL_02B1: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_02B6: stloc.2
IL_02B7: ldloc.2
IL_02B8: brfalse => Label12
IL_02BD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02C2: ldfld System.Single UnityEngine.Vector2::x
IL_02C7: ldsfld System.Int32 Verse.UI::screenHeight
IL_02CC: conv.r4
IL_02CD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02D2: ldfld System.Single UnityEngine.Vector2::y
IL_02D7: sub
IL_02D8: ldloc.1
IL_02D9: sub
IL_02DA: ldc.r4 999
IL_02DF: ldc.r4 999
IL_02E4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02E9: ldloc.2
IL_02EA: ldfld System.String Verse.Zone::label
IL_02EF: stloc.s 12 (System.String)
IL_02F1: ldloc.s 12 (System.String)
IL_02F3: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_02F8: ldloc.1
IL_02F9: ldc.r4 19
IL_02FE: add
IL_02FF: stloc.1
IL_0300: Label12
IL_0300: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0305: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_030A: ldloc.0
IL_030B: callvirt System.Single Verse.SnowGrid::GetDepth(Verse.IntVec3 c)
IL_0310: stloc.3
IL_0311: ldloc.3
IL_0312: ldc.r4 0.03
IL_0317: ble.un => Label13
IL_031C: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0321: ldfld System.Single UnityEngine.Vector2::x
IL_0326: ldsfld System.Int32 Verse.UI::screenHeight
IL_032B: conv.r4
IL_032C: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0331: ldfld System.Single UnityEngine.Vector2::y
IL_0336: sub
IL_0337: ldloc.1
IL_0338: sub
IL_0339: ldc.r4 999
IL_033E: ldc.r4 999
IL_0343: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0348: ldloc.3
IL_0349: call static Verse.SnowCategory
Verse.SnowUtility::GetSnowCategory(System.Single snowDepth)
IL_034E: stloc.s 13 (Verse.SnowCategory)
IL_0350: ldstr "Snow"
IL_0355: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_035A: ldstr "("
IL_035F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0364: ldloc.s 13 (Verse.SnowCategory)
IL_0366: call static System.String
Verse.SnowUtility::GetDescription(Verse.SnowCategory category)
IL_036B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0370: ldstr ")"
IL_0375: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_037A: ldstr " ("
IL_037F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0384: ldstr "WalkSpeed"
IL_0389: ldloc.s 13 (Verse.SnowCategory)
IL_038B: call static System.Int32
Verse.SnowUtility::MovementTicksAddOn(Verse.SnowCategory category)
IL_0390: conv.r4
IL_0391: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_0396: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_039B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_03A0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_03A5: ldstr ")"
IL_03AA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_03AF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03B4: stloc.s 14 (System.String)
IL_03B6: ldloc.s 14 (System.String)
IL_03B8: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_03BD: ldloc.1
IL_03BE: ldc.r4 19
IL_03C3: add
IL_03C4: stloc.1
IL_03C5: Label13
IL_03C5: ldloc.0
IL_03C6: call static Verse.Map Verse.Find::get_CurrentMap()
IL_03CB: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_03D0: stloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03D2: ldc.i4.0
IL_03D3: stloc.s 15 (System.Int32)
IL_03D5: br => Label14
IL_03DA: Label20
IL_03DA: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03DC: ldloc.s 15 (System.Int32)
IL_03DE: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_03E3: stloc.s 16 (Verse.Thing)
IL_03E5: ldloc.s 16 (Verse.Thing)
IL_03E7: call static RimWorld.CompSelectProxy
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_03EC: dup
IL_03ED: stloc.s 17 (RimWorld.CompSelectProxy)
IL_03EF: brfalse => Label15
IL_03F4: ldloc.s 17 (RimWorld.CompSelectProxy)
IL_03F6: ldfld Verse.Thing RimWorld.CompSelectProxy::thingToSelect
IL_03FB: brfalse => Label16
IL_0400: ldloc.s 17 (RimWorld.CompSelectProxy)
IL_0402: ldfld Verse.Thing RimWorld.CompSelectProxy::thingToSelect
IL_0407: stloc.s 16 (Verse.Thing)
IL_0409: Label15
IL_0409: Label16
IL_0409: ldloc.s 16 (Verse.Thing)
IL_040B: ldfld Verse.ThingDef Verse.Thing::def
IL_0410: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0415: ldc.i4.s 9
IL_0417: beq => Label17
IL_041C: ldloc.s 16 (Verse.Thing)
IL_041E: isinst Verse.Pawn
IL_0423: dup
IL_0424: stloc.s 18 (Verse.Pawn)
IL_0426: brfalse => Label18
IL_042B: ldloc.s 18 (Verse.Pawn)
IL_042D: call static System.Boolean
RimWorld.InvisibilityUtility::IsHiddenFromPlayer(Verse.Pawn pawn)
IL_0432: brtrue => Label19
IL_0437: Label18
IL_0437: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_043C: ldfld System.Single UnityEngine.Vector2::x
IL_0441: ldsfld System.Int32 Verse.UI::screenHeight
IL_0446: conv.r4
IL_0447: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_044C: ldfld System.Single UnityEngine.Vector2::y
IL_0451: sub
IL_0452: ldloc.1
IL_0453: sub
IL_0454: ldc.r4 999
IL_0459: ldc.r4 999
IL_045E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0463: ldloc.s 16 (Verse.Thing)
IL_0465: callvirt virtual System.String Verse.Entity::get_LabelMouseover()
IL_046A: stloc.s 19 (System.String)
IL_046C: ldloc.s 19 (System.String)
IL_046E: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0473: ldloc.1
IL_0474: ldc.r4 19
IL_0479: add
IL_047A: stloc.1
IL_047B: Label17
IL_047B: Label19
IL_047B: ldloc.s 15 (System.Int32)
IL_047D: ldc.i4.1
IL_047E: add
IL_047F: stloc.s 15 (System.Int32)
IL_0481: Label14
IL_0481: ldloc.s 15 (System.Int32)
IL_0483: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_0485: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_048A: blt => Label20
IL_048F: ldloc.0
IL_0490: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0495: call static Verse.RoofDef Verse.GridsUtility::GetRoof(Verse.IntVec3
c, Verse.Map map)
IL_049A: stloc.s 5 (Verse.RoofDef)
IL_049C: ldloc.s 5 (Verse.RoofDef)
IL_049E: brfalse => Label21
IL_04A3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_04A8: ldfld System.Single UnityEngine.Vector2::x
IL_04AD: ldsfld System.Int32 Verse.UI::screenHeight
IL_04B2: conv.r4
IL_04B3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_04B8: ldfld System.Single UnityEngine.Vector2::y
IL_04BD: sub
IL_04BE: ldloc.1
IL_04BF: sub
IL_04C0: ldc.r4 999
IL_04C5: ldc.r4 999
IL_04CA: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_04CF: ldloc.s 5 (Verse.RoofDef)
IL_04D1: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_04D6: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_04DB: ldloc.1
IL_04DC: ldc.r4 19
IL_04E1: add
IL_04E2: stloc.1
IL_04E3: Label21
IL_04E3: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04E8: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_04ED: ldloc.0
IL_04EE: callvirt System.Boolean Verse.GasGrid::AnyGasAt(Verse.IntVec3 cell)
IL_04F3: brfalse => Label22
IL_04F8: ldarg.0
IL_04F9: ldc.i4.0
IL_04FA: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04FF: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0504: ldloc.0
IL_0505: ldc.i4.0
IL_0506: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_050B: ldloca.s 1 (System.Single)
IL_050D: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0512: ldarg.0
IL_0513: ldc.i4.8
IL_0514: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0519: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_051E: ldloc.0
IL_051F: ldc.i4.8
IL_0520: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_0525: ldloca.s 1 (System.Single)
IL_0527: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_052C: ldarg.0
IL_052D: ldc.i4.s 16
IL_052F: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0534: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0539: ldloc.0
IL_053A: ldc.i4.s 16
IL_053C: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_0541: ldloca.s 1 (System.Single)
IL_0543: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0548: ldarg.0
IL_0549: ldc.i4.s 24
IL_054B: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0550: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0555: ldloc.0
IL_0556: ldc.i4.s 24
IL_0558: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_055D: ldloca.s 1 (System.Single)
IL_055F: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0564: Label22
IL_0564: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0569: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_056E: // end original
IL_056E: Label23
IL_056E: Label24
IL_056E: Label25
IL_056E: Label26
IL_056E: call static System.Void
ReGrowthCore.MouseoverReadout_MouseoverReadoutOnGUI_Patch::Postfix()
IL_0573: ret
DONE

### Patch: System.Void Verse.MouseoverReadout::MouseoverReadoutOnGUI()


### Replacement: static System.Void
Verse.MouseoverReadout::Verse.MouseoverReadout.MouseoverReadoutOnGUI_Patch1(Verse.M
ouseoverReadout this)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.Zone
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 5: Verse.RoofDef
IL_0000: Local var 6: Verse.TerrainDef
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.String
IL_0000: Local var 10: System.String
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: System.String
IL_0000: Local var 13: Verse.SnowCategory
IL_0000: Local var 14: System.String
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.Thing
IL_0000: Local var 17: RimWorld.CompSelectProxy
IL_0000: Local var 18: Verse.Pawn
IL_0000: Local var 19: System.String
IL_0000: // start original
IL_0000: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0005: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_000A: ldc.i4.7
IL_000B: beq => Label0
IL_0010: br => Label23
IL_0015: Label0
IL_0015: call static RimWorld.MainTabsRoot Verse.Find::get_MainTabsRoot()
IL_001A: callvirt RimWorld.MainButtonDef RimWorld.MainTabsRoot::get_OpenTab()
IL_001F: brfalse => Label1
IL_0024: br => Label24
IL_0029: Label1
IL_0029: ldc.r4 256
IL_002E: ldsfld System.Int32 Verse.UI::screenHeight
IL_0033: ldc.i4 256
IL_0038: sub
IL_0039: conv.r4
IL_003A: ldc.r4 -256
IL_003F: ldc.r4 256
IL_0044: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0049: call static System.Void
Verse.GenUI::DrawTextWinterShadow(UnityEngine.Rect rect)
IL_004E: ldc.i4.1
IL_004F: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0054: ldc.r4 1
IL_0059: ldc.r4 1
IL_005E: ldc.r4 1
IL_0063: ldc.r4 0.8
IL_0068: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_006D: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0072: call static Verse.IntVec3 Verse.UI::MouseCell()
IL_0077: stloc.0
IL_0078: ldloc.0
IL_0079: call static Verse.Map Verse.Find::get_CurrentMap()
IL_007E: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0083: brtrue => Label2
IL_0088: br => Label25
IL_008D: Label2
IL_008D: call static System.Single
MSSFP.HarmonyPatches.MouseoverReadout_Patch::DrawMrStreamer()
IL_0092: stloc.1
IL_0093: ldloc.0
IL_0094: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0099: call static System.Boolean Verse.GridsUtility::Fogged(Verse.IntVec3
c, Verse.Map map)
IL_009E: brfalse => Label3
IL_00A3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00A8: ldfld System.Single UnityEngine.Vector2::x
IL_00AD: ldsfld System.Int32 Verse.UI::screenHeight
IL_00B2: conv.r4
IL_00B3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00B8: ldfld System.Single UnityEngine.Vector2::y
IL_00BD: sub
IL_00BE: ldloc.1
IL_00BF: sub
IL_00C0: ldc.r4 999
IL_00C5: ldc.r4 999
IL_00CA: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00CF: ldstr "Undiscovered"
IL_00D4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00D9: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_00DE: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_00E3: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00E8: br => Label26
IL_00ED: Label3
IL_00ED: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00F2: ldfld System.Single UnityEngine.Vector2::x
IL_00F7: ldsfld System.Int32 Verse.UI::screenHeight
IL_00FC: conv.r4
IL_00FD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0102: ldfld System.Single UnityEngine.Vector2::y
IL_0107: sub
IL_0108: ldloc.1
IL_0109: sub
IL_010A: ldc.r4 999
IL_010F: ldc.r4 999
IL_0114: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0119: call static Verse.Map Verse.Find::get_CurrentMap()
IL_011E: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_0123: ldloc.0
IL_0124: ldc.i4.0
IL_0125: ldc.i4.0
IL_0126: callvirt System.Single Verse.GlowGrid::GroundGlowAt(Verse.IntVec3 c,
System.Boolean ignoreCavePlants, System.Boolean ignoreSky)
IL_012B: call static System.String
Verse.MouseoverUtility::GetGlowLabelByValue(System.Single value)
IL_0130: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0135: ldloc.1
IL_0136: ldc.r4 19
IL_013B: add
IL_013C: stloc.1
IL_013D: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0142: ldfld System.Single UnityEngine.Vector2::x
IL_0147: ldsfld System.Int32 Verse.UI::screenHeight
IL_014C: conv.r4
IL_014D: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0152: ldfld System.Single UnityEngine.Vector2::y
IL_0157: sub
IL_0158: ldloc.1
IL_0159: sub
IL_015A: ldc.r4 999
IL_015F: ldc.r4 999
IL_0164: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0169: ldloc.0
IL_016A: call static Verse.Map Verse.Find::get_CurrentMap()
IL_016F: call static Verse.TerrainDef
Verse.GridsUtility::GetTerrain(Verse.IntVec3 c, Verse.Map map)
IL_0174: stloc.s 6 (Verse.TerrainDef)
IL_0176: ldloc.s 6
IL_0178: call static System.Void
ReGrowthCore.CellInspectorDrawer_DrawMapInspector_Patch::TerrainLabelReplacement(Ve
rse.TerrainDef def)
IL_017D: ldloc.0
IL_017E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0183: call static System.Boolean
Verse.GridsUtility::IsPolluted(Verse.IntVec3 c, Verse.Map map)
IL_0188: stloc.s 7 (System.Boolean)
IL_018A: ldloc.s 6 (Verse.TerrainDef)
IL_018C: ldarg.0
IL_018D: ldfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0192: bne.un => Label4
IL_0197: ldloc.s 7 (System.Boolean)
IL_0199: ldarg.0
IL_019A: ldfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_019F: beq => Label5
IL_01A4: Label4
IL_01A4: ldloc.0
IL_01A5: call static Verse.Map Verse.Find::get_CurrentMap()
IL_01AA: call static System.Single
Verse.GridsUtility::GetFertility(Verse.IntVec3 c, Verse.Map map)
IL_01AF: stloc.s 8 (System.Single)
IL_01B1: ldloc.s 8 (System.Single)
IL_01B3: conv.r8
IL_01B4: ldc.r8 0.0001
IL_01BD: bgt => Label6
IL_01C2: ldstr ""
IL_01C7: br => Label7
IL_01CC: Label6
IL_01CC: ldstr " "
IL_01D1: ldstr "FertShort"
IL_01D6: call static System.String
Verse.Translator::TranslateSimple(System.String key)
IL_01DB: ldstr " "
IL_01E0: ldloc.s 8 (System.Single)
IL_01E2: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_01E7: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_01EC: Label7
IL_01EC: stloc.s 9 (System.String)
IL_01EE: ldloc.s 7 (System.Boolean)
IL_01F0: brtrue => Label8
IL_01F5: ldloc.s 6 (Verse.TerrainDef)
IL_01F7: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_01FC: br => Label9
IL_0201: Label8
IL_0201: ldstr "PollutedTerrain"
IL_0206: ldloc.s 6 (Verse.TerrainDef)
IL_0208: ldfld System.String Verse.Def::label
IL_020D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0212: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0217: stloc.s 11 (Verse.TaggedString)
IL_0219: ldloca.s 11 (Verse.TaggedString)
IL_021B: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0220: Label9
IL_0220: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0225: stloc.s 10 (System.String)
IL_0227: ldarg.0
IL_0228: ldloc.s 10 (System.String)
IL_022A: ldloc.s 6 (Verse.TerrainDef)
IL_022C: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0231: ldc.i4.2
IL_0232: bne.un => Label10
IL_0237: ldnull
IL_0238: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_023D: br => Label11
IL_0242: Label10
IL_0242: ldstr " ("
IL_0247: ldstr "WalkSpeed"
IL_024C: ldloc.s 6 (Verse.TerrainDef)
IL_024E: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_0253: conv.r4
IL_0254: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_0259: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_025E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0263: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0268: ldloc.s 9 (System.String)
IL_026A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_026F: ldstr ")"
IL_0274: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0279: Label11
IL_0279: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_027E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0283: stfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_0288: ldarg.0
IL_0289: ldloc.s 6 (Verse.TerrainDef)
IL_028B: stfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0290: ldarg.0
IL_0291: ldloc.s 7 (System.Boolean)
IL_0293: stfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_0298: Label5
IL_0298: ldarg.0
IL_0299: ldfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_029E: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_02A3: ldloc.1
IL_02A4: ldc.r4 19
IL_02A9: add
IL_02AA: stloc.1
IL_02AB: ldloc.0
IL_02AC: call static Verse.Map Verse.Find::get_CurrentMap()
IL_02B1: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_02B6: stloc.2
IL_02B7: ldloc.2
IL_02B8: brfalse => Label12
IL_02BD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02C2: ldfld System.Single UnityEngine.Vector2::x
IL_02C7: ldsfld System.Int32 Verse.UI::screenHeight
IL_02CC: conv.r4
IL_02CD: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02D2: ldfld System.Single UnityEngine.Vector2::y
IL_02D7: sub
IL_02D8: ldloc.1
IL_02D9: sub
IL_02DA: ldc.r4 999
IL_02DF: ldc.r4 999
IL_02E4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02E9: ldloc.2
IL_02EA: ldfld System.String Verse.Zone::label
IL_02EF: stloc.s 12 (System.String)
IL_02F1: ldloc.s 12 (System.String)
IL_02F3: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_02F8: ldloc.1
IL_02F9: ldc.r4 19
IL_02FE: add
IL_02FF: stloc.1
IL_0300: Label12
IL_0300: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0305: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_030A: ldloc.0
IL_030B: callvirt System.Single Verse.SnowGrid::GetDepth(Verse.IntVec3 c)
IL_0310: stloc.3
IL_0311: ldloc.3
IL_0312: ldc.r4 0.03
IL_0317: ble.un => Label13
IL_031C: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0321: ldfld System.Single UnityEngine.Vector2::x
IL_0326: ldsfld System.Int32 Verse.UI::screenHeight
IL_032B: conv.r4
IL_032C: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0331: ldfld System.Single UnityEngine.Vector2::y
IL_0336: sub
IL_0337: ldloc.1
IL_0338: sub
IL_0339: ldc.r4 999
IL_033E: ldc.r4 999
IL_0343: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0348: ldloc.3
IL_0349: call static Verse.SnowCategory
Verse.SnowUtility::GetSnowCategory(System.Single snowDepth)
IL_034E: stloc.s 13 (Verse.SnowCategory)
IL_0350: ldstr "Snow"
IL_0355: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_035A: ldstr "("
IL_035F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0364: ldloc.s 13 (Verse.SnowCategory)
IL_0366: call static System.String
Verse.SnowUtility::GetDescription(Verse.SnowCategory category)
IL_036B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0370: ldstr ")"
IL_0375: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_037A: ldstr " ("
IL_037F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0384: ldstr "WalkSpeed"
IL_0389: ldloc.s 13 (Verse.SnowCategory)
IL_038B: call static System.Int32
Verse.SnowUtility::MovementTicksAddOn(Verse.SnowCategory category)
IL_0390: conv.r4
IL_0391: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_0396: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_039B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_03A0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_03A5: ldstr ")"
IL_03AA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_03AF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03B4: stloc.s 14 (System.String)
IL_03B6: ldloc.s 14 (System.String)
IL_03B8: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_03BD: ldloc.1
IL_03BE: ldc.r4 19
IL_03C3: add
IL_03C4: stloc.1
IL_03C5: Label13
IL_03C5: ldloc.0
IL_03C6: call static Verse.Map Verse.Find::get_CurrentMap()
IL_03CB: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_03D0: stloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03D2: ldc.i4.0
IL_03D3: stloc.s 15 (System.Int32)
IL_03D5: br => Label14
IL_03DA: Label20
IL_03DA: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03DC: ldloc.s 15 (System.Int32)
IL_03DE: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_03E3: stloc.s 16 (Verse.Thing)
IL_03E5: ldloc.s 16 (Verse.Thing)
IL_03E7: call static RimWorld.CompSelectProxy
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_03EC: dup
IL_03ED: stloc.s 17 (RimWorld.CompSelectProxy)
IL_03EF: brfalse => Label15
IL_03F4: ldloc.s 17 (RimWorld.CompSelectProxy)
IL_03F6: ldfld Verse.Thing RimWorld.CompSelectProxy::thingToSelect
IL_03FB: brfalse => Label16
IL_0400: ldloc.s 17 (RimWorld.CompSelectProxy)
IL_0402: ldfld Verse.Thing RimWorld.CompSelectProxy::thingToSelect
IL_0407: stloc.s 16 (Verse.Thing)
IL_0409: Label15
IL_0409: Label16
IL_0409: ldloc.s 16 (Verse.Thing)
IL_040B: ldfld Verse.ThingDef Verse.Thing::def
IL_0410: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0415: ldc.i4.s 9
IL_0417: beq => Label17
IL_041C: ldloc.s 16 (Verse.Thing)
IL_041E: isinst Verse.Pawn
IL_0423: dup
IL_0424: stloc.s 18 (Verse.Pawn)
IL_0426: brfalse => Label18
IL_042B: ldloc.s 18 (Verse.Pawn)
IL_042D: call static System.Boolean
RimWorld.InvisibilityUtility::IsHiddenFromPlayer(Verse.Pawn pawn)
IL_0432: brtrue => Label19
IL_0437: Label18
IL_0437: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_043C: ldfld System.Single UnityEngine.Vector2::x
IL_0441: ldsfld System.Int32 Verse.UI::screenHeight
IL_0446: conv.r4
IL_0447: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_044C: ldfld System.Single UnityEngine.Vector2::y
IL_0451: sub
IL_0452: ldloc.1
IL_0453: sub
IL_0454: ldc.r4 999
IL_0459: ldc.r4 999
IL_045E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0463: ldloc.s 16 (Verse.Thing)
IL_0465: callvirt virtual System.String Verse.Entity::get_LabelMouseover()
IL_046A: stloc.s 19 (System.String)
IL_046C: ldloc.s 19 (System.String)
IL_046E: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0473: ldloc.1
IL_0474: ldc.r4 19
IL_0479: add
IL_047A: stloc.1
IL_047B: Label17
IL_047B: Label19
IL_047B: ldloc.s 15 (System.Int32)
IL_047D: ldc.i4.1
IL_047E: add
IL_047F: stloc.s 15 (System.Int32)
IL_0481: Label14
IL_0481: ldloc.s 15 (System.Int32)
IL_0483: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_0485: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_048A: blt => Label20
IL_048F: ldloc.0
IL_0490: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0495: call static Verse.RoofDef Verse.GridsUtility::GetRoof(Verse.IntVec3
c, Verse.Map map)
IL_049A: stloc.s 5 (Verse.RoofDef)
IL_049C: ldloc.s 5 (Verse.RoofDef)
IL_049E: brfalse => Label21
IL_04A3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_04A8: ldfld System.Single UnityEngine.Vector2::x
IL_04AD: ldsfld System.Int32 Verse.UI::screenHeight
IL_04B2: conv.r4
IL_04B3: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_04B8: ldfld System.Single UnityEngine.Vector2::y
IL_04BD: sub
IL_04BE: ldloc.1
IL_04BF: sub
IL_04C0: ldc.r4 999
IL_04C5: ldc.r4 999
IL_04CA: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_04CF: ldloc.s 5 (Verse.RoofDef)
IL_04D1: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_04D6: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_04DB: ldloc.1
IL_04DC: ldc.r4 19
IL_04E1: add
IL_04E2: stloc.1
IL_04E3: Label21
IL_04E3: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04E8: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_04ED: ldloc.0
IL_04EE: callvirt System.Boolean Verse.GasGrid::AnyGasAt(Verse.IntVec3 cell)
IL_04F3: brfalse => Label22
IL_04F8: ldarg.0
IL_04F9: ldc.i4.0
IL_04FA: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04FF: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0504: ldloc.0
IL_0505: ldc.i4.0
IL_0506: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_050B: ldloca.s 1 (System.Single)
IL_050D: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0512: ldarg.0
IL_0513: ldc.i4.8
IL_0514: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0519: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_051E: ldloc.0
IL_051F: ldc.i4.8
IL_0520: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_0525: ldloca.s 1 (System.Single)
IL_0527: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_052C: ldarg.0
IL_052D: ldc.i4.s 16
IL_052F: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0534: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0539: ldloc.0
IL_053A: ldc.i4.s 16
IL_053C: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_0541: ldloca.s 1 (System.Single)
IL_0543: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0548: ldarg.0
IL_0549: ldc.i4.s 24
IL_054B: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0550: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0555: ldloc.0
IL_0556: ldc.i4.s 24
IL_0558: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_055D: ldloca.s 1 (System.Single)
IL_055F: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0564: Label22
IL_0564: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0569: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_056E: ldloc.0
IL_056F: ldloc.1
IL_0570: call static System.Single
VEE.HarmonyInit::AddDroughtLine(Verse.IntVec3 cell, System.Single num)
IL_0575: stloc.1
IL_0576: // end original
IL_0576: Label23
IL_0576: Label24
IL_0576: Label25
IL_0576: Label26
IL_0576: call static System.Void
ReGrowthCore.MouseoverReadout_MouseoverReadoutOnGUI_Patch::Postfix()
IL_057B: ret
DONE

You might also like