Skip to content

Commit

Permalink
Merge pull request #373 from BUTR/v2.8.16
Browse files Browse the repository at this point in the history
v2.8.16
  • Loading branch information
Aragas authored Feb 15, 2024
2 parents 6c2dd06 + de9df74 commit 65b1579
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!--Development Variables-->
<PropertyGroup>
<!--Module Version-->
<Version>2.8.15</Version>
<Version>2.8.16</Version>
<!--Harmony Version-->
<HarmonyVersion>2.2.2</HarmonyVersion>
<HarmonyExtensionsVersion>3.2.0.77</HarmonyExtensionsVersion>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 2.8.16
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.x
* Fixed an issue with the new JsonSerializer overload
---------------------------------------------------------------------------------------------------
Version: 2.8.15
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.4
* Fixed an issue with the new JsonSerializer overload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override IReadOnlyList<HotKeyBase> Build()

#if v100 || v101 || v102 || v103 || v110 || v111 || v112 || v113 || v114 || v115
TWHotKeyManager.RegisterInitialContexts(new[] { hotKeyCategoryContainer }, true);
#elif v120 || v121 || v122 || v123 || v124
#elif v120 || v121 || v122 || v123 || v124 || v125 || v126 || v127 || v128 || v129
TWHotKeyManager.RegisterInitialContexts(TWHotKeyManager.GetAllCategories().ToList().Concat(new[] { hotKeyCategoryContainer }), true);
#else
#error DEFINE

Check failure on line 59 in src/Bannerlord.ButterLib.Implementation/HotKeys/HotKeyManagerImplementation.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'

Check failure on line 59 in src/Bannerlord.ButterLib.Implementation/HotKeys/HotKeyManagerImplementation.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'

Check failure on line 59 in src/Bannerlord.ButterLib.Implementation/HotKeys/HotKeyManagerImplementation.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ private static void OnApplicationTick(float dt)
var hotKey = HotKeyManagerImplementation.GlobalHotKeyStorage[i];
if (!hotKey.ShouldExecute() || hotKey.GameKey is null) continue;

if (hotKey.GameKey.KeyboardKey?.InputKey.IsDown() == true || hotKey.GameKey.ControllerKey?.InputKey.IsDown() == true)
hotKey.IsDownInternal();
if (hotKey.GameKey.KeyboardKey?.InputKey.IsPressed() == true || hotKey.GameKey.ControllerKey?.InputKey.IsPressed() == true)
hotKey.OnPressedInternal();
if (hotKey.GameKey.KeyboardKey?.InputKey.IsDown() == true || hotKey.GameKey.ControllerKey?.InputKey.IsDown() == true)
hotKey.IsDownInternal();
if (hotKey.GameKey.KeyboardKey?.InputKey.IsReleased() == true || hotKey.GameKey.ControllerKey?.InputKey.IsReleased() == true)
hotKey.OnReleasedInternal();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private sealed record DataKey([field: SaveableField(0)] MBGUID ObjectId, [field:

#if v100 || v101 || v102 || v103 || v110 || v111 || v112 || v113 || v114 || v115
private sealed class SavedTypeDefiner : SaveableCampaignBehaviorTypeDefiner
#elif v120 || v121 || v122 || v123 || v124
#elif v120 || v121 || v122 || v123 || v124 || v125 || v126 || v127 || v128 || v129
private sealed class SavedTypeDefiner : SaveableTypeDefiner
#else
#error DEFINE

Check failure on line 114 in src/Bannerlord.ButterLib.Implementation/ObjectSystem/MBObjectExtensionDataStore.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'

Check failure on line 114 in src/Bannerlord.ButterLib.Implementation/ObjectSystem/MBObjectExtensionDataStore.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'

Check failure on line 114 in src/Bannerlord.ButterLib.Implementation/ObjectSystem/MBObjectExtensionDataStore.cs

View workflow job for this annotation

GitHub Actions / Build Module

#error: 'DEFINE'
Expand Down
5 changes: 5 additions & 0 deletions supported-game-versions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.2.9
v1.2.8
v1.2.7
v1.2.6
v1.2.5
v1.2.4
v1.1.6
v1.1.5
Expand Down

0 comments on commit 65b1579

Please sign in to comment.