the focus of the knobs is removed, when the fx_mode is changed
This commit is contained in:
4
knobs.py
4
knobs.py
@ -78,9 +78,9 @@ class Knobs:
|
||||
for i in range(len(line_points)-1):
|
||||
pygame.draw.line(self.gui.screen, color_primary_dark, line_points[i], line_points[i+1], 2)
|
||||
|
||||
def deactivate_knobs_except(self, knob):
|
||||
def set_focused(self, knob):
|
||||
for k in self.knobs:
|
||||
if k != knob: k.set_focused(False)
|
||||
k.set_focused(k == knob)
|
||||
|
||||
def display(self):
|
||||
for knob in self.knobs:
|
||||
|
||||
Reference in New Issue
Block a user