Add UiConsole class with __init__
This commit is contained in:
parent
b01eaafdc4
commit
c9e6fac345
12
src/ui/UiConsole.py
Normal file
12
src/ui/UiConsole.py
Normal file
@ -0,0 +1,12 @@
|
||||
import pygame
|
||||
|
||||
from src.ui.UiElement import UiElement
|
||||
|
||||
|
||||
class UiConsole(UiElement):
|
||||
def __init__(self, rect, bgColor=(125, 125, 125)):
|
||||
super().__init__(rect)
|
||||
self.bgColor = bgColor
|
||||
|
||||
self.image = pygame.Surface(rect)
|
||||
self.image.fill(bgColor)
|
Loading…
Reference in New Issue
Block a user