From 38075b1071ba2b7a095f779085885d50df8f2d04 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 2 Oct 2026 14:11:40 -0700 Subject: [PATCH] support multi line display of intention --- TODO.md | 1 + src/main.c | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 94fe400..14bafd3 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,6 @@ - [x] model window state +- [ ] create 2d matrix, and render values in a grid - [ ] math behind animation engine - [ ] grid system for win / loss diff --git a/src/main.c b/src/main.c index f6b7876..bfc664a 100644 --- a/src/main.c +++ b/src/main.c @@ -7,7 +7,7 @@ #define WINDOW_HEIGHT 700 #define WINDOW_WIDTH 500 -#define OVERLAY_HEIGHT 300 +#define OVERLAY_HEIGHT 400 #define OVERLAY_WIDTH 700 bool edit_mode = true; @@ -53,9 +53,11 @@ void render_overlay() { switch_mode(WINDOW); } - GuiSetStyle(DEFAULT, TEXT_SIZE, 100); - GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); - GuiLabel((Rectangle){0, (OVERLAY_HEIGHT / 2), OVERLAY_WIDTH, 50}, get_intention()); + GuiSetStyle(DEFAULT, TEXT_SIZE, 75); + GuiSetStyle(DEFAULT, TEXT_WRAP_MODE, TEXT_WRAP_CHAR); + //GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiLabel((Rectangle){0, 0, OVERLAY_WIDTH, OVERLAY_HEIGHT}, get_intention()); + GuiSetStyle(DEFAULT, TEXT_WRAP_MODE, 0); } int main(int argc, char *argv[]) {