Merge branch 'beta' into runHistoryNew

This commit is contained in:
Mumble 2024-08-02 13:33:18 -07:00 committed by GitHub
commit c1fa6501bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,13 +306,17 @@ export default class MenuUiHandler extends MessageUiHandler {
if (button === Button.ACTION) {
let adjustedCursor = this.cursor;
for (const imo of this.ignoredMenuOptions) {
const excludedMenu = this.excludedMenus().find(e => e.condition);
if (excludedMenu !== undefined && excludedMenu.options !== undefined && excludedMenu.options.length > 0) {
const sortedOptions = excludedMenu.options.sort();
for (const imo of sortedOptions) {
if (adjustedCursor >= imo) {
adjustedCursor++;
} else {
break;
}
}
}
switch (adjustedCursor) {
case MenuOptions.GAME_SETTINGS:
ui.setOverlayMode(Mode.SETTINGS);