2 Commits

Author SHA1 Message Date
26de3d90b9 script_karaoke should read back the karoke mode
bump to 0.6
2023-09-29 18:19:16 +01:00
e14ea5f23c swap class inheritance order 2023-09-28 15:24:11 +01:00
3 changed files with 5 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ from .controller import Controller
from .kinds import KindId, request_kind_map from .kinds import KindId, request_kind_map
class GlobalPlugin(globalPluginHandler.GlobalPlugin, CommandsMixin): class GlobalPlugin(CommandsMixin, globalPluginHandler.GlobalPlugin):
__kind_id = config.get("voicemeeter", "potato") __kind_id = config.get("voicemeeter", "potato")
__gestures = util._make_gestures(__kind_id) __gestures = util._make_gestures(__kind_id)

View File

@@ -79,11 +79,12 @@ class CommandsMixin:
ui.message("on" if val else "off") ui.message("on" if val else "off")
def script_karaoke(self, _): def script_karaoke(self, _):
opts = ["off", "k m", "k 1", "k 2", "k v"]
val = self.controller.ctx.get_int("karaoke") + 1 val = self.controller.ctx.get_int("karaoke") + 1
if val == 5: if val == len(opts):
val = 0 val = 0
self.controller.ctx.set_int("karaoke", val) self.controller.ctx.set_int("karaoke", val)
ui.message(val) ui.message(opts[val])
def script_bus_assignment(self, gesture): def script_bus_assignment(self, gesture):
proposed = int(gesture.displayName[-1]) proposed = int(gesture.displayName[-1])

View File

@@ -28,7 +28,7 @@ addon_info = {
The add-on requires Voicemeeter to be installed.""" The add-on requires Voicemeeter to be installed."""
), ),
# version # version
"addon_version": "0.5", "addon_version": "0.6",
# Author(s) # Author(s)
"addon_author": "onyx-and-iris <code@onyxandiris.online>", "addon_author": "onyx-and-iris <code@onyxandiris.online>",
# URL for the add-on documentation support # URL for the add-on documentation support