aboutsummaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-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();
}