diff options
author | Bad Diode <bd@badd10de.dev> | 2023-07-13 10:21:12 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-07-13 10:21:12 +0200 |
commit | d1c68125b6825f0327a4089aa8ddca5105e78ec1 (patch) | |
tree | ed0b902221c42a534b594be9891f3c5688cabb4e /src/main.c | |
parent | 8fa42f9f9107f460b49fa7ab171529942e66e7ea (diff) | |
download | stepper-d1c68125b6825f0327a4089aa8ddca5105e78ec1.tar.gz stepper-d1c68125b6825f0327a4089aa8ddca5105e78ec1.zip |
Add initial pattern chain UI
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -92,17 +92,14 @@ render_sequencer(void) { | |||
92 | if (redraw_params) { | 92 | if (redraw_params) { |
93 | PROF(draw_parameters(), draw_param_cycles); | 93 | PROF(draw_parameters(), draw_param_cycles); |
94 | redraw_params = false; | 94 | redraw_params = false; |
95 | } else if (input_handler == handle_pattern_selection){ | ||
96 | // DEBUG: move to drawing file | ||
97 | draw_rect( | ||
98 | PARAMS_START_X, | ||
99 | PARAMS_START_Y + 6, | ||
100 | PARAMS_START_X + PARAMS_W, | ||
101 | PARAMS_START_Y + PARAMS_H - 6, COL_FG); | ||
102 | txt_drawf_small("Current pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8, COL_FG, "A"); | ||
103 | txt_drawf_small("Next pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 2, COL_FG, "A"); | ||
104 | txt_drawf_small("Chain: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 3, COL_FG, "A - B - B - A - B"); | ||
105 | } | 95 | } |
96 | |||
97 | if (input_handler == handle_pattern_selection){ | ||
98 | // TODO: redraw_params in pattern_selection context? | ||
99 | draw_pattern_chain(); | ||
100 | } | ||
101 | |||
102 | // TODO: redraw_notif? | ||
106 | draw_notif_bar(); | 103 | draw_notif_bar(); |
107 | PROF(draw_cursors(), draw_cursor_cycles); | 104 | PROF(draw_cursors(), draw_cursor_cycles); |
108 | } | 105 | } |