mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 21:32:57 +08:00
Ensure initial value is set even if that value is zero
This commit is contained in:
parent
05a13d4d39
commit
96ea42d3ba
@ -122,10 +122,15 @@ namespace osu.Game.Overlays.Volume
|
|||||||
});
|
});
|
||||||
|
|
||||||
Bindable.ValueChanged += newVolume => { this.TransformTo("DisplayVolume", newVolume, 400, Easing.OutQuint); };
|
Bindable.ValueChanged += newVolume => { this.TransformTo("DisplayVolume", newVolume, 400, Easing.OutQuint); };
|
||||||
|
|
||||||
bgProgress.Current.Value = 0.75f;
|
bgProgress.Current.Value = 0.75f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
Bindable.TriggerChange();
|
||||||
|
}
|
||||||
|
|
||||||
private double displayVolume;
|
private double displayVolume;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user