JonathanTroyer / Progress-Renderer

A mod for Rimworld. Automatically create scheduled renderings of the full map or only a chosen part of it.
GNU Lesser General Public License v3.0
2 stars 4 forks source link

Harmony patches for HeatMap, LightMap and all standard overlays #13

Closed ChrisF-127 closed 1 year ago

ChrisF-127 commented 2 years ago

I read that some people were requesting this mod to disable HeatMap's temperature overlay when rendering screenshots, so I added a Harmony patch for it and also included a patch for my own overlay mod, LightMap.

Initially I thought that skipping "MapInterface.MapInterfaceUpdate" would be enough to disable both the standard overlays, as well as the mods's overlays, but as they are applied via a PostFix-patch to that method, they will be executed regardless of whether it is skipped or not. I left the Harmony patch for the "MapInterface.MapInterfaceUpdate" in, as I deem it useful: technically it makes the existing patches for "Targeter", "SelectionDrawer", "EnvironmentStatsDrawer", "DesignatorManager", "RoofGrid" and "DeepResourceGrid" obsolete, and it also prevents "GotoController", "FertilityGrid", "TerrainGrid" and "ExitMapGrid" from drawing.

ChrisF-127 commented 1 year ago

Heat Map will override the vanilla overlay with the next version and I will modify Light Map for compatibility. All other overlays have already been taken care off with your recent changes, so I will close this request.