Skip to content

Commit

Permalink
Revert onValueUpdate changes on Slider
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Jan 11, 2024
1 parent d9e6b22 commit 9052260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions puzzling-potions/src/popups/SettingsPopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9052260

Please sign in to comment.