mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
ModSelect -> ModSelectOverlay, + WaveOverlayContainer, + ModButton selected colours, made song select OnExit not handle closing mod select
This commit is contained in:
42
osu.Desktop.VisualTests/Tests/TestCaseModSelectOverlay.cs
Normal file
42
osu.Desktop.VisualTests/Tests/TestCaseModSelectOverlay.cs
Normal file
@ -0,0 +1,42 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osu.Framework.GameModes.Testing;
|
||||
using osu.Game.Modes;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
class TestCaseModSelectOverlay : TestCase
|
||||
{
|
||||
public override string Name => @"Mod Select";
|
||||
|
||||
public override string Description => @"Tests the mod select overlay";
|
||||
|
||||
private ModSelectOverlay modSelect;
|
||||
private WaveOverlayContainer wave;
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
|
||||
Add(modSelect = new ModSelectOverlay
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Anchor = Anchor.BottomCentre,
|
||||
ModMode = PlayMode.Osu,
|
||||
});
|
||||
|
||||
AddButton("Toggle", modSelect.ToggleVisibility);
|
||||
AddButton("osu!", () => modSelect.ModMode = PlayMode.Osu);
|
||||
AddButton("osu!taiko", () => modSelect.ModMode = PlayMode.Taiko);
|
||||
AddButton("osu!catch", () => modSelect.ModMode = PlayMode.Catch);
|
||||
AddButton("osu!mania", () => modSelect.ModMode = PlayMode.Mania);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user