fix audio settings (#2176)

This commit is contained in:
Adrian T 2024-06-14 00:02:37 +08:00 committed by GitHub
parent 855ceda192
commit 8728442657
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,8 @@ export default class AbstractSettingsUiHandler extends UiHandler {
private reloadSettings: Array<Setting>; private reloadSettings: Array<Setting>;
private reloadRequired: boolean; private reloadRequired: boolean;
private rowsToDisplay: number;
protected rowsToDisplay: number;
protected title: string; protected title: string;
protected settings: Array<Setting>; protected settings: Array<Setting>;
protected localStorageKey: string; protected localStorageKey: string;

View File

@ -6,7 +6,7 @@ import { Setting, SettingType } from "#app/system/settings/settings";
export default class SettingsAudioUiHandler extends AbstractSettingsUiHandler { export default class SettingsAudioUiHandler extends AbstractSettingsUiHandler {
/** /**
* Creates an instance of SettingsGamepadUiHandler. * Creates an instance of SettingsAudioUiHandler.
* *
* @param scene - The BattleScene instance. * @param scene - The BattleScene instance.
* @param mode - The UI mode, optional. * @param mode - The UI mode, optional.
@ -16,5 +16,6 @@ export default class SettingsAudioUiHandler extends AbstractSettingsUiHandler {
this.title = "Audio"; this.title = "Audio";
this.settings = Setting.filter(s => s.type === SettingType.AUDIO); this.settings = Setting.filter(s => s.type === SettingType.AUDIO);
this.localStorageKey = "settings"; this.localStorageKey = "settings";
this.rowsToDisplay = 4;
} }
} }