Fix generating UiConsole image

This commit is contained in:
Michał Czekański 2020-04-04 18:40:56 +02:00
parent c9e6fac345
commit e8a961cddd

View File

@ -4,9 +4,9 @@ from src.ui.UiElement import UiElement
class UiConsole(UiElement):
def __init__(self, rect, bgColor=(125, 125, 125)):
def __init__(self, rect: pygame.Rect, bgColor=(125, 125, 125)):
super().__init__(rect)
self.bgColor = bgColor
self.image = pygame.Surface(rect)
self.image = pygame.Surface((rect.width, rect.height))
self.image.fill(bgColor)