mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 21:42:55 +08:00
Merge branch 'master' into sort-skins-alphabetically
This commit is contained in:
commit
12f2067357
@ -24,6 +24,13 @@ namespace osu.Game.Overlays
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private AudioManager audio { get; set; }
|
private AudioManager audio { get; set; }
|
||||||
|
|
||||||
|
private readonly float finalFillAlpha;
|
||||||
|
|
||||||
|
protected HoldToConfirmOverlay(float finalFillAlpha = 1)
|
||||||
|
{
|
||||||
|
this.finalFillAlpha = finalFillAlpha;
|
||||||
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
@ -42,8 +49,10 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
Progress.ValueChanged += p =>
|
Progress.ValueChanged += p =>
|
||||||
{
|
{
|
||||||
audioVolume.Value = 1 - p.NewValue;
|
var target = p.NewValue * finalFillAlpha;
|
||||||
overlay.Alpha = (float)p.NewValue;
|
|
||||||
|
audioVolume.Value = 1 - target;
|
||||||
|
overlay.Alpha = (float)target;
|
||||||
};
|
};
|
||||||
|
|
||||||
audio.Tracks.AddAdjustment(AdjustableProperty.Volume, audioVolume);
|
audio.Tracks.AddAdjustment(AdjustableProperty.Volume, audioVolume);
|
||||||
|
@ -13,6 +13,11 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
public void Abort() => AbortConfirm();
|
public void Abort() => AbortConfirm();
|
||||||
|
|
||||||
|
public ExitConfirmOverlay()
|
||||||
|
: base(0.7f)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public bool OnPressed(GlobalAction action)
|
public bool OnPressed(GlobalAction action)
|
||||||
{
|
{
|
||||||
if (action == GlobalAction.Back)
|
if (action == GlobalAction.Back)
|
||||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Tests.Beatmaps
|
namespace osu.Game.Tests.Beatmaps
|
||||||
{
|
{
|
||||||
public class LegacyBeatmapSkinColourTest : ScreenTestScene
|
public abstract class LegacyBeatmapSkinColourTest : ScreenTestScene
|
||||||
{
|
{
|
||||||
protected readonly Bindable<bool> BeatmapSkins = new Bindable<bool>();
|
protected readonly Bindable<bool> BeatmapSkins = new Bindable<bool>();
|
||||||
protected readonly Bindable<bool> BeatmapColours = new Bindable<bool>();
|
protected readonly Bindable<bool> BeatmapColours = new Bindable<bool>();
|
||||||
|
Loading…
Reference in New Issue
Block a user