From 26de3d90b90d24e5dfd330bd6fe983e1381e1ec5 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 29 Sep 2023 18:19:16 +0100 Subject: [PATCH] script_karaoke should read back the karoke mode bump to 0.6 --- addon/globalPlugins/voicemeeter/commands.py | 5 +++-- buildVars.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addon/globalPlugins/voicemeeter/commands.py b/addon/globalPlugins/voicemeeter/commands.py index dbde818..74b0905 100644 --- a/addon/globalPlugins/voicemeeter/commands.py +++ b/addon/globalPlugins/voicemeeter/commands.py @@ -79,11 +79,12 @@ class CommandsMixin: ui.message("on" if val else "off") def script_karaoke(self, _): + opts = ["off", "k m", "k 1", "k 2", "k v"] val = self.controller.ctx.get_int("karaoke") + 1 - if val == 5: + if val == len(opts): val = 0 self.controller.ctx.set_int("karaoke", val) - ui.message(val) + ui.message(opts[val]) def script_bus_assignment(self, gesture): proposed = int(gesture.displayName[-1]) diff --git a/buildVars.py b/buildVars.py index 1bd28d9..d7a00c8 100644 --- a/buildVars.py +++ b/buildVars.py @@ -28,7 +28,7 @@ addon_info = { The add-on requires Voicemeeter to be installed.""" ), # version - "addon_version": "0.5", + "addon_version": "0.6", # Author(s) "addon_author": "onyx-and-iris ", # URL for the add-on documentation support