mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix volume control fill being incorrect on first display.
This commit is contained in:
@ -41,6 +41,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
meterFill = new Box
|
meterFill = new Box
|
||||||
{
|
{
|
||||||
Colour = Color4.White,
|
Colour = Color4.White,
|
||||||
|
Scale = new Vector2(1, 0),
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
Anchor = Anchor.BottomCentre
|
Anchor = Anchor.BottomCentre
|
||||||
@ -54,6 +55,8 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
Origin = Anchor.TopCentre
|
Origin = Anchor.TopCentre
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Bindable.ValueChanged += delegate { updateFill(); };
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
@ -68,7 +71,6 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
private set
|
private set
|
||||||
{
|
{
|
||||||
Bindable.Value = value;
|
Bindable.Value = value;
|
||||||
updateFill();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user