mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-24 13:50:54 +00:00
000b18b6ec
size of mousewheel scroll step now settable add _base_vals.mwscroll_step to data. added [mwscroll_step] to app.toml
46 lines
1.0 KiB
Python
46 lines
1.0 KiB
Python
from dataclasses import dataclass
|
|
from voicemeeter import kinds
|
|
|
|
|
|
@dataclass
|
|
class BaseValues:
|
|
level_height: int = 100
|
|
level_width: int = 80
|
|
|
|
# are we dragging a scale with mouse 1
|
|
in_scale_button_1: bool = False
|
|
# are we dragging main window with mouse 1
|
|
dragging: bool = False
|
|
# direction the gui extends
|
|
extends_horizontal: bool = True
|
|
# a vban connection established
|
|
vban_connected: bool = False
|
|
# are themes enabled
|
|
themes_enabled: bool = True
|
|
# are we using a theme
|
|
using_theme: bool = False
|
|
# bus assigned as current submix
|
|
submixes: int = 0
|
|
# pdirty delay
|
|
pdelay: int = 5
|
|
# ldirty delay
|
|
ldelay: int = 50
|
|
# size of strip level array for a kind
|
|
strip_level_array_size: int = None
|
|
# size of bus level array for a kind
|
|
bus_level_array_size: int = None
|
|
# size of mousewheel scroll step
|
|
mwscroll_step: int = 3
|
|
|
|
|
|
_base_vals = BaseValues()
|
|
|
|
|
|
_kinds = {kind.id: kind for kind in kinds.all}
|
|
|
|
_kinds_all = _kinds.values()
|
|
|
|
|
|
def kind_get(kind_id):
|
|
return _kinds[kind_id]
|