From 8ef949ce38f8e7187525a5bbcc33cec96e073c37 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 3 Aug 2017 13:56:36 +0930 Subject: [PATCH] Remove TestCaseTaikoHitObjects. --- .../Tests/TestCaseTaikoHitObjects.cs | 119 ------------------ .../osu.Desktop.VisualTests.csproj | 1 - 2 files changed, 120 deletions(-) delete mode 100644 osu.Desktop.VisualTests/Tests/TestCaseTaikoHitObjects.cs diff --git a/osu.Desktop.VisualTests/Tests/TestCaseTaikoHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseTaikoHitObjects.cs deleted file mode 100644 index d98e39ae7b..0000000000 --- a/osu.Desktop.VisualTests/Tests/TestCaseTaikoHitObjects.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) 2007-2017 ppy Pty Ltd . -// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE - -using System.Linq; -using OpenTK; -using OpenTK.Graphics; -using osu.Framework.Graphics.Containers; -using osu.Framework.Testing; -using osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces; - -namespace osu.Desktop.VisualTests.Tests -{ - internal class TestCaseTaikoHitObjects : TestCase - { - public override string Description => "Taiko hit objects"; - - private bool kiai; - - public TestCaseTaikoHitObjects() - { - AddToggleStep("Kiai", b => - { - kiai = !kiai; - updateKiaiState(); - }); - - Add(new CirclePiece - { - Position = new Vector2(100, 100), - AccentColour = Color4.DarkRed, - KiaiMode = kiai, - Children = new[] - { - new CentreHitSymbolPiece() - } - }); - - Add(new CirclePiece(true) - { - Position = new Vector2(350, 100), - AccentColour = Color4.DarkRed, - KiaiMode = kiai, - Children = new[] - { - new CentreHitSymbolPiece() - } - }); - - Add(new CirclePiece - { - Position = new Vector2(100, 300), - AccentColour = Color4.DarkBlue, - KiaiMode = kiai, - Children = new[] - { - new RimHitSymbolPiece() - } - }); - - Add(new CirclePiece(true) - { - Position = new Vector2(350, 300), - AccentColour = Color4.DarkBlue, - KiaiMode = kiai, - Children = new[] - { - new RimHitSymbolPiece() - } - }); - - Add(new CirclePiece - { - Position = new Vector2(100, 500), - AccentColour = Color4.Orange, - KiaiMode = kiai, - Children = new[] - { - new SwellSymbolPiece() - } - }); - - Add(new ElongatedCirclePiece - { - Position = new Vector2(575, 100), - AccentColour = Color4.Orange, - KiaiMode = kiai, - Length = 0.10f, - PlayfieldLengthReference = () => DrawSize.X - }); - - Add(new ElongatedCirclePiece(true) - { - Position = new Vector2(575, 300), - AccentColour = Color4.Orange, - KiaiMode = kiai, - Length = 0.10f, - PlayfieldLengthReference = () => DrawSize.X - }); - } - - private void updateKiaiState() - { - foreach (var c in Children.OfType()) - c.KiaiMode = kiai; - } - - private abstract class BaseCircle : Container - { - protected readonly CirclePiece Piece; - - protected BaseCircle(CirclePiece piece) - { - Piece = piece; - - Add(Piece); - } - } - } -} diff --git a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj index 1f4fd80ca6..515fa4347d 100644 --- a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj +++ b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj @@ -211,7 +211,6 @@ -