mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Update for settings menu refactor
This commit is contained in:
parent
a3f7d823e0
commit
6030588351
@ -50,6 +50,7 @@ export const SettingKeys = {
|
|||||||
Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY",
|
Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY",
|
||||||
Money_Format: "MONEY_FORMAT",
|
Money_Format: "MONEY_FORMAT",
|
||||||
Sprite_Set: "SPRITE_SET",
|
Sprite_Set: "SPRITE_SET",
|
||||||
|
Music_Preference: "MUSIC_PREFERENCE",
|
||||||
Move_Animations: "MOVE_ANIMATIONS",
|
Move_Animations: "MOVE_ANIMATIONS",
|
||||||
Show_Moveset_Flyout: "SHOW_MOVESET_FLYOUT",
|
Show_Moveset_Flyout: "SHOW_MOVESET_FLYOUT",
|
||||||
Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS",
|
Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS",
|
||||||
@ -175,6 +176,14 @@ export const Setting: Array<Setting> = [
|
|||||||
type: SettingType.GENERAL,
|
type: SettingType.GENERAL,
|
||||||
requireReload: true
|
requireReload: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: SettingKeys.Music_Preference,
|
||||||
|
label: "Music Preference",
|
||||||
|
options: ["Consistent", "Mixed"],
|
||||||
|
default: 0,
|
||||||
|
type: SettingType.GENERAL,
|
||||||
|
requireReload: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: SettingKeys.Move_Animations,
|
key: SettingKeys.Move_Animations,
|
||||||
label: "Move Animations",
|
label: "Move Animations",
|
||||||
@ -337,6 +346,9 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
|
|||||||
scene.initExpSprites();
|
scene.initExpSprites();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SettingKeys.Music_Preference:
|
||||||
|
scene.musicPreference = value;
|
||||||
|
break;
|
||||||
case SettingKeys.Move_Animations:
|
case SettingKeys.Move_Animations:
|
||||||
scene.moveAnimations = Setting[index].options[value] === "On";
|
scene.moveAnimations = Setting[index].options[value] === "On";
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user