aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-02-21 02:57:18 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-02-21 02:57:18 +0000
commit6c63c3d327cf3b494309db82bdd4489b59d3d247 (patch)
treea5222a6e960e74f884299a558d8b103efcd6804d /src/ui.h
parent801df9c821db87cf2e50f486c63ff083b375eb7e (diff)
downloadPenguinYippies-6c63c3d327cf3b494309db82bdd4489b59d3d247.tar.gz
PenguinYippies-6c63c3d327cf3b494309db82bdd4489b59d3d247.tar.bz2
PenguinYippies-6c63c3d327cf3b494309db82bdd4489b59d3d247.zip
Button thingy working
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h4
1 files changed, 4 insertions, 0 deletions
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;