support multi line display of intention

This commit is contained in:
2026-10-02 14:11:40 -07:00
parent 1f3b2686ef
commit 38075b1071
2 changed files with 7 additions and 4 deletions
+6 -4
View File
@@ -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[]) {