aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-07-13 10:21:12 +0200
committerBad Diode <bd@badd10de.dev>2023-07-13 10:21:12 +0200
commitd1c68125b6825f0327a4089aa8ddca5105e78ec1 (patch)
treeed0b902221c42a534b594be9891f3c5688cabb4e /src/main.c
parent8fa42f9f9107f460b49fa7ab171529942e66e7ea (diff)
downloadstepper-d1c68125b6825f0327a4089aa8ddca5105e78ec1.tar.gz
stepper-d1c68125b6825f0327a4089aa8ddca5105e78ec1.zip
Add initial pattern chain UI
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 7 insertions, 10 deletions
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) {
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}