mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-02 22:27:15 +00:00
5ac1b7245f
* Refactored settings UI menu options and added the battle style setting * Removed the new Battle Style setting. It will be added in a seperate PR. * Fixed typo and spacing
21 lines
702 B
TypeScript
21 lines
702 B
TypeScript
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";
|
|
|
|
export default class SettingsAudioUiHandler extends AbstractSettingsUiHandler {
|
|
/**
|
|
* Creates an instance of SettingsGamepadUiHandler.
|
|
*
|
|
* @param scene - The BattleScene instance.
|
|
* @param mode - The UI mode, optional.
|
|
*/
|
|
constructor(scene: BattleScene, mode?: Mode) {
|
|
super(scene, mode);
|
|
this.title = "Audio";
|
|
this.settings = Setting.filter(s => s.type === SettingType.AUDIO);
|
|
this.localStorageKey = "settings";
|
|
}
|
|
}
|