mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Refactor volume control to load asynchronously.
This commit is contained in:
@ -13,11 +13,10 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
internal class VolumeMeter : Container
|
||||
{
|
||||
private Box meterFill;
|
||||
private BindableDouble volume;
|
||||
public BindableDouble Bindable;
|
||||
|
||||
public VolumeMeter(string meterName, BindableDouble volume)
|
||||
public VolumeMeter(string meterName)
|
||||
{
|
||||
this.volume = volume;
|
||||
Size = new Vector2(40, 180);
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -65,10 +64,10 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
|
||||
public double Volume
|
||||
{
|
||||
get { return volume.Value; }
|
||||
get { return Bindable.Value; }
|
||||
private set
|
||||
{
|
||||
volume.Value = value;
|
||||
Bindable.Value = value;
|
||||
updateFill();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user