mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
ModSelector -> ModSelect, added mod descriptions, added per-mode mod selection, changed animations and made the wave mask properly
This commit is contained in:
@ -1,44 +1,38 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.GameModes.Testing;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
using osu.Game.Modes.UI;
|
||||
using osu.Game.Modes;
|
||||
using OpenTK;
|
||||
using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
class TestCaseModSelector : TestCase
|
||||
class TestCaseModSelect : TestCase
|
||||
{
|
||||
public override string Name => @"Mod Selector";
|
||||
public override string Name => @"Mod Select";
|
||||
|
||||
public override string Description => @"Tests the mod selector overlay";
|
||||
public override string Description => @"Tests the mod select overlay";
|
||||
|
||||
private ModSelector modSelector;
|
||||
private ModSelect modSelect;
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
|
||||
Add(modSelector = new ModSelector
|
||||
Add(modSelect = new ModSelect
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Anchor = Anchor.BottomCentre,
|
||||
ModMode = PlayMode.Osu,
|
||||
});
|
||||
|
||||
AddButton("Toggle", modSelector.ToggleVisibility);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
@ -191,7 +191,7 @@
|
||||
<Compile Include="Platform\TestStorage.cs" />
|
||||
<Compile Include="Tests\TestCaseOptions.cs" />
|
||||
<Compile Include="Tests\TestCasePauseOverlay.cs" />
|
||||
<Compile Include="Tests\TestCaseModSelector.cs" />
|
||||
<Compile Include="Tests\TestCaseModSelect.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup />
|
||||
|
Reference in New Issue
Block a user