diff --git a/src/ui/Ui.py b/src/ui/Ui.py index decb9ed..c2ed9f3 100644 --- a/src/ui/Ui.py +++ b/src/ui/Ui.py @@ -15,12 +15,12 @@ class Ui(): self.rightUiWidth = rightUiWidth self.screenHeight = screenHeight + self.barHeight = 25 + if font is None: font = pygame.font.Font(None, self.barHeight) self.font = font - self.barHeight = 25 - self.timer = timer self.timerTextView = UiText(pygame.Rect(0, 0, leftUiWidth, self.barHeight), textColor=Colors.WHITE, backgroundColor=Colors.GRAY)