1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-20 19:47:38 +00:00

Merge pull request #213 from FunkinCrew/bugfix/chart-editor-preview-inst

Chart Editor: Song Preview Bug Fix
This commit is contained in:
Cameron Taylor 2023-11-15 21:47:39 -05:00 committed by GitHub
commit 6a58e38077

View file

@ -4506,6 +4506,16 @@ class ChartEditorState extends HaxeUIState
function resetConductorAfterTest(_:FlxSubState = null):Void
{
moveSongToScrollPosition();
var instVolumeSlider:Null<Slider> = findComponent('menubarItemVolumeInstrumental', Slider);
var vocalVolumeSlider:Null<Slider> = findComponent('menubarItemVolumeVocals', Slider);
// Reapply the volume.
var instTargetVolume:Float = instVolumeSlider?.value ?? 1.0;
var vocalTargetVolume:Float = vocalVolumeSlider?.value ?? 1.0;
if (audioInstTrack != null) audioInstTrack.volume = instTargetVolume;
if (audioVocalTrackGroup != null) audioVocalTrackGroup.volume = vocalTargetVolume;
}
/**