Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVillageGuy committed Apr 11, 2024
2 parents 7cb7a90 + 0560bd9 commit 5f8205b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions Progress-Renderer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<Content Include="News\UpdateFeatureDefs\UpdateFeatures.xml" />
<Content Include="v1.4\Assemblies\Progress-Renderer.dll" />
<Content Include="v1.5\Assemblies\Progress-Renderer.dll" />
<Content Include="v1.5\Textures\PRicon.png" />
</ItemGroup>
<ItemGroup>
<None Include=".gitattributes" />
Expand Down
13 changes: 9 additions & 4 deletions Source/MapComponents/MapComponent_RenderManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#define VERSION_1_5

using System;
using System.Collections;
using System.IO;
using System.Threading.Tasks;
Expand Down Expand Up @@ -221,7 +223,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
showPollutionOverlay = settings.showPollutionOverlay,
showTemperatureOverlay = settings.showTemperatureOverlay
};
#if VERSION_1_5
var oldHighlight = Prefs.DotHighlightDisplayMode;
#endif

if (!PRModSettings.renderZones)
Find.PlaySettings.showZones = false;
Expand All @@ -233,8 +237,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
Find.PlaySettings.showPollutionOverlay = false;
Find.PlaySettings.showTemperatureOverlay = false;
}
#if VERSION_1_5
Prefs.DotHighlightDisplayMode = DotHighlightDisplayMode.None;

#endif
//TODO: Hide fog of war (stretch)

#endregion
Expand Down Expand Up @@ -478,9 +483,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
Find.PlaySettings.showTerrainAffordanceOverlay = oldVisibilities.showTerrainAffordanceOverlay;
Find.PlaySettings.showPollutionOverlay = oldVisibilities.showPollutionOverlay;
Find.PlaySettings.showTemperatureOverlay = oldVisibilities.showTemperatureOverlay;

#if VERSION_1_5
Prefs.DotHighlightDisplayMode = oldHighlight;

#endif
// Switch back to world view if needed
if (rememberedWorldRendered)
{
Expand Down

0 comments on commit 5f8205b

Please sign in to comment.