athmos display been bugfixed and can now be switched by the knobs display

This commit is contained in:
SallarShayegan
2025-04-08 16:03:58 +02:00
parent bfd5b41e93
commit 8f9e5257f6
3 changed files with 19 additions and 11 deletions

View File

@ -142,11 +142,12 @@ class Knobs:
self.knobs[index].set_value(value)
def display(self):
if self.fade_in and self.opacity < 255: self.opacity += self.fade_speed
if self.fade_out and self.opacity > 0: self.opacity -= self.fade_speed
self.knobs_surface = pygame.Surface((self.gui.screenW, self.gui.screenH), pygame.SRCALPHA)
for knob in self.knobs:
if knob.focused or knob.vanish_label_path: self.display_label(knob)
knob.display(self.knobs_surface)
self.gui.screen.blit(self.knobs_surface, (0,0))
if self.gui.show_knobs:
if self.fade_in and self.opacity < 255: self.opacity += self.fade_speed
if self.fade_out and self.opacity > 0: self.opacity -= self.fade_speed
self.knobs_surface = pygame.Surface((self.gui.screenW, self.gui.screenH), pygame.SRCALPHA)
for knob in self.knobs:
if knob.focused or knob.vanish_label_path: self.display_label(knob)
knob.display(self.knobs_surface)
self.gui.screen.blit(self.knobs_surface, (0,0))