mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Fix volume control fill being incorrect on first display.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user