feat(startscreen): add class for buttons
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user