aboutsummaryrefslogtreecommitdiff
path: root/editor/tile.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-28 21:10:05 -0400
committeriamcheeseman <[email protected]>2026-05-28 21:10:05 -0400
commit46bec493a280d05215882900352ea8b7766f8500 (patch)
tree8368fbc72312adf4ad3869aa8e199da4b686c728 /editor/tile.c
parent5bffcafe09ec26ca501401fc1fe327ecc68fd4ca (diff)
update test ui
Diffstat (limited to 'editor/tile.c')
-rw-r--r--editor/tile.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/editor/tile.c b/editor/tile.c
index 7a9a169..5411b07 100644
--- a/editor/tile.c
+++ b/editor/tile.c
@@ -30,16 +30,19 @@ void test_win(void)
if (
!tyui_begin_window(
"Test",
- ty_recti(100, 100, 100, 100),
- &t->test_win,
- .flags = TYUI_WIN_INVISIBLE
+ ty_recti(120, 100, 100, 100),
+ &t->test_win
)
) {
return;
}
- for (int i = 0; i < 10; i++)
- tyui_text("test");
+ tyui_push_layout((float[]){0.5, -1, 0});
+ for (int i = 0; i < 10; i++) {
+ tyui_text("content");
+ tyui_text("%d", i);
+ }
+ tyui_pop_layout();
tyui_end_window();
}