From 9052260de519c14957b36252fe328e4b1fa0eb4a Mon Sep 17 00:00:00 2001 From: Baz Utsahajit Date: Thu, 11 Jan 2024 13:19:14 +0000 Subject: [PATCH] Revert onValueUpdate changes on Slider --- puzzling-potions/src/popups/SettingsPopup.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);