mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:03:01 +08:00
Add random intro!
This commit is contained in:
parent
bbb38e0394
commit
52b044b7f6
@ -6,6 +6,7 @@ namespace osu.Game.Configuration
|
|||||||
public enum IntroSequence
|
public enum IntroSequence
|
||||||
{
|
{
|
||||||
Circles,
|
Circles,
|
||||||
Triangles
|
Triangles,
|
||||||
|
Random
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -12,6 +13,7 @@ using osu.Framework.Screens;
|
|||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using IntroSequence = osu.Game.Configuration.IntroSequence;
|
using IntroSequence = osu.Game.Configuration.IntroSequence;
|
||||||
|
|
||||||
|
|
||||||
namespace osu.Game.Screens
|
namespace osu.Game.Screens
|
||||||
{
|
{
|
||||||
public class Loader : StartupScreen
|
public class Loader : StartupScreen
|
||||||
@ -58,9 +60,16 @@ namespace osu.Game.Screens
|
|||||||
}
|
}
|
||||||
|
|
||||||
private IntroScreen getIntroSequence()
|
private IntroScreen getIntroSequence()
|
||||||
{
|
{//вот именно что не показывает ни всплывающих подсказок нихера
|
||||||
|
Random random = new Random();
|
||||||
switch (introSequence)
|
switch (introSequence)
|
||||||
{
|
{
|
||||||
|
case IntroSequence.Random:
|
||||||
|
if (random.Next(2) == 0)
|
||||||
|
return new IntroCircles();
|
||||||
|
else
|
||||||
|
return new IntroTriangles();
|
||||||
|
|
||||||
case IntroSequence.Circles:
|
case IntroSequence.Circles:
|
||||||
return new IntroCircles();
|
return new IntroCircles();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user