From d6945f2bedd2acee2dc2fc7711076ca61fd498c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 5 Apr 2020 21:58:36 +0200 Subject: [PATCH] Move up initialization of bar height in Ui class --- src/ui/Ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)