mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +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
|
||||
{
|
||||
Circles,
|
||||
Triangles
|
||||
Triangles,
|
||||
Random
|
||||
}
|
||||
}
|
||||
|
@ -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.Framework.Screens;
|
||||
using osu.Game.Configuration;
|
||||
using IntroSequence = osu.Game.Configuration.IntroSequence;
|
||||
|
||||
|
||||
namespace osu.Game.Screens
|
||||
{
|
||||
public class Loader : StartupScreen
|
||||
@ -58,9 +60,16 @@ namespace osu.Game.Screens
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user