diff options
Diffstat (limited to 'dc')
| -rw-r--r-- | dc/dc.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -98,11 +98,13 @@ void tick(void) tyui_slider_ex(0, 100, &value, true, TYUI_ALIGN_RIGHT); tyui_blank_slider(0, 100, &value); - tyui_push_layout((float[]){-50, -1, 0}); - tyui_button("abc"); - tyui_button("xyz"); - tyui_button("abc"); - tyui_button("xyz"); + tyui_push_layout((float[]){50, -1, 0}); + tyui_slider(0, 100, &value); + if (tyui_button("inc")) + value++; + tyui_slider(0, 100, &value); + if (tyui_button("dec")) + value--; tyui_pop_layout(); tyui_end_window(); |
