Move up initialization of bar height in Ui class

This commit is contained in:
Michał Czekański 2020-04-05 21:58:36 +02:00
parent 097dbf1bf4
commit d6945f2bed

View File

@ -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)