feature: quit button, start button changes to continue

This commit is contained in:
huaqo-games
2025-03-18 17:34:14 +01:00
parent a4d9b22c32
commit 0e2db9707b
4 changed files with 41 additions and 23 deletions
+2 -2
View File
@@ -7,10 +7,10 @@
typedef struct
{
Rectangle rec;
const char *text;
char *text;
} Button;
void initButton(Button *b, const char *text, int buttonWidth, int buttonHeight, int buttonPosX, int buttonPosY)
void initButton(Button *b, char *text, int buttonWidth, int buttonHeight, int buttonPosX, int buttonPosY)
{
b->rec = (Rectangle){buttonPosX - buttonWidth / 2, buttonPosY - buttonHeight / 2, buttonWidth, buttonHeight};
b->text = text;