1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

remove blank line and try to get test case working

This commit is contained in:
jorolf 2018-03-03 21:55:19 +01:00
parent bafcab1349
commit ec013dbee8
2 changed files with 3 additions and 4 deletions

View File

@ -18,11 +18,11 @@ namespace osu.Game.Tests.Visual
{
VolumeMeter meter;
MuteButton mute;
Add(meter = new VolumeMeter("MASTER", 125, Color4.Blue));
Add(mute = new MuteButton
LoadComponentAsync(meter = new VolumeMeter("MASTER", 125, Color4.Blue), Add);
LoadComponentAsync(mute = new MuteButton
{
Margin = new MarginPadding { Top = 200 }
});
}, Add);
AddSliderStep("master volume", 0, 10, 0, i => meter.Bindable.Value = i * 0.1);
AddToggleStep("mute", b => mute.Current.Value = b);

View File

@ -75,7 +75,6 @@ namespace osu.Game.Overlays
},
});
volumeMeterMaster.Bindable.BindTo(audio.Volume);
volumeMeterEffect.Bindable.BindTo(audio.VolumeSample);
volumeMeterMusic.Bindable.BindTo(audio.VolumeTrack);