mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Abstract intro screen logic to base class
This commit is contained in:
@ -86,7 +86,8 @@ namespace osu.Game
|
||||
private BackButton backButton;
|
||||
|
||||
private MainMenu menuScreen;
|
||||
private Intro introScreen;
|
||||
|
||||
private IntroScreen introScreen;
|
||||
|
||||
private Bindable<int> configRuleset;
|
||||
|
||||
@ -760,7 +761,7 @@ namespace osu.Game
|
||||
if (introScreen == null)
|
||||
return true;
|
||||
|
||||
if (!introScreen.DidLoadMenu || !(screenStack.CurrentScreen is Intro))
|
||||
if (!introScreen.DidLoadMenu || !(screenStack.CurrentScreen is IntroScreen))
|
||||
{
|
||||
Scheduler.Add(introScreen.MakeCurrent);
|
||||
return true;
|
||||
@ -795,7 +796,7 @@ namespace osu.Game
|
||||
{
|
||||
switch (newScreen)
|
||||
{
|
||||
case Intro intro:
|
||||
case IntroScreen intro:
|
||||
introScreen = intro;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user