Skip to content

Commit

Permalink
Merge branch 'next-v8-puzzling-potions' into next-v8-puzzling-potions…
Browse files Browse the repository at this point in the history
…-no-depr
  • Loading branch information
bbazukun123 committed Jan 11, 2024
2 parents 48ff7d8 + 9052260 commit 4ba438a
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 4ba438a

Please sign in to comment.