Update for settings menu refactor

This commit is contained in:
Madmadness65 2024-06-03 19:07:26 -05:00
parent a3f7d823e0
commit 6030588351

View File

@ -50,6 +50,7 @@ export const SettingKeys = {
Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY",
Money_Format: "MONEY_FORMAT",
Sprite_Set: "SPRITE_SET",
Music_Preference: "MUSIC_PREFERENCE",
Move_Animations: "MOVE_ANIMATIONS",
Show_Moveset_Flyout: "SHOW_MOVESET_FLYOUT",
Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS",
@ -175,6 +176,14 @@ export const Setting: Array<Setting> = [
type: SettingType.GENERAL,
requireReload: true
},
{
key: SettingKeys.Music_Preference,
label: "Music Preference",
options: ["Consistent", "Mixed"],
default: 0,
type: SettingType.GENERAL,
requireReload: true
},
{
key: SettingKeys.Move_Animations,
label: "Move Animations",
@ -337,6 +346,9 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
scene.initExpSprites();
}
break;
case SettingKeys.Music_Preference:
scene.musicPreference = value;
break;
case SettingKeys.Move_Animations:
scene.moveAnimations = Setting[index].options[value] === "On";
break;