mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 10:16:14 +00:00
fix audio settings (#2176)
This commit is contained in:
parent
855ceda192
commit
8728442657
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user