Move up initialization of bar height in Ui class
This commit is contained in:
parent
097dbf1bf4
commit
d6945f2bed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user