From 580d2da1284ee667fe79257d0170dae6ccf75747 Mon Sep 17 00:00:00 2001 From: Tobias Knappe Date: Tue, 27 Jun 2017 18:06:56 +0200 Subject: [PATCH] fix for KSP 1.3 --- TrimPlus.version | 10 +++++----- source/TrimPlus.csproj | 6 ++---- source/TrimPlusGUI.cs | 8 ++++---- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/TrimPlus.version b/TrimPlus.version index 805fe17..5594851 100644 --- a/TrimPlus.version +++ b/TrimPlus.version @@ -7,24 +7,24 @@ }, "VERSION" : { "MAJOR" : 1, - "MINOR" : 2, - "PATCH" : 1, + "MINOR" : 3, + "PATCH" : 0, "BUILD" : 0 }, "DOWNLOAD" : "https://github.com/ItMustBeACamel/KSP_TrimPlus/releases", "KSP_VERSION" : { "MAJOR" : 1, - "MINOR" : 2, + "MINOR" : 3, "PATCH" : 0 }, "KSP_VERSION_MIN" : { "MAJOR" : 1, - "MINOR" : 2, + "MINOR" : 3, "PATCH" : 0 }, "KSP_VERSION_MAX" : { "MAJOR" : 1, - "MINOR" : 2, + "MINOR" : 3, "PATCH" : 0 } } diff --git a/source/TrimPlus.csproj b/source/TrimPlus.csproj index 0bbe5ac..62117b0 100644 --- a/source/TrimPlus.csproj +++ b/source/TrimPlus.csproj @@ -32,8 +32,7 @@ - E:\Kerbal Space Program\beta\KSP_Data\Managed\Assembly-CSharp.dll - False + E:\Kerbal Space Program\1.2_dev\KSP_Data\Managed\Assembly-CSharp.dll @@ -42,8 +41,7 @@ - E:\Kerbal Space Program\beta\KSP_Data\Managed\UnityEngine.dll - False + E:\Kerbal Space Program\1.2_dev\KSP_Data\Managed\UnityEngine.dll diff --git a/source/TrimPlusGUI.cs b/source/TrimPlusGUI.cs index 1bebad4..c47c61a 100644 --- a/source/TrimPlusGUI.cs +++ b/source/TrimPlusGUI.cs @@ -44,13 +44,13 @@ public void Update() { if (listeningForPrimary) { - listeningFor.primary = code; + listeningFor.primary = new KeyCodeExtended(code); listeningFor = null; break; } else { - listeningFor.secondary = code; + listeningFor.secondary = new KeyCodeExtended(code); listeningFor = null; break; } @@ -117,8 +117,8 @@ public void windowFunc(int id) if (GUILayout.Button("x", GUILayout.ExpandWidth(false))) { - binding.primary = KeyCode.None; - binding.secondary = KeyCode.None; + binding.primary = new KeyCodeExtended(KeyCode.None); + binding.secondary = new KeyCodeExtended(KeyCode.None); } GUILayout.EndHorizontal();