From 8f68bf841dd61decb82f19f0952aed32be06b43a Mon Sep 17 00:00:00 2001 From: Kevin Baumgartner Date: Thu, 7 May 2026 19:25:16 +0200 Subject: [PATCH] feat(startscreen): add class for buttons --- src/button.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/button.py diff --git a/src/button.py b/src/button.py new file mode 100644 index 0000000..e4be086 --- /dev/null +++ b/src/button.py @@ -0,0 +1,20 @@ +import pygame + +class Button: + def __init__(self, text, width, height, pos_x, pos_y, color, hover): + self.text = text + self.width = width + self.height = height + self.pos_x = pos_x + self.pos_y = pos_y + self.color = color + self.hover = hover + + # todo + + def draw(self, screen): + action = False + + # todo + + return action \ No newline at end of file