aboutsummaryrefslogtreecommitdiff
path: root/dc/dc.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-14 15:32:17 -0400
committeriamcheeseman <[email protected]>2026-05-14 15:32:17 -0400
commitbf3ff59277a6950f45244d9ae11dc032c360c0ee (patch)
tree02c31e604d0b18a2653990971e0e82c31acef2db /dc/dc.c
parent7828f700d0e9205cf3ac3eb7f07db29b99c1408e (diff)
tyui buttons
Diffstat (limited to 'dc/dc.c')
-rw-r--r--dc/dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dc/dc.c b/dc/dc.c
index 1ecc7d9..fb640bb 100644
--- a/dc/dc.c
+++ b/dc/dc.c
@@ -119,8 +119,10 @@ void tick(void)
y += 8;
if (tyui_begin_window("Test Window", ty_recti(5, 5, 100, 100), &winid)) {
- for (int i = 0; i < 20; i++)
+ for (int i = 0; i < 3; i++)
tyui_text("example text");
+ if (tyui_button("press me"))
+ toggled = !toggled;
tyui_end_window();
}