diff --git a/puzzling-potions/src/popups/SettingsPopup.ts b/puzzling-potions/src/popups/SettingsPopup.ts index 4ab1748..ae31fdd 100644 --- a/puzzling-potions/src/popups/SettingsPopup.ts +++ b/puzzling-potions/src/popups/SettingsPopup.ts @@ -73,19 +73,19 @@ export class SettingsPopup extends Container { this.panel.addChild(this.layout); this.masterSlider = new VolumeSlider(i18n.settingsMaster); - this.masterSlider.onValueUpdate.connect((v) => { + this.masterSlider.onUpdate.connect((v) => { userSettings.setMasterVolume(v / 100); }); this.layout.addChild(this.masterSlider); this.bgmSlider = new VolumeSlider(i18n.settingsBgm); - this.bgmSlider.onValueUpdate.connect((v) => { + this.bgmSlider.onUpdate.connect((v) => { userSettings.setBgmVolume(v / 100); }); this.layout.addChild(this.bgmSlider); this.sfxSlider = new VolumeSlider(i18n.settingsSfx); - this.sfxSlider.onValueUpdate.connect((v) => { + this.sfxSlider.onUpdate.connect((v) => { userSettings.setSfxVolume(v / 100); }); this.layout.addChild(this.sfxSlider);