Add random intro!

This commit is contained in:
V1ntagezTV 2019-09-29 00:10:17 +05:00
parent bbb38e0394
commit 52b044b7f6
2 changed files with 12 additions and 2 deletions

View File

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

View File

@ -1,6 +1,7 @@
// 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.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
@ -12,6 +13,7 @@
using osu.Game.Configuration;
using IntroSequence = osu.Game.Configuration.IntroSequence;
namespace osu.Game.Screens
{
public class Loader : StartupScreen
@ -58,9 +60,16 @@ protected virtual OsuScreen CreateLoadableScreen()
}
private IntroScreen getIntroSequence()
{
{//вот именно что не показывает ни всплывающих подсказок нихера
Random random = new Random();
switch (introSequence)
{
case IntroSequence.Random:
if (random.Next(2) == 0)
return new IntroCircles();
else
return new IntroTriangles();
case IntroSequence.Circles:
return new IntroCircles();