1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 01:04:49 +08:00

Merge pull request #6310 from V1ntagezTV/add-random-intro

Add the ability to choose a random intro sequence each startup
This commit is contained in:
Dean Herbert
2019-09-29 14:53:24 +08:00
committed by GitHub
Unverified
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ namespace osu.Game.Configuration
public enum IntroSequence
{
Circles,
Triangles
Triangles,
Random
}
}
+4
View File
@@ -6,6 +6,7 @@ using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shaders;
using osu.Framework.MathUtils;
using osu.Game.Screens.Menu;
using osuTK;
using osu.Framework.Screens;
@@ -59,6 +60,9 @@ namespace osu.Game.Screens
private IntroScreen getIntroSequence()
{
if (introSequence == IntroSequence.Random)
introSequence = (IntroSequence)RNG.Next(0, (int)IntroSequence.Random);
switch (introSequence)
{
case IntroSequence.Circles: