HaxeFlixel / flixel-addons

Additional classes for HaxeFlixel
170 stars 139 forks source link

Change String sounds in FlxSlider to FlxSound's. #438

Open TheGaloXx opened 4 months ago

TheGaloXx commented 4 months ago

FlxSlider has two variables for sfx, clickSound and hoverSound. But these are Strings used to give the path of the sound file, not FlxSounds, so the user doesn't have the opportunity to change stuff like the volume, pitch, time, etc.

I think changing these variables to FlxSound would be better to achieve more customization.

FlxG.sound.play(hoverSound); => hoverSound.play();