Skip to content

Commit 0560bd9

Browse files
Add a flag for easy conditional compilation of 1.5 features, include mod icon
1 parent e9bacc9 commit 0560bd9

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Progress-Renderer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
<Content Include="News\UpdateFeatureDefs\UpdateFeatures.xml" />
131131
<Content Include="v1.4\Assemblies\Progress-Renderer.dll" />
132132
<Content Include="v1.5\Assemblies\Progress-Renderer.dll" />
133+
<Content Include="v1.5\Textures\PRicon.png" />
133134
</ItemGroup>
134135
<ItemGroup>
135136
<None Include=".gitattributes" />

Source/MapComponents/MapComponent_RenderManager.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
#define VERSION_1_5
2+
3+
using System;
24
using System.Collections;
35
using System.IO;
46
using System.Threading.Tasks;
@@ -221,7 +223,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
221223
showPollutionOverlay = settings.showPollutionOverlay,
222224
showTemperatureOverlay = settings.showTemperatureOverlay
223225
};
226+
#if VERSION_1_5
224227
var oldHighlight = Prefs.DotHighlightDisplayMode;
228+
#endif
225229

226230
if (!PRModSettings.renderZones)
227231
Find.PlaySettings.showZones = false;
@@ -233,8 +237,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
233237
Find.PlaySettings.showPollutionOverlay = false;
234238
Find.PlaySettings.showTemperatureOverlay = false;
235239
}
240+
#if VERSION_1_5
236241
Prefs.DotHighlightDisplayMode = DotHighlightDisplayMode.None;
237-
242+
#endif
238243
//TODO: Hide fog of war (stretch)
239244

240245
#endregion
@@ -478,9 +483,9 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
478483
Find.PlaySettings.showTerrainAffordanceOverlay = oldVisibilities.showTerrainAffordanceOverlay;
479484
Find.PlaySettings.showPollutionOverlay = oldVisibilities.showPollutionOverlay;
480485
Find.PlaySettings.showTemperatureOverlay = oldVisibilities.showTemperatureOverlay;
481-
486+
#if VERSION_1_5
482487
Prefs.DotHighlightDisplayMode = oldHighlight;
483-
488+
#endif
484489
// Switch back to world view if needed
485490
if (rememberedWorldRendered)
486491
{

0 commit comments

Comments
 (0)