add the volume overlay

This commit is contained in:
jorolf
2018-03-03 19:08:35 +01:00
parent bd75422d88
commit 3a420ba826
9 changed files with 109 additions and 193 deletions

View File

@ -128,9 +128,9 @@ namespace osu.Game.Overlays.Volume
});
Bindable.ValueChanged += newVolume => this.TransformTo("circleBindable", newVolume * 0.75, 250, Easing.OutQuint);
volumeCircle.Current.ValueChanged += newVolume =>
volumeCircle.Current.ValueChanged += newVolume => //by using this event we sync the meter with the text. newValue has to be divided by 0.75 to give the actual percentage
{
if (newVolume > 0.745)
if (Precision.DefinitelyBigger(newVolume, 0.74))
{
text.Alpha = 0;
maxGlow.Alpha = 1; //show "MAX"