-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual triggering hotkeys and bugfixes
- Loading branch information
Showing
8 changed files
with
194 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<Manifest> | ||
<identifier>ProgressRenderer</identifier> | ||
<version>1.0.1</version> | ||
<showCrossPromotions>true</showCrossPromotions> | ||
<manifestUri>https://raw.githubusercontent.com/Lanilor/Progress-Renderer/master/About/Manifest.xml</manifestUri> | ||
<downloadUri>https://github.com/Lanilor/Progress-Renderer/releases/latest</downloadUri> | ||
</Manifest> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Defs> | ||
|
||
<!-- Map play --> | ||
|
||
<KeyBindingDef ParentName="GameKeyBinding"> | ||
<defName>LPR_ManualRendering</defName> | ||
<label>PR: Manual rendering</label> | ||
<defaultKeyCodeA>Alpha9</defaultKeyCodeA> | ||
</KeyBindingDef> | ||
|
||
<KeyBindingDef ParentName="GameKeyBinding"> | ||
<defName>LPR_ManualRendering_ForceFullMap</defName> | ||
<label>PR: Manual rendering (full map)</label> | ||
<defaultKeyCodeA>Alpha0</defaultKeyCodeA> | ||
</KeyBindingDef> | ||
|
||
</Defs> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using RimWorld; | ||
using Verse; | ||
|
||
namespace ProgressRenderer | ||
{ | ||
|
||
[DefOf] | ||
public static class KeyBindingDefOf | ||
{ | ||
|
||
static KeyBindingDefOf() | ||
{ | ||
DefOfHelper.EnsureInitializedInCtor(typeof(KeyBindingDefOf)); | ||
} | ||
|
||
public static KeyBindingDef LPR_ManualRendering; | ||
public static KeyBindingDef LPR_ManualRendering_ForceFullMap; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Harmony; | ||
using UnityEngine; | ||
using Verse; | ||
|
||
namespace ProgressRenderer | ||
{ | ||
|
||
[HarmonyPatch(typeof(ScreenshotModeHandler))] | ||
[HarmonyPatch("ScreenshotModesOnGUI")] | ||
public class Harmony_ScreenshotModeHandler_ScreenshotModesOnGUI | ||
{ | ||
|
||
public static void Postfix() | ||
{ | ||
if (KeyBindingDefOf.LPR_ManualRendering.KeyDownEvent) | ||
{ | ||
MapComponent_RenderManager.TriggerCurrentMapManualRendering(); | ||
Event.current.Use(); | ||
} | ||
else if (KeyBindingDefOf.LPR_ManualRendering_ForceFullMap.KeyDownEvent) | ||
{ | ||
MapComponent_RenderManager.TriggerCurrentMapManualRendering(true); | ||
Event.current.Use(); | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.