From 6c63c3d327cf3b494309db82bdd4489b59d3d247 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Tue, 20 Feb 2024 19:57:18 -0700 Subject: Button thingy working --- src/ui.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui.h') diff --git a/src/ui.h b/src/ui.h index 717435b..7d487d5 100644 --- a/src/ui.h +++ b/src/ui.h @@ -1,6 +1,7 @@ #include "gameCommon.h" #define UI_BUTTON_NAME_MAX 50 +#define UI_BUTTON_DEFAULT_FONT_SIZE 20 #ifndef UI_H #define UI_H @@ -10,10 +11,13 @@ typedef struct TexturedButton { Rectangle rect; char message[UI_BUTTON_NAME_MAX]; + size_t messageLength; Color backgroundColor; Color foregroundColor; + int fontSize; + bool isPressed; } TexturedButton; -- cgit v1.2.3