| 20 | |
| 21 | |
| 22 | class Text: |
| 23 | def __init__(self, text: str, size: int): |
| 24 | self.text = text |
| 25 | self.size = size |
| 26 | self.selected = False |
| 27 | |
| 28 | def display(self): |
| 29 | # Change the color if selected |
| 30 | color = (255, 0, 0) if self.selected else (255, 255, 255) |
| 31 | font = pygame.font.Font("SHPinscher-Regular.otf", self.size) |
| 32 | return font.render(self.text, True, color) |
| 33 | |
| 34 | |
| 35 | class Menu: |
no outgoing calls
no test coverage detected