mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Update for settings menu refactor AGAIN
This commit is contained in:
parent
ed153f040f
commit
e84bd3ac89
@ -66,7 +66,8 @@ export const SettingKeys = {
|
||||
Player_Gender: "PLAYER_GENDER",
|
||||
Master_Volume: "MASTER_VOLUME",
|
||||
BGM_Volume: "BGM_VOLUME",
|
||||
SE_Volume: "SE_VOLUME"
|
||||
SE_Volume: "SE_VOLUME",
|
||||
Music_Preference: "MUSIC_PREFERENCE"
|
||||
};
|
||||
|
||||
/**
|
||||
@ -287,6 +288,14 @@ export const Setting: Array<Setting> = [
|
||||
options: VOLUME_OPTIONS,
|
||||
default: 10,
|
||||
type: SettingType.AUDIO
|
||||
},
|
||||
{
|
||||
key: SettingKeys.Music_Preference,
|
||||
label: "Music Preference",
|
||||
options: ["Consistent", "Mixed"],
|
||||
default: 0,
|
||||
type: SettingType.AUDIO,
|
||||
requireReload: true
|
||||
}
|
||||
];
|
||||
|
||||
@ -335,6 +344,9 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
|
||||
scene.seVolume = value ? parseInt(Setting[index].options[value]) * 0.01 : 0;
|
||||
scene.updateSoundVolume();
|
||||
break;
|
||||
case SettingKeys.Music_Preference:
|
||||
scene.musicPreference = value;
|
||||
break;
|
||||
case SettingKeys.Damage_Numbers:
|
||||
scene.damageNumbersMode = value;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user