2024-06-03 19:57:47 -04:00
|
|
|
import BattleScene from "../../battle-scene";
|
|
|
|
import { Mode } from "../ui";
|
|
|
|
"#app/inputs-controller.js";
|
|
|
|
import AbstractSettingsUiHandler from "./abstract-settings-ui-handler";
|
|
|
|
import { Setting, SettingType } from "#app/system/settings/settings";
|
|
|
|
|
2024-06-06 10:38:54 -04:00
|
|
|
export default class SettingsAudioUiHandler extends AbstractSettingsUiHandler {
|
2024-06-03 19:57:47 -04:00
|
|
|
/**
|
|
|
|
* Creates an instance of SettingsGamepadUiHandler.
|
|
|
|
*
|
|
|
|
* @param scene - The BattleScene instance.
|
|
|
|
* @param mode - The UI mode, optional.
|
|
|
|
*/
|
|
|
|
constructor(scene: BattleScene, mode?: Mode) {
|
|
|
|
super(scene, mode);
|
2024-06-06 10:38:54 -04:00
|
|
|
this.title = "Audio";
|
|
|
|
this.settings = Setting.filter(s => s.type === SettingType.AUDIO);
|
2024-06-03 19:57:47 -04:00
|
|
|
this.localStorageKey = "settings";
|
|
|
|
}
|
|
|
|
}
|