From d1c68125b6825f0327a4089aa8ddca5105e78ec1 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 13 Jul 2023 10:21:12 +0200 Subject: Add initial pattern chain UI --- src/main.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 54d46e6..2f073c7 100644 --- a/src/main.c +++ b/src/main.c @@ -92,17 +92,14 @@ render_sequencer(void) { if (redraw_params) { PROF(draw_parameters(), draw_param_cycles); redraw_params = false; - } else if (input_handler == handle_pattern_selection){ - // DEBUG: move to drawing file - draw_rect( - PARAMS_START_X, - PARAMS_START_Y + 6, - PARAMS_START_X + PARAMS_W, - PARAMS_START_Y + PARAMS_H - 6, COL_FG); - txt_drawf_small("Current pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8, COL_FG, "A"); - txt_drawf_small("Next pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 2, COL_FG, "A"); - txt_drawf_small("Chain: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 3, COL_FG, "A - B - B - A - B"); } + + if (input_handler == handle_pattern_selection){ + // TODO: redraw_params in pattern_selection context? + draw_pattern_chain(); + } + + // TODO: redraw_notif? draw_notif_bar(); PROF(draw_cursors(), draw_cursor_cycles); } -- cgit v1.2.1