mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2026-04-19 17:43:30 +00:00
Compare commits
2 Commits
e9b9295a46
...
v.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
| 26de3d90b9 | |||
| e14ea5f23c |
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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])
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user