diff options
author | Bad Diode <bd@badd10de.dev> | 2023-07-12 16:02:28 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-07-12 16:02:28 +0200 |
commit | d2be261b88753c3e0fdeb7588057aa3f1648ead5 (patch) | |
tree | 3463064f6101c76432a30788eeff25e03e73b2a6 /src/main.c | |
parent | 8d04ec381b8e28fe9d84ddf2e9f295723a95c407 (diff) | |
download | stepper-d2be261b88753c3e0fdeb7588057aa3f1648ead5.tar.gz stepper-d2be261b88753c3e0fdeb7588057aa3f1648ead5.zip |
Add notification bar and mockup of pattern chaining
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -23,6 +23,9 @@ WITH REGARD TO THIS SOFTWARE. | |||
23 | // This could get annoying, so maybe it should be a configuration option to | 23 | // This could get annoying, so maybe it should be a configuration option to |
24 | // enable it? | 24 | // enable it? |
25 | // - Pattern chaining for more than 1 queue and/or song mode. | 25 | // - Pattern chaining for more than 1 queue and/or song mode. |
26 | // - L: Remove from chain | ||
27 | // - R: Add to chain | ||
28 | // - Loop? | ||
26 | // - Undo/Redo. | 29 | // - Undo/Redo. |
27 | // - Select + up/down to queue the next pattern as we move to it? | 30 | // - Select + up/down to queue the next pattern as we move to it? |
28 | // | 31 | // |
@@ -88,7 +91,18 @@ render_sequencer(void) { | |||
88 | if (redraw_params) { | 91 | if (redraw_params) { |
89 | PROF(draw_parameters(), draw_param_cycles); | 92 | PROF(draw_parameters(), draw_param_cycles); |
90 | redraw_params = false; | 93 | redraw_params = false; |
94 | } else if (input_handler == handle_pattern_selection){ | ||
95 | // DEBUG: move to drawing file | ||
96 | draw_rect( | ||
97 | PARAMS_START_X, | ||
98 | PARAMS_START_Y + 6, | ||
99 | PARAMS_START_X + PARAMS_W, | ||
100 | PARAMS_START_Y + PARAMS_H - 6, COL_FG); | ||
101 | txt_drawf_small("Current pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8, COL_FG, "A"); | ||
102 | txt_drawf_small("Next pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 2, COL_FG, "A"); | ||
103 | txt_drawf_small("Chain: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 3, COL_FG, "A - B - B - A - B"); | ||
91 | } | 104 | } |
105 | draw_notif_bar(); | ||
92 | PROF(draw_cursors(), draw_cursor_cycles); | 106 | PROF(draw_cursors(), draw_cursor_cycles); |
93 | } | 107 | } |
94 | 108 | ||