mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09:00
Merge pull request #11784 from peppy/fix-perform-from-screen-test-failures
Fix test failures in PerformFromScreen tests
This commit is contained in:
commit
eae8bc7f79
@ -176,6 +176,7 @@ namespace osu.Game.Overlays.Volume
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Bindable.ValueChanged += volume =>
|
Bindable.ValueChanged += volume =>
|
||||||
{
|
{
|
||||||
this.TransformTo("DisplayVolume",
|
this.TransformTo("DisplayVolume",
|
||||||
@ -183,6 +184,7 @@ namespace osu.Game.Overlays.Volume
|
|||||||
400,
|
400,
|
||||||
Easing.OutQuint);
|
Easing.OutQuint);
|
||||||
};
|
};
|
||||||
|
|
||||||
bgProgress.Current.Value = 0.75f;
|
bgProgress.Current.Value = 0.75f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,15 +67,19 @@ namespace osu.Game.Screens
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnExiting(IScreen next)
|
public override bool OnExiting(IScreen next)
|
||||||
|
{
|
||||||
|
if (IsLoaded)
|
||||||
{
|
{
|
||||||
this.FadeOut(transition_length, Easing.OutExpo);
|
this.FadeOut(transition_length, Easing.OutExpo);
|
||||||
this.MoveToX(x_movement_amount, transition_length, Easing.OutExpo);
|
this.MoveToX(x_movement_amount, transition_length, Easing.OutExpo);
|
||||||
|
}
|
||||||
|
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResuming(IScreen last)
|
public override void OnResuming(IScreen last)
|
||||||
{
|
{
|
||||||
|
if (IsLoaded)
|
||||||
this.MoveToX(0, transition_length, Easing.OutExpo);
|
this.MoveToX(0, transition_length, Easing.OutExpo);
|
||||||
base.OnResuming(last);
|
base.OnResuming(last);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user