Add UiConsole class with __init__

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

12
src/ui/UiConsole.py Normal file
View 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)