1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:17:24 +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
commit e4ec491e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,7 @@ namespace osu.Game.Configuration
public enum IntroSequence public enum IntroSequence
{ {
Circles, Circles,
Triangles Triangles,
Random
} }
} }

View File

@ -6,6 +6,7 @@ using System.Linq;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Shaders; using osu.Framework.Graphics.Shaders;
using osu.Framework.MathUtils;
using osu.Game.Screens.Menu; using osu.Game.Screens.Menu;
using osuTK; using osuTK;
using osu.Framework.Screens; using osu.Framework.Screens;
@ -59,6 +60,9 @@ namespace osu.Game.Screens
private IntroScreen getIntroSequence() private IntroScreen getIntroSequence()
{ {
if (introSequence == IntroSequence.Random)
introSequence = (IntroSequence)RNG.Next(0, (int)IntroSequence.Random);
switch (introSequence) switch (introSequence)
{ {
case IntroSequence.Circles: case IntroSequence.Circles: