diff options
| author | iamcheeseman <[email protected]> | 2026-05-28 21:10:05 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-28 21:10:05 -0400 |
| commit | 46bec493a280d05215882900352ea8b7766f8500 (patch) | |
| tree | 8368fbc72312adf4ad3869aa8e199da4b686c728 /editor/tile.c | |
| parent | 5bffcafe09ec26ca501401fc1fe327ecc68fd4ca (diff) | |
update test ui
Diffstat (limited to 'editor/tile.c')
| -rw-r--r-- | editor/tile.c | 13 |
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(); } |
