selected track and clip gets displayed at the bottom of the UI

This commit is contained in:
2025-08-03 20:09:55 +02:00
parent 46c08009de
commit 1d247fc0ed
3 changed files with 29 additions and 7 deletions

View File

@ -1,4 +1,6 @@
from .item_selection import ItemSelection
import pygame
from .colors import *
class BeatPlayer:
@ -22,4 +24,16 @@ class BeatPlayer:
self.screen.blit(self.track_selection.surface, ((self.screen.get_width()/4),
(self.screen.get_height() - self.track_selection.surface.get_height())/2))
self.screen.blit(self.clip_selection.surface, ((self.screen.get_width()/4 + self.max_name_width) + 100,
(self.screen.get_height() - self.clip_selection.surface.get_height())/2))
(self.screen.get_height() - self.clip_selection.surface.get_height())/2))
else:
if self.track_selection.selected_item_srf is not None:
self.screen.blit(self.track_selection.selected_item_srf,
((self.screen.get_width()/4+10), self.screen.get_height() - 45))
pygame.draw.rect(self.screen, color_primary_light,
(self.screen.get_width()/4, self.screen.get_height() - 50, self.max_name_width+20, 40), 2)
if self.clip_selection.selected_item_srf is not None:
self.screen.blit(self.clip_selection.selected_item_srf,
((self.screen.get_width()/4 + self.max_name_width) + 110, self.screen.get_height() - 45))
pygame.draw.rect(self.screen, color_primary_light,
((self.screen.get_width()/4 + self.max_name_width) + 100, self.screen.get_height() - 50,
self.max_name_width+20, 40), 2)