Make effect menu announce title only once
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
// Maintainer-controlled web client version.
|
// Maintainer-controlled web client version.
|
||||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||||
window.CHGRID_WEB_VERSION = "2026.02.21 R81";
|
window.CHGRID_WEB_VERSION = "2026.02.21 R82";
|
||||||
|
|||||||
@@ -1635,7 +1635,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
|
|||||||
code === 'ArrowDown'
|
code === 'ArrowDown'
|
||||||
? (state.effectSelectIndex + 1) % EFFECT_SEQUENCE.length
|
? (state.effectSelectIndex + 1) % EFFECT_SEQUENCE.length
|
||||||
: (state.effectSelectIndex - 1 + EFFECT_SEQUENCE.length) % 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();
|
audio.sfxUiBlip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1648,7 +1648,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
|
|||||||
);
|
);
|
||||||
if (nextByInitial >= 0) {
|
if (nextByInitial >= 0) {
|
||||||
state.effectSelectIndex = nextByInitial;
|
state.effectSelectIndex = nextByInitial;
|
||||||
updateStatus(`Select effect: ${EFFECT_SEQUENCE[state.effectSelectIndex].label}`);
|
updateStatus(EFFECT_SEQUENCE[state.effectSelectIndex].label);
|
||||||
audio.sfxUiBlip();
|
audio.sfxUiBlip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user