Make effect menu announce title only once

This commit is contained in:
Jage9
2026-02-21 02:09:21 -05:00
parent e3d2fe6404
commit dc30bfde4d
2 changed files with 3 additions and 3 deletions

View File

@@ -1635,7 +1635,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
code === 'ArrowDown'
? (state.effectSelectIndex + 1) % EFFECT_SEQUENCE.length
: (state.effectSelectIndex - 1 + EFFECT_SEQUENCE.length) % EFFECT_SEQUENCE.length;
updateStatus(`Select effect: ${EFFECT_SEQUENCE[state.effectSelectIndex].label}`);
updateStatus(EFFECT_SEQUENCE[state.effectSelectIndex].label);
audio.sfxUiBlip();
return;
}
@@ -1648,7 +1648,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
);
if (nextByInitial >= 0) {
state.effectSelectIndex = nextByInitial;
updateStatus(`Select effect: ${EFFECT_SEQUENCE[state.effectSelectIndex].label}`);
updateStatus(EFFECT_SEQUENCE[state.effectSelectIndex].label);
audio.sfxUiBlip();
return;
}