From c9e6fac345b99d76db68161410ef6ddb16ae3840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sat, 4 Apr 2020 18:37:18 +0200 Subject: [PATCH] Add UiConsole class with __init__ --- src/ui/UiConsole.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/ui/UiConsole.py diff --git a/src/ui/UiConsole.py b/src/ui/UiConsole.py new file mode 100644 index 0000000..1834252 --- /dev/null +++ b/src/ui/UiConsole.py @@ -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)