GameMode -> Screen.

This commit is contained in:
Dean Herbert
2017-02-17 18:59:30 +09:00
parent 366e95dd4f
commit e6ef9f67aa
44 changed files with 168 additions and 164 deletions

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
using osu.Framework; using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Desktop.Platform; using osu.Framework.Desktop.Platform;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Game; using osu.Game;
using osu.Game.Modes; using osu.Game.Modes;
using osu.Game.Modes.Catch; using osu.Game.Modes.Catch;

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
using osu.Framework; using osu.Framework;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;

View File

@ -2,7 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;
using osu.Framework.Timing; using osu.Framework.Timing;

View File

@ -3,7 +3,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework; using osu.Framework;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Timing; using osu.Framework.Timing;
using OpenTK; using OpenTK;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using OpenTK.Input; using OpenTK.Input;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Screens.Menu; using osu.Game.Screens.Menu;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Timing; using osu.Framework.Timing;
using osu.Game.Overlays; using osu.Game.Overlays;

View File

@ -3,7 +3,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;
using osu.Framework.Timing; using osu.Framework.Timing;
using osu.Game.Overlays; using osu.Game.Overlays;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using OpenTK.Input; using OpenTK.Input;

View File

@ -9,7 +9,7 @@ using osu.Game.Overlays.Pause;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
namespace osu.Desktop.VisualTests.Tests namespace osu.Desktop.VisualTests.Tests

View File

@ -3,7 +3,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Desktop.VisualTests.Platform; using osu.Desktop.VisualTests.Platform;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Game.Database; using osu.Game.Database;
using osu.Game.Modes; using osu.Game.Modes;
using osu.Game.Screens.Select; using osu.Game.Screens.Select;

View File

@ -3,7 +3,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;
using osu.Framework.Timing; using osu.Framework.Timing;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;

View File

@ -2,7 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System; using System;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;

View File

@ -2,7 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System; using System;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;

View File

@ -2,7 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework; using osu.Framework;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Cursor;
using osu.Game.Database; using osu.Game.Database;
using osu.Game; using osu.Game;
@ -21,7 +21,7 @@ namespace osu.Desktop.VisualTests
{ {
base.LoadComplete(); base.LoadComplete();
(new BackgroundModeDefault() { Depth = 10 }).Preload(this, AddInternal); (new BackgroundScreenDefault() { Depth = 10 }).Preload(this, AddInternal);
// Have to construct this here, rather than in the constructor, because // Have to construct this here, rather than in the constructor, because
// we depend on some dependencies to be loaded within OsuGameBase.load(). // we depend on some dependencies to be loaded within OsuGameBase.load().

View File

@ -29,7 +29,9 @@ namespace osu.Desktop
{ {
base.LoadComplete(); base.LoadComplete();
(new VersionManager()).Preload(this, Add); VersionManager versionManager;
(versionManager = new VersionManager()).Preload(this, Add);
Dependencies.Cache(versionManager);
} }
public override void SetHost(BasicGameHost host) public override void SetHost(BasicGameHost host)

View File

@ -23,6 +23,10 @@ namespace osu.Desktop.Overlays
private UpdateManager updateManager; private UpdateManager updateManager;
private NotificationManager notification; private NotificationManager notification;
AssemblyName assembly = Assembly.GetEntryAssembly().GetName();
public bool IsReleaseBuild => assembly.Version.Major > 0;
protected override bool HideOnEscape => false; protected override bool HideOnEscape => false;
public override bool HandleInput => false; public override bool HandleInput => false;
@ -40,14 +44,13 @@ namespace osu.Desktop.Overlays
bool isDebug = false; bool isDebug = false;
Debug.Assert(isDebug = true); Debug.Assert(isDebug = true);
var asm = Assembly.GetEntryAssembly().GetName();
string version; string version;
if (asm.Version.Major == 0) if (!IsReleaseBuild)
{ {
version = @"local " + (isDebug ? @"debug" : @"release"); version = @"local " + (isDebug ? @"debug" : @"release");
} }
else else
version = $@"{asm.Version.Major}.{asm.Version.Minor}.{asm.Version.Build}"; version = $@"{assembly.Version.Major}.{assembly.Version.Minor}.{assembly.Version.Build}";
Children = new Drawable[] Children = new Drawable[]
{ {

View File

@ -3,7 +3,7 @@
using System; using System;
using osu.Framework.Configuration; using osu.Framework.Configuration;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Configuration; using osu.Game.Configuration;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
@ -39,10 +39,10 @@ namespace osu.Game
private NotificationManager notificationManager; private NotificationManager notificationManager;
private MainMenu mainMenu => modeStack?.ChildGameMode as MainMenu; private MainMenu mainMenu => screenStack?.ChildGameScreen as MainMenu;
private Intro intro => modeStack as Intro; private Intro intro => screenStack as Intro;
private OsuGameMode modeStack; private OsuScreen screenStack;
private VolumeControl volume; private VolumeControl volume;
@ -106,11 +106,11 @@ namespace osu.Game
} }
}); });
(modeStack = new Intro()).Preload(this, d => (screenStack = new Intro()).Preload(this, d =>
{ {
modeStack.ModePushed += modeAdded; screenStack.ModePushed += screenAdded;
modeStack.Exited += modeRemoved; screenStack.Exited += screenRemoved;
mainContent.Add(modeStack); mainContent.Add(screenStack);
}); });
//overlay elements //overlay elements
@ -206,16 +206,16 @@ namespace osu.Game
return base.OnKeyDown(state, args); return base.OnKeyDown(state, args);
} }
public Action<GameMode> ModeChanged; public Action<Screen> ModeChanged;
private Container mainContent; private Container mainContent;
private Container overlayContent; private Container overlayContent;
private void modeChanged(GameMode newMode) private void modeChanged(Screen newScreen)
{ {
//central game mode change logic. //central game mode change logic.
if ((newMode as OsuGameMode)?.ShowOverlays != true) if ((newScreen as OsuScreen)?.ShowOverlays != true)
{ {
Toolbar.State = Visibility.Hidden; Toolbar.State = Visibility.Hidden;
musicController.State = Visibility.Hidden; musicController.State = Visibility.Hidden;
@ -228,15 +228,15 @@ namespace osu.Game
Cursor.FadeIn(100); Cursor.FadeIn(100);
ModeChanged?.Invoke(newMode); ModeChanged?.Invoke(newScreen);
if (newMode == null) if (newScreen == null)
Exit(); Exit();
} }
protected override bool OnExiting() protected override bool OnExiting()
{ {
if (!intro.DidLoadMenu || intro.ChildGameMode != null) if (!intro.DidLoadMenu || intro.ChildScreen != null)
{ {
Scheduler.Add(intro.MakeCurrent); Scheduler.Add(intro.MakeCurrent);
return true; return true;
@ -249,21 +249,21 @@ namespace osu.Game
{ {
base.UpdateAfterChildren(); base.UpdateAfterChildren();
if (modeStack.ChildGameMode != null) if (screenStack.ChildScreen != null)
modeStack.ChildGameMode.Padding = new MarginPadding { Top = Toolbar.Position.Y + Toolbar.DrawHeight }; screenStack.ChildScreen.Padding = new MarginPadding { Top = Toolbar.Position.Y + Toolbar.DrawHeight };
} }
private void modeAdded(GameMode newMode) private void screenAdded(Screen newScreen)
{ {
newMode.ModePushed += modeAdded; newScreen.ModePushed += screenAdded;
newMode.Exited += modeRemoved; newScreen.Exited += screenRemoved;
modeChanged(newMode); modeChanged(newScreen);
} }
private void modeRemoved(GameMode newMode) private void screenRemoved(Screen newScreen)
{ {
modeChanged(newMode); modeChanged(newScreen);
} }
} }
} }

View File

@ -5,7 +5,7 @@ using System;
using System.Threading; using System.Threading;
using osu.Framework; using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Transformations; using osu.Framework.Graphics.Transformations;
using osu.Framework.Input; using osu.Framework.Input;
@ -13,9 +13,9 @@ using OpenTK;
namespace osu.Game.Screens namespace osu.Game.Screens
{ {
public abstract class BackgroundMode : GameMode, IEquatable<BackgroundMode> public abstract class BackgroundScreen : Screen, IEquatable<BackgroundScreen>
{ {
public virtual bool Equals(BackgroundMode other) public virtual bool Equals(BackgroundScreen other)
{ {
return other?.GetType() == GetType(); return other?.GetType() == GetType();
} }
@ -37,21 +37,21 @@ namespace osu.Game.Screens
this.game = game; this.game = game;
} }
public override bool Push(GameMode mode) public override bool Push(Screen screen)
{ {
// When trying to push a non-loaded GameMode, load it asynchronously and re-invoke Push // When trying to push a non-loaded GameMode, load it asynchronously and re-invoke Push
// once it's done. // once it's done.
if (mode.LoadState == LoadState.NotLoaded) if (screen.LoadState == LoadState.NotLoaded)
{ {
mode.Preload(game, d => Push((BackgroundMode)d)); screen.Preload(game, d => Push((BackgroundScreen)d));
return true; return true;
} }
// Make sure the in-progress loading is complete before pushing the GameMode. // Make sure the in-progress loading is complete before pushing the GameMode.
while (mode.LoadState < LoadState.Loaded) while (screen.LoadState < LoadState.Loaded)
Thread.Sleep(1); Thread.Sleep(1);
base.Push(mode); base.Push(screen);
return true; return true;
} }
@ -62,7 +62,7 @@ namespace osu.Game.Screens
Content.Scale = new Vector2(1 + (x_movement_amount / DrawSize.X) * 2); Content.Scale = new Vector2(1 + (x_movement_amount / DrawSize.X) * 2);
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
Content.FadeOut(); Content.FadeOut();
Content.MoveToX(x_movement_amount); Content.MoveToX(x_movement_amount);
@ -73,13 +73,13 @@ namespace osu.Game.Screens
base.OnEntering(last); base.OnEntering(last);
} }
protected override void OnSuspending(GameMode next) protected override void OnSuspending(Screen next)
{ {
Content.MoveToX(-x_movement_amount, transition_length, EasingTypes.InOutQuart); Content.MoveToX(-x_movement_amount, transition_length, EasingTypes.InOutQuart);
base.OnSuspending(next); base.OnSuspending(next);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Content.FadeOut(transition_length, EasingTypes.OutExpo); Content.FadeOut(transition_length, EasingTypes.OutExpo);
Content.MoveToX(x_movement_amount, transition_length, EasingTypes.OutExpo); Content.MoveToX(x_movement_amount, transition_length, EasingTypes.OutExpo);
@ -87,7 +87,7 @@ namespace osu.Game.Screens
return base.OnExiting(next); return base.OnExiting(next);
} }
protected override void OnResuming(GameMode last) protected override void OnResuming(Screen last)
{ {
Content.MoveToX(0, transition_length, EasingTypes.OutExpo); Content.MoveToX(0, transition_length, EasingTypes.OutExpo);
base.OnResuming(last); base.OnResuming(last);

View File

@ -9,7 +9,7 @@ using osu.Game.Graphics.Backgrounds;
namespace osu.Game.Screens.Backgrounds namespace osu.Game.Screens.Backgrounds
{ {
public class BackgroundModeBeatmap : BackgroundMode public class BackgroundScreenBeatmap : BackgroundScreen
{ {
private Background background; private Background background;
@ -55,7 +55,7 @@ namespace osu.Game.Screens.Backgrounds
} }
} }
public BackgroundModeBeatmap(WorkingBeatmap beatmap) public BackgroundScreenBeatmap(WorkingBeatmap beatmap)
{ {
Beatmap = beatmap; Beatmap = beatmap;
} }
@ -66,9 +66,9 @@ namespace osu.Game.Screens.Backgrounds
blurTarget = sigma; blurTarget = sigma;
} }
public override bool Equals(BackgroundMode other) public override bool Equals(BackgroundScreen other)
{ {
return base.Equals(other) && beatmap == ((BackgroundModeBeatmap)other).Beatmap; return base.Equals(other) && beatmap == ((BackgroundScreenBeatmap)other).Beatmap;
} }
class BeatmapBackground : Background class BeatmapBackground : Background

View File

@ -5,19 +5,19 @@ using osu.Game.Graphics.Backgrounds;
namespace osu.Game.Screens.Backgrounds namespace osu.Game.Screens.Backgrounds
{ {
public class BackgroundModeCustom : BackgroundMode public class BackgroundScreenCustom : BackgroundScreen
{ {
private readonly string textureName; private readonly string textureName;
public BackgroundModeCustom(string textureName) public BackgroundScreenCustom(string textureName)
{ {
this.textureName = textureName; this.textureName = textureName;
Add(new Background(textureName)); Add(new Background(textureName));
} }
public override bool Equals(BackgroundMode other) public override bool Equals(BackgroundScreen other)
{ {
return base.Equals(other) && textureName == ((BackgroundModeCustom)other).textureName; return base.Equals(other) && textureName == ((BackgroundScreenCustom)other).textureName;
} }
} }
} }

View File

@ -7,7 +7,7 @@ using osu.Game.Graphics.Backgrounds;
namespace osu.Game.Screens.Backgrounds namespace osu.Game.Screens.Backgrounds
{ {
public class BackgroundModeDefault : BackgroundMode public class BackgroundScreenDefault : BackgroundScreen
{ {
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(BaseGame game) private void load(BaseGame game)

View File

@ -3,7 +3,7 @@
namespace osu.Game.Screens.Backgrounds namespace osu.Game.Screens.Backgrounds
{ {
public class BackgroundModeEmpty : BackgroundMode public class BackgroundScreenEmpty : BackgroundScreen
{ {
} }

View File

@ -3,7 +3,7 @@
namespace osu.Game.Screens.Charts namespace osu.Game.Screens.Charts
{ {
class ChartInfo : GameModeWhiteBox class ChartInfo : ScreenWhiteBox
{ {
} }
} }

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace osu.Game.Screens.Charts namespace osu.Game.Screens.Charts
{ {
class ChartListing : GameModeWhiteBox class ChartListing : ScreenWhiteBox
{ {
protected override IEnumerable<Type> PossibleChildren => new[] { protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(ChartInfo) typeof(ChartInfo)

View File

@ -3,7 +3,7 @@
namespace osu.Game.Screens.Direct namespace osu.Game.Screens.Direct
{ {
class OnlineListing : GameModeWhiteBox class OnlineListing : ScreenWhiteBox
{ {
} }
} }

View File

@ -1,23 +1,23 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Screens.Backgrounds; using osu.Game.Screens.Backgrounds;
using OpenTK.Graphics; using OpenTK.Graphics;
namespace osu.Game.Screens.Edit namespace osu.Game.Screens.Edit
{ {
class Editor : GameModeWhiteBox class Editor : ScreenWhiteBox
{ {
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500)); Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Background.Schedule(() => Background.FadeColour(Color4.White, 500)); Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next); return base.OnExiting(next);

View File

@ -3,7 +3,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
@ -17,7 +17,7 @@ using OpenTK.Graphics;
namespace osu.Game.Screens namespace osu.Game.Screens
{ {
public class GameModeWhiteBox : OsuGameMode public class ScreenWhiteBox : OsuScreen
{ {
private BackButton popButton; private BackButton popButton;
@ -29,9 +29,9 @@ namespace osu.Game.Screens
private Container textContainer; private Container textContainer;
private Box box; private Box box;
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg2"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg2");
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
@ -54,7 +54,7 @@ namespace osu.Game.Screens
Content.FadeIn(transition_time, EasingTypes.OutExpo); Content.FadeIn(transition_time, EasingTypes.OutExpo);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
textContainer.MoveTo(new Vector2((DrawSize.X / 16), 0), transition_time, EasingTypes.OutExpo); textContainer.MoveTo(new Vector2((DrawSize.X / 16), 0), transition_time, EasingTypes.OutExpo);
Content.FadeOut(transition_time, EasingTypes.OutExpo); Content.FadeOut(transition_time, EasingTypes.OutExpo);
@ -62,7 +62,7 @@ namespace osu.Game.Screens
return base.OnExiting(next); return base.OnExiting(next);
} }
protected override void OnSuspending(GameMode next) protected override void OnSuspending(Screen next)
{ {
base.OnSuspending(next); base.OnSuspending(next);
@ -70,7 +70,7 @@ namespace osu.Game.Screens
Content.FadeOut(transition_time, EasingTypes.OutExpo); Content.FadeOut(transition_time, EasingTypes.OutExpo);
} }
protected override void OnResuming(GameMode last) protected override void OnResuming(Screen last)
{ {
base.OnResuming(last); base.OnResuming(last);
@ -78,7 +78,7 @@ namespace osu.Game.Screens
Content.FadeIn(transition_time, EasingTypes.OutExpo); Content.FadeIn(transition_time, EasingTypes.OutExpo);
} }
public GameModeWhiteBox() public ScreenWhiteBox()
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
@ -148,7 +148,7 @@ namespace osu.Game.Screens
BackgroundColour = getColourFor(t), BackgroundColour = getColourFor(t),
Action = delegate Action = delegate
{ {
Push(Activator.CreateInstance(t) as GameMode); Push(Activator.CreateInstance(t) as Screen);
} }
}); });
} }

View File

@ -5,7 +5,7 @@ using osu.Framework.Allocation;
using osu.Framework.Audio; using osu.Framework.Audio;
using osu.Framework.Audio.Sample; using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track; using osu.Framework.Audio.Track;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Transformations; using osu.Framework.Graphics.Transformations;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
@ -14,7 +14,7 @@ using OpenTK.Graphics;
namespace osu.Game.Screens.Menu namespace osu.Game.Screens.Menu
{ {
class Intro : OsuGameMode class Intro : OsuScreen
{ {
private OsuLogo logo; private OsuLogo logo;
@ -28,9 +28,9 @@ namespace osu.Game.Screens.Menu
private AudioSample seeya; private AudioSample seeya;
private AudioTrack bgm; private AudioTrack bgm;
internal override bool ShowOverlays => (ParentGameMode as OsuGameMode)?.ShowOverlays ?? false; internal override bool ShowOverlays => (ParentScreen as OsuScreen)?.ShowOverlays ?? false;
protected override BackgroundMode CreateBackground() => new BackgroundModeEmpty(); protected override BackgroundScreen CreateBackground() => new BackgroundScreenEmpty();
public Intro() public Intro()
{ {
@ -65,7 +65,7 @@ namespace osu.Game.Screens.Menu
bgm.Looping = true; bgm.Looping = true;
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
@ -77,8 +77,7 @@ namespace osu.Game.Screens.Menu
{ {
bgm.Start(); bgm.Start();
mainMenu = new MainMenu(); (mainMenu = new MainMenu()).Preload(Game);
mainMenu.Preload(Game);
Scheduler.AddDelayed(delegate Scheduler.AddDelayed(delegate
{ {
@ -95,19 +94,19 @@ namespace osu.Game.Screens.Menu
logo.FadeIn(20000, EasingTypes.OutQuint); logo.FadeIn(20000, EasingTypes.OutQuint);
} }
protected override void OnSuspending(GameMode next) protected override void OnSuspending(Screen next)
{ {
Content.FadeOut(300); Content.FadeOut(300);
base.OnSuspending(next); base.OnSuspending(next);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
//cancel exiting if we haven't loaded the menu yet. //cancel exiting if we haven't loaded the menu yet.
return !DidLoadMenu; return !DidLoadMenu;
} }
protected override void OnResuming(GameMode last) protected override void OnResuming(Screen last)
{ {
if (!(last is MainMenu)) if (!(last is MainMenu))
Content.FadeIn(300); Content.FadeIn(300);

View File

@ -2,8 +2,8 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.GameModes.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Transformations; using osu.Framework.Graphics.Transformations;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
@ -16,20 +16,20 @@ using osu.Game.Screens.Select;
namespace osu.Game.Screens.Menu namespace osu.Game.Screens.Menu
{ {
public class MainMenu : OsuGameMode public class MainMenu : OsuScreen
{ {
private ButtonSystem buttons; private ButtonSystem buttons;
public override string Name => @"Main Menu"; public override string Name => @"Main Menu";
internal override bool ShowOverlays => buttons.State != MenuState.Initial; internal override bool ShowOverlays => buttons.State != MenuState.Initial;
private BackgroundMode background; private BackgroundScreen background;
protected override BackgroundMode CreateBackground() => background; protected override BackgroundScreen CreateBackground() => background;
public MainMenu() public MainMenu()
{ {
background = new BackgroundModeDefault(); background = new BackgroundScreenDefault();
Children = new Drawable[] Children = new Drawable[]
{ {
@ -62,13 +62,13 @@ namespace osu.Game.Screens.Menu
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
buttons.FadeInFromZero(500); buttons.FadeInFromZero(500);
} }
protected override void OnSuspending(GameMode next) protected override void OnSuspending(Screen next)
{ {
base.OnSuspending(next); base.OnSuspending(next);
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Menu
Content.MoveTo(new Vector2(-800, 0), length, EasingTypes.InSine); Content.MoveTo(new Vector2(-800, 0), length, EasingTypes.InSine);
} }
protected override void OnResuming(GameMode last) protected override void OnResuming(Screen last)
{ {
base.OnResuming(last); base.OnResuming(last);
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Menu
Content.MoveTo(new Vector2(0, 0), length, EasingTypes.OutQuint); Content.MoveTo(new Vector2(0, 0), length, EasingTypes.OutQuint);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
buttons.State = MenuState.Exit; buttons.State = MenuState.Exit;
Content.FadeOut(3000); Content.FadeOut(3000);

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace osu.Game.Screens.Multiplayer namespace osu.Game.Screens.Multiplayer
{ {
class Lobby : GameModeWhiteBox class Lobby : ScreenWhiteBox
{ {
protected override IEnumerable<Type> PossibleChildren => new[] { protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(MatchCreate), typeof(MatchCreate),

View File

@ -3,7 +3,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Screens.Backgrounds; using osu.Game.Screens.Backgrounds;
using osu.Game.Screens.Play; using osu.Game.Screens.Play;
using OpenTK.Graphics; using OpenTK.Graphics;
@ -11,23 +11,23 @@ using osu.Game.Screens.Select;
namespace osu.Game.Screens.Multiplayer namespace osu.Game.Screens.Multiplayer
{ {
class Match : GameModeWhiteBox class Match : ScreenWhiteBox
{ {
protected override IEnumerable<Type> PossibleChildren => new[] { protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(MatchSongSelect), typeof(MatchSongSelect),
typeof(Player), typeof(Player),
}; };
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500)); Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Background.Schedule(() => Background.FadeColour(Color4.White, 500)); Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next); return base.OnExiting(next);

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace osu.Game.Screens.Multiplayer namespace osu.Game.Screens.Multiplayer
{ {
class MatchCreate : GameModeWhiteBox class MatchCreate : ScreenWhiteBox
{ {
protected override IEnumerable<Type> PossibleChildren => new[] { protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(Match) typeof(Match)

View File

@ -4,21 +4,21 @@
using System; using System;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Configuration; using osu.Framework.Configuration;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
namespace osu.Game.Screens namespace osu.Game.Screens
{ {
public abstract class OsuGameMode : GameMode public abstract class OsuScreen : Screen
{ {
internal BackgroundMode Background { get; private set; } internal BackgroundScreen Background { get; private set; }
/// <summary> /// <summary>
/// Override to create a BackgroundMode for the current GameMode. /// Override to create a BackgroundMode for the current GameMode.
/// Note that the instance created may not be the used instance if it matches the BackgroundMode equality clause. /// Note that the instance created may not be the used instance if it matches the BackgroundMode equality clause.
/// </summary> /// </summary>
protected virtual BackgroundMode CreateBackground() => null; protected virtual BackgroundScreen CreateBackground() => null;
internal virtual bool ShowOverlays => true; internal virtual bool ShowOverlays => true;
@ -73,15 +73,15 @@ namespace osu.Game.Screens
beatmap = game?.Beatmap; beatmap = game?.Beatmap;
} }
public override bool Push(GameMode mode) public override bool Push(Screen screen)
{ {
OsuGameMode nextOsu = mode as OsuGameMode; OsuScreen nextOsu = screen as OsuScreen;
if (nextOsu != null) if (nextOsu != null)
{ {
nextOsu.beatmap = beatmap; nextOsu.beatmap = beatmap;
} }
return base.Push(mode); return base.Push(screen);
} }
protected virtual void OnBeatmapChanged(WorkingBeatmap beatmap) protected virtual void OnBeatmapChanged(WorkingBeatmap beatmap)
@ -89,11 +89,11 @@ namespace osu.Game.Screens
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
OsuGameMode lastOsu = last as OsuGameMode; OsuScreen lastOsu = last as OsuScreen;
BackgroundMode bg = CreateBackground(); BackgroundScreen bg = CreateBackground();
if (lastOsu?.Background != null) if (lastOsu?.Background != null)
{ {
@ -120,9 +120,9 @@ namespace osu.Game.Screens
base.OnEntering(last); base.OnEntering(last);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
OsuGameMode nextOsu = next as OsuGameMode; OsuScreen nextOsu = next as OsuScreen;
if (Background != null && !Background.Equals(nextOsu?.Background)) if (Background != null && !Background.Equals(nextOsu?.Background))
{ {

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
@ -14,9 +14,9 @@ using OpenTK.Graphics;
namespace osu.Game.Screens.Play namespace osu.Game.Screens.Play
{ {
class FailDialog : OsuGameMode class FailDialog : OsuScreen
{ {
protected override BackgroundMode CreateBackground() => new BackgroundModeBeatmap(Beatmap); protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap);
private static readonly Vector2 background_blur = new Vector2(20); private static readonly Vector2 background_blur = new Vector2(20);
@ -31,13 +31,13 @@ namespace osu.Game.Screens.Play
}); });
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
Background.Schedule(() => (Background as BackgroundModeBeatmap)?.BlurTo(background_blur, 1000)); Background.Schedule(() => (Background as BackgroundScreenBeatmap)?.BlurTo(background_blur, 1000));
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Background.Schedule(() => Background.FadeColour(Color4.White, 500)); Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next); return base.OnExiting(next);

View File

@ -1,23 +1,23 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Screens.Backgrounds; using osu.Game.Screens.Backgrounds;
using OpenTK.Graphics; using OpenTK.Graphics;
namespace osu.Game.Screens.Play namespace osu.Game.Screens.Play
{ {
class ModSelect : GameModeWhiteBox class ModSelect : ScreenWhiteBox
{ {
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500)); Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Background.Schedule(() => Background.FadeColour(Color4.White, 500)); Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next); return base.OnExiting(next);

View File

@ -12,7 +12,7 @@ using osu.Game.Modes;
using osu.Game.Modes.Objects.Drawables; using osu.Game.Modes.Objects.Drawables;
using osu.Game.Screens.Backgrounds; using osu.Game.Screens.Backgrounds;
using OpenTK; using OpenTK;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Game.Modes.UI; using osu.Game.Modes.UI;
using osu.Game.Screens.Ranking; using osu.Game.Screens.Ranking;
using osu.Game.Configuration; using osu.Game.Configuration;
@ -27,11 +27,11 @@ using osu.Framework.Logging;
namespace osu.Game.Screens.Play namespace osu.Game.Screens.Play
{ {
public class Player : OsuGameMode public class Player : OsuScreen
{ {
public bool Autoplay; public bool Autoplay;
protected override BackgroundMode CreateBackground() => new BackgroundModeBeatmap(Beatmap); protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap);
internal override bool ShowOverlays => false; internal override bool ShowOverlays => false;
@ -281,18 +281,18 @@ namespace osu.Game.Screens.Play
}); });
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
(Background as BackgroundModeBeatmap)?.BlurTo(Vector2.Zero, 1000); (Background as BackgroundScreenBeatmap)?.BlurTo(Vector2.Zero, 1000);
Background?.FadeTo((100f - dimLevel) / 100, 1000); Background?.FadeTo((100f - dimLevel) / 100, 1000);
Content.Alpha = 0; Content.Alpha = 0;
dimLevel.ValueChanged += dimChanged; dimLevel.ValueChanged += dimChanged;
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
if (pauseOverlay == null) return false; if (pauseOverlay == null) return false;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
@ -14,21 +14,21 @@ using OpenTK.Graphics;
namespace osu.Game.Screens.Ranking namespace osu.Game.Screens.Ranking
{ {
class Results : OsuGameMode class Results : OsuScreen
{ {
protected override BackgroundMode CreateBackground() => new BackgroundModeBeatmap(Beatmap); protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap);
private static readonly Vector2 background_blur = new Vector2(20); private static readonly Vector2 background_blur = new Vector2(20);
ScoreDisplay scoreDisplay; ScoreDisplay scoreDisplay;
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
Background.Schedule(() => (Background as BackgroundModeBeatmap)?.BlurTo(background_blur, 1000)); Background.Schedule(() => (Background as BackgroundScreenBeatmap)?.BlurTo(background_blur, 1000));
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
Background.Schedule(() => Background.FadeColour(Color4.White, 500)); Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next); return base.OnExiting(next);

View File

@ -8,12 +8,12 @@ using osu.Game.Screens.Edit;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
class EditSongSelect : GameModeWhiteBox class EditSongSelect : ScreenWhiteBox
{ {
protected override IEnumerable<Type> PossibleChildren => new[] { protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(Editor) typeof(Editor)
}; };
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
} }
} }

View File

@ -5,8 +5,8 @@ using osu.Game.Screens.Backgrounds;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
class MatchSongSelect : GameModeWhiteBox class MatchSongSelect : ScreenWhiteBox
{ {
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
} }
} }

View File

@ -9,7 +9,7 @@ using osu.Framework.Allocation;
using osu.Framework.Audio; using osu.Framework.Audio;
using osu.Framework.Audio.Track; using osu.Framework.Audio.Track;
using osu.Framework.Configuration; using osu.Framework.Configuration;
using osu.Framework.GameModes; using osu.Framework.Screens;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Primitives; using osu.Framework.Graphics.Primitives;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
@ -32,11 +32,11 @@ using osu.Framework.Threading;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public class PlaySongSelect : OsuGameMode public class PlaySongSelect : OsuScreen
{ {
private Bindable<PlayMode> playMode; private Bindable<PlayMode> playMode;
private BeatmapDatabase database; private BeatmapDatabase database;
protected override BackgroundMode CreateBackground() => new BackgroundModeBeatmap(Beatmap); protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap);
private CarouselContainer carousel; private CarouselContainer carousel;
private TrackManager trackManager; private TrackManager trackManager;
@ -203,7 +203,7 @@ namespace osu.Game.Screens.Select
Schedule(() => addBeatmapSet(s, Game, true)); Schedule(() => addBeatmapSet(s, Game, true));
} }
protected override void OnEntering(GameMode last) protected override void OnEntering(Screen last)
{ {
base.OnEntering(last); base.OnEntering(last);
ensurePlayingSelected(); ensurePlayingSelected();
@ -218,7 +218,7 @@ namespace osu.Game.Screens.Select
filter.Activate(); filter.Activate();
} }
protected override void OnResuming(GameMode last) protected override void OnResuming(Screen last)
{ {
player = null; player = null;
@ -233,7 +233,7 @@ namespace osu.Game.Screens.Select
filter.Activate(); filter.Activate();
} }
protected override void OnSuspending(GameMode next) protected override void OnSuspending(Screen next)
{ {
Content.ScaleTo(1.1f, 250, EasingTypes.InSine); Content.ScaleTo(1.1f, 250, EasingTypes.InSine);
@ -243,7 +243,7 @@ namespace osu.Game.Screens.Select
base.OnSuspending(next); base.OnSuspending(next);
} }
protected override bool OnExiting(GameMode next) protected override bool OnExiting(Screen next)
{ {
beatmapInfoWedge.MoveToX(-100, 800, EasingTypes.InQuint); beatmapInfoWedge.MoveToX(-100, 800, EasingTypes.InQuint);
beatmapInfoWedge.RotateTo(10, 800, EasingTypes.InQuint); beatmapInfoWedge.RotateTo(10, 800, EasingTypes.InQuint);
@ -271,7 +271,7 @@ namespace osu.Game.Screens.Select
private void changeBackground(WorkingBeatmap beatmap) private void changeBackground(WorkingBeatmap beatmap)
{ {
var backgroundModeBeatmap = Background as BackgroundModeBeatmap; var backgroundModeBeatmap = Background as BackgroundScreenBeatmap;
if (backgroundModeBeatmap != null) if (backgroundModeBeatmap != null)
{ {
backgroundModeBeatmap.Beatmap = beatmap; backgroundModeBeatmap.Beatmap = beatmap;

View File

@ -123,14 +123,14 @@
<Compile Include="Overlays\Toolbar\ToolbarOverlayToggleButton.cs" /> <Compile Include="Overlays\Toolbar\ToolbarOverlayToggleButton.cs" />
<Compile Include="Overlays\Toolbar\ToolbarUserArea.cs" /> <Compile Include="Overlays\Toolbar\ToolbarUserArea.cs" />
<Compile Include="Overlays\Toolbar\ToolbarUserButton.cs" /> <Compile Include="Overlays\Toolbar\ToolbarUserButton.cs" />
<Compile Include="Screens\BackgroundMode.cs" /> <Compile Include="Screens\BackgroundScreen.cs" />
<Compile Include="Screens\Backgrounds\BackgroundModeBeatmap.cs" /> <Compile Include="Screens\Backgrounds\BackgroundScreenBeatmap.cs" />
<Compile Include="Screens\Backgrounds\BackgroundModeCustom.cs" /> <Compile Include="Screens\Backgrounds\BackgroundScreenCustom.cs" />
<Compile Include="Screens\Backgrounds\BackgroundModeDefault.cs" /> <Compile Include="Screens\Backgrounds\BackgroundScreenDefault.cs" />
<Compile Include="Screens\Backgrounds\BackgroundModeEmpty.cs" /> <Compile Include="Screens\Backgrounds\BackgroundScreenEmpty.cs" />
<Compile Include="Screens\Charts\ChartInfo.cs" /> <Compile Include="Screens\Charts\ChartInfo.cs" />
<Compile Include="Screens\Edit\Editor.cs" /> <Compile Include="Screens\Edit\Editor.cs" />
<Compile Include="Screens\GameModeWhiteBox.cs" /> <Compile Include="Screens\GameScreenWhiteBox.cs" />
<Compile Include="Screens\Menu\Button.cs" /> <Compile Include="Screens\Menu\Button.cs" />
<Compile Include="Screens\Menu\FlowContainerWithOrigin.cs" /> <Compile Include="Screens\Menu\FlowContainerWithOrigin.cs" />
<Compile Include="Screens\Menu\Intro.cs" /> <Compile Include="Screens\Menu\Intro.cs" />
@ -146,7 +146,7 @@
<Compile Include="Screens\Play\SkipButton.cs" /> <Compile Include="Screens\Play\SkipButton.cs" />
<Compile Include="Screens\Select\CarouselContainer.cs" /> <Compile Include="Screens\Select\CarouselContainer.cs" />
<Compile Include="Screens\Select\MatchSongSelect.cs" /> <Compile Include="Screens\Select\MatchSongSelect.cs" />
<Compile Include="Screens\OsuGameMode.cs" /> <Compile Include="Screens\OsuGameScreen.cs" />
<Compile Include="Screens\Play\ModSelect.cs" /> <Compile Include="Screens\Play\ModSelect.cs" />
<Compile Include="Beatmaps\Drawables\BeatmapGroup.cs" /> <Compile Include="Beatmaps\Drawables\BeatmapGroup.cs" />
<Compile Include="Beatmaps\Drawables\BeatmapPanel.cs" /> <Compile Include="Beatmaps\Drawables\BeatmapPanel.cs" />