diff --git a/SpeechMod/Info.json b/SpeechMod/Info.json index e8b1317..62b06b4 100644 --- a/SpeechMod/Info.json +++ b/SpeechMod/Info.json @@ -7,5 +7,5 @@ "AssemblyName": "W40KRTSpeechMod.dll", "EntryMethod": "SpeechMod.Main.Load", "HomePage": "https://www.nexusmods.com/warhammer40kroguetrader/mods/75", - "Version": "0.9.0" + "Version": "0.9.1" } \ No newline at end of file diff --git a/SpeechMod/Keybinds/PlaybackStop.cs b/SpeechMod/Keybinds/PlaybackStop.cs index 15dd682..8632800 100644 --- a/SpeechMod/Keybinds/PlaybackStop.cs +++ b/SpeechMod/Keybinds/PlaybackStop.cs @@ -4,6 +4,9 @@ using Kingmaker.Code.UI.MVVM.VM.WarningNotification; using Kingmaker.Localization; using SpeechMod.Configuration.Settings; +#if DEBUG +using UnityEngine; +#endif namespace SpeechMod.Keybinds; @@ -27,7 +30,10 @@ private static class Patches [HarmonyPostfix] private static void Add(CommonPCView __instance) { - __instance!.AddDisposable(Game.Instance!.Keyboard!.Bind(BIND_NAME, delegate { StopPlayback(__instance); })); +#if DEBUG + Debug.Log($"{nameof(CommonPCView)}_{nameof(CommonPCView.BindViewImplementation)}_Postfix"); +#endif + __instance?.AddDisposable(Game.Instance!.Keyboard!.Bind(BIND_NAME, delegate { StopPlayback(__instance); })); } private static void StopPlayback(CommonPCView instance) @@ -38,10 +44,10 @@ private static void StopPlayback(CommonPCView instance) if (instance != null && instance.m_WarningsTextView != null) { if (!LocalizationManager.Instance!.CurrentPack!.TryGetText("osmodium.speechmod.feature.playback.stop.notification", out string text, false)) - text = "Stopping Playback!"; + text = "SpeechMod: Playback stopped!"; if (Main.Settings!.ShowNotificationOnPlaybackStop) - instance?.m_WarningsTextView?.Show(text, WarningNotificationFormat.Common); + instance.m_WarningsTextView?.Show(text, WarningNotificationFormat.Common); } Main.Speech?.Stop();