From 7f42a1877cdfc4af394942b6ca8131e4ee8fa898 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 8 Sep 2023 14:45:46 +0200 Subject: Add wraparound for patterns and more help strings --- src/drawing.c | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'src/drawing.c') diff --git a/src/drawing.c b/src/drawing.c index e94d0ff..274fe66 100644 --- a/src/drawing.c +++ b/src/drawing.c @@ -1719,14 +1719,30 @@ draw_notif_bar() { if (settings.help == TOGGLE_ON) { if (input_handler == handle_trigger_selection || input_handler == handle_channel_selection) { - txt_drawf_small("L/R:NOTE A:PARAMS B:TOGGLE", x0 + 2, y0 + 1, color); + txt_drawf_small("L/R:NOTE SEL+L/R:OCTAVE A:PARAMS B:TOGGLE", x0 + 2, y0 + 1, color); } else if (input_handler == handle_param_selection_sq1 || input_handler == handle_param_selection_sq2 || input_handler == handle_param_selection_wave || input_handler == handle_param_selection_noise) { - txt_drawf_small("L/R:ADJUST SELECT:COPY", x0 + 2, y0 + 1, color); + txt_drawf_small("L/R:ADJUST SELECT:COPY", x0 + 2, y0 + 1, color); } else if (input_handler == handle_pattern_selection) { - txt_drawf_small("L/R:CHAIN A:PARAMS B:QUEUE", x0 + 2, y0 + 1, color); + txt_drawf_small("L/R:CHAIN A:PARAMS B:QUEUE SEL+L/R:CLEAR", x0 + 2, y0 + 1, color); + } else if (input_handler == handle_pattern_chain) { + switch (param_selection_loc) { + case CHAIN_BTN_ENABLE: { + txt_drawf_small("A:BACK B:TOGGLE CHAIN", x0 + 2, y0 + 1, color); + } break; + case CHAIN_BTN_CLEAR: { + txt_drawf_small("A:BACK B:CLEAR CHAIN", x0 + 2, y0 + 1, color); + } break; + case CHAIN_BTN_RANDOM: { + txt_drawf_small("A:BACK B:RANDOMIZE CHAIN", x0 + 2, y0 + 1, color); + } break; + default: { + txt_drawf_small("L/R:CHANGE PATTERN A:BACK B:TOGGLE STEP", x0 + 2, y0 + 1, color); + } break; + } + } else if (input_handler == handle_right_col_selection) { if (right_col_selection_loc == R_COL_STOP) { txt_drawf_small("B:STOP", x0 + 2, y0 + 1, color); @@ -1737,14 +1753,22 @@ draw_notif_bar() { txt_drawf_small("B:PAUSE", x0 + 2, y0 + 1, color); } } else if (right_col_selection_loc == R_COL_BPM) { - txt_drawf_small("L/R:TEMPO", x0 + 2, y0 + 1, color); + txt_drawf_small("L/R:TEMPO (1) SEL+L/R:TEMPO (10)", x0 + 2, y0 + 1, color); } else if (right_col_selection_loc == R_COL_SETTINGS) { txt_drawf_small("B:SETTINGS", x0 + 2, y0 + 1, color); + } else if (right_col_selection_loc == R_COL_SCALE) { + txt_drawf_small("L/R:SCALE SEL+L/R:ROOT NOTE", x0 + 2, y0 + 1, color); } else if (right_col_selection_loc == R_COL_BANK_A || right_col_selection_loc == R_COL_BANK_B || right_col_selection_loc == R_COL_BANK_C || - right_col_selection_loc == R_COL_BANK_D) { - txt_drawf_small("B:SAVE CURRENT BANK AND SWITCH", x0 + 2, y0 + 1, color); + right_col_selection_loc == R_COL_BANK_D || + right_col_selection_loc == R_COL_BANK_E || + right_col_selection_loc == R_COL_BANK_F) { + if (settings.auto_save) { + txt_drawf_small("B:SAVE CURRENT BANK AND SWITCH", x0 + 2, y0 + 1, color); + } else { + txt_drawf_small("B:SWITCH BANK", x0 + 2, y0 + 1, color); + } } } return; -- cgit v1.2.1