Fix generating UiConsole image
This commit is contained in:
parent
c9e6fac345
commit
e8a961cddd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user