Skip to content

Commit

Permalink
v2.6.2 removes error when pressing pause key too early
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Nov 12, 2023
1 parent 0a7282f commit b13fe13
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
Binary file modified 1.4/Assemblies/CameraPlus.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</li>
</modDependencies>
<packageId>brrainz.cameraplus</packageId>
<modVersion>2.6.1.0</modVersion>
<modVersion>2.6.2.0</modVersion>
<steamAppId>867467808</steamAppId>
<url>https://github.com/pardeike/CameraPlus</url>
<description>You want more zoom and different paning?
Expand Down
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>net.pardeike.rimworld.mod.cameraplus</identifier>
<version>2.6.1.0</version>
<version>2.6.2.0</version>
<targetVersions>
<li>1.0.0</li>
<li>1.1.0</li>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ModName>Camera+</ModName>
<ModFileName>CameraPlus</ModFileName>
<Repository>https://github.com/pardeike/CameraPlus</Repository>
<ModVersion>2.6.1.0</ModVersion>
<ModVersion>2.6.2.0</ModVersion>
<ProjectGuid>{AC5EE7A1-16EA-498D-B21A-83ACF78F0E5A}</ProjectGuid>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Source/CameraPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<ItemGroup>
<PackageReference Include="Brrainz.RimWorld.CrossPromotion" Version="1.1.1" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.4.3704" GeneratePathProperty="true" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.4.3901" GeneratePathProperty="true" />
<PackageReference Include="Lib.Harmony" Version="2.2.2" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472" Version="1.0.3">
Expand Down
3 changes: 3 additions & 0 deletions Source/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ static class KeyBindingDef_KeyDownEvent_Patch

public static void CleanupAtEndOfFrame()
{
if (Current.ProgramState != ProgramState.Playing)
return;

if (Event.current.type == EventType.KeyUp && KeyBindingDefOf.TogglePause.IsDown == false)
wasDown = false;

Expand Down
3 changes: 2 additions & 1 deletion Source/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public static void DrawDot(Pawn pawn, Color innerColor, Color outerColor)
else
color = new Color(color32s[0].r / 255f, color32s[0].g / 255f, color32s[0].b / 255f);

UnityEngine.Object.Destroy(outputTexture);
cachedMainColors[key] = color;
}
return color;
Expand Down Expand Up @@ -405,7 +406,7 @@ IEnumerator ApplyRootPosAndSize()

public static void HandleHotkeys()
{
if (Event.current.type == EventType.Repaint)
if (Event.current.type == EventType.Repaint || Current.ProgramState != ProgramState.Playing)
return;

var settings = CameraPlusMain.Settings;
Expand Down

0 comments on commit b13fe13

Please sign in to comment.