adjusted item_selection and created a module 'beatplayer'

This commit is contained in:
2025-08-03 19:25:18 +02:00
parent 9f9f667a86
commit 46c08009de
4 changed files with 74 additions and 20 deletions

View File

@ -3,25 +3,19 @@ from .colors import *
from .item_selection import ItemSelection
import pygame
MAX_COUNT = 9
class Athmos(ItemSelection):
def __init__(self, screen):
self.screen = screen
self.show_list = True
self.surface = pygame.Surface((0,0), pygame.SRCALPHA)
self.max_name_width = 350
super().__init__(self.surface, self.max_name_width, MAX_COUNT)
super().__init__(self.max_name_width)
def set_filenames(self,filenames):
super().set_items(filenames)
def get_name_by_index(self, index):
return self.items[index]
def get_count(self):
return len(self.items)
def update(self):
if self.show_list: