1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 04:39:54 +08:00

Fix volume control fill being incorrect on first display.

This commit is contained in:
Dean Herbert
2016-11-29 18:35:59 +09:00
Unverified
parent 139fe873f3
commit fa80cc84f8
@@ -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();
}
}