Fix volume control fill being incorrect on first display.

This commit is contained in:
Dean Herbert 2016-11-29 18:35:59 +09:00
parent 139fe873f3
commit fa80cc84f8

View File

@ -41,6 +41,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
meterFill = new Box
{
Colour = Color4.White,
Scale = new Vector2(1, 0),
RelativeSizeAxes = Axes.Both,
Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre
@ -54,6 +55,8 @@ namespace osu.Game.Graphics.UserInterface.Volume
Origin = Anchor.TopCentre
}
};
Bindable.ValueChanged += delegate { updateFill(); };
}
protected override void LoadComplete()
@ -68,7 +71,6 @@ namespace osu.Game.Graphics.UserInterface.Volume
private set
{
Bindable.Value = value;
updateFill();
}
}