change the actual controller fx_mode when tapping the lozenge_buttons

This commit is contained in:
2025-09-01 11:47:16 +02:00
parent 5fe9d7cada
commit ce9b7c39ec
2 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,8 @@ from .beatplayer import BeatPlayer
class GuiMain:
def __init__(self):
def __init__(self, controller):
self.controller = controller
# pygame setup
pygame.init()
pygame.display.set_caption("SantoscopeUI")
@ -154,6 +155,10 @@ class GuiMain:
for b in self.fx_mode_buttons[side]:
b.focused = (b.name == mode)
def set_controller_fx_mode(self, side, mode):
i = self.fx_mode_labels[side].index(mode)
self.controller.set_fx_mode(side, i)
def show_athmos(self, show=True):
self.athmos.show_list = show
self.show_knobs = not show