mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Convert everything to use IScreen
This commit is contained in:
@ -55,7 +55,7 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
private IEnumerable<Drawable> allCircles => new Drawable[] { circleOuterBackground, circleInner, circleOuter };
|
||||
|
||||
protected override void OnEntering(Screen last)
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
(Background as BackgroundScreenBeatmap)?.BlurTo(background_blur, 2500, Easing.OutQuint);
|
||||
@ -98,7 +98,7 @@ namespace osu.Game.Screens.Ranking
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnExiting(Screen next)
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
allCircles.ForEach(c =>
|
||||
{
|
||||
@ -107,7 +107,7 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
Background.ScaleTo(1f, transition_time / 4, Easing.OutQuint);
|
||||
|
||||
Content.FadeOut(transition_time / 4);
|
||||
this.FadeOut(transition_time / 4);
|
||||
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Ranking
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
Children = new Drawable[]
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
new AspectContainer
|
||||
{
|
||||
@ -260,7 +260,7 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft,
|
||||
Action = Exit
|
||||
Action = this.Exit
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user