selected track and clip gets displayed at the bottom of the UI
This commit is contained in:
@ -11,6 +11,7 @@ class ItemSelection:
|
||||
self.surface = pygame.Surface((0,0), pygame.SRCALPHA)
|
||||
self.max_item_width = max_item_width
|
||||
self.max_display_count = max_display_count
|
||||
self.selected_item_srf = None
|
||||
|
||||
def set_items(self, items):
|
||||
self.items = items
|
||||
@ -34,6 +35,7 @@ class ItemSelection:
|
||||
if i == math.floor(self.get_display_count()/2):
|
||||
#if i == self.index:
|
||||
text_surface = font_helvetica16.render(text, False, color_primary_light)
|
||||
self.selected_item_srf = text_surface
|
||||
else:
|
||||
text_surface = font_helvetica16.render(text, False, color_primary)
|
||||
opacity = -15 + math.floor((i+1) * 2 * 255 / self.max_display_count
|
||||
|
||||
Reference in New Issue
Block a user