2019-06-11 13:28:52 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-24 16:43:03 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2023-12-23 01:11:37 +08:00
|
|
|
|
using System;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2018-08-16 08:59:03 +08:00
|
|
|
|
using JetBrains.Annotations;
|
2018-03-02 14:34:31 +08:00
|
|
|
|
using NUnit.Framework;
|
2017-12-12 21:44:12 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2021-05-06 00:50:49 +08:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2021-08-17 10:45:03 +08:00
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
2021-02-25 22:36:02 +08:00
|
|
|
|
using osu.Framework.Testing;
|
2017-12-12 21:44:12 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
2021-08-23 01:01:26 +08:00
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
2023-12-23 15:25:52 +08:00
|
|
|
|
using osu.Game.Extensions;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
using osu.Game.Graphics.Sprites;
|
2023-09-03 13:45:22 +08:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
using osu.Game.Rulesets;
|
2018-05-07 10:36:51 +08:00
|
|
|
|
using osu.Game.Rulesets.Catch;
|
|
|
|
|
using osu.Game.Rulesets.Mania;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2020-02-25 18:07:15 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects.Legacy;
|
2018-05-07 10:33:40 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects.Types;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu;
|
2021-08-23 01:01:26 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
2018-05-07 10:36:51 +08:00
|
|
|
|
using osu.Game.Rulesets.Taiko;
|
2017-12-12 21:44:12 +08:00
|
|
|
|
using osu.Game.Screens.Select;
|
2019-03-25 00:02:36 +08:00
|
|
|
|
using osuTK;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-25 00:02:36 +08:00
|
|
|
|
namespace osu.Game.Tests.Visual.SongSelect
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
2018-03-02 14:34:31 +08:00
|
|
|
|
[TestFixture]
|
2019-05-15 03:37:25 +08:00
|
|
|
|
public partial class TestSceneBeatmapInfoWedge : OsuTestScene
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
2017-12-23 00:38:22 +08:00
|
|
|
|
private RulesetStore rulesets;
|
2017-12-22 19:33:52 +08:00
|
|
|
|
private TestBeatmapInfoWedge infoWedge;
|
2018-04-19 19:44:38 +08:00
|
|
|
|
private readonly List<IBeatmap> beatmaps = new List<IBeatmap>();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-12-22 19:33:52 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
2018-05-23 16:37:39 +08:00
|
|
|
|
private void load(RulesetStore rulesets)
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
2017-12-23 00:38:22 +08:00
|
|
|
|
this.rulesets = rulesets;
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-12-23 00:38:22 +08:00
|
|
|
|
protected override void LoadComplete()
|
|
|
|
|
{
|
|
|
|
|
base.LoadComplete();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-12-22 19:33:52 +08:00
|
|
|
|
Add(infoWedge = new TestBeatmapInfoWedge
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
|
|
|
|
Size = new Vector2(0.5f, 245),
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
2017-12-26 19:18:47 +08:00
|
|
|
|
Margin = new MarginPadding { Top = 20 }
|
2017-12-12 21:44:12 +08:00
|
|
|
|
});
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-07-02 12:03:13 +08:00
|
|
|
|
AddStep("show", () => infoWedge.Show());
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-05-23 16:37:39 +08:00
|
|
|
|
selectBeatmap(Beatmap.Value.Beatmap);
|
2018-04-23 23:51:33 +08:00
|
|
|
|
|
2019-03-19 16:24:26 +08:00
|
|
|
|
AddWaitStep("wait for select", 3);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-06-11 13:28:52 +08:00
|
|
|
|
AddStep("hide", () => { infoWedge.Hide(); });
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-19 16:24:26 +08:00
|
|
|
|
AddWaitStep("wait for hide", 3);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-06-11 13:28:52 +08:00
|
|
|
|
AddStep("show", () => { infoWedge.Show(); });
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-08-17 10:45:03 +08:00
|
|
|
|
AddSliderStep("change star difficulty", 0, 11.9, 5.55, v =>
|
|
|
|
|
{
|
|
|
|
|
foreach (var hasCurrentValue in infoWedge.Info.ChildrenOfType<IHasCurrentValue<StarDifficulty>>())
|
|
|
|
|
hasCurrentValue.Current.Value = new StarDifficulty(v, 0);
|
|
|
|
|
});
|
|
|
|
|
|
2017-12-22 19:33:52 +08:00
|
|
|
|
foreach (var rulesetInfo in rulesets.AvailableRulesets)
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
2018-06-26 17:59:13 +08:00
|
|
|
|
var instance = rulesetInfo.CreateInstance();
|
2018-04-24 01:07:16 +08:00
|
|
|
|
var testBeatmap = createTestBeatmap(rulesetInfo);
|
2018-04-23 23:51:33 +08:00
|
|
|
|
|
2018-04-24 01:07:16 +08:00
|
|
|
|
beatmaps.Add(testBeatmap);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-11-30 11:32:08 +08:00
|
|
|
|
setRuleset(rulesetInfo);
|
2018-06-26 17:59:13 +08:00
|
|
|
|
|
2018-04-24 01:07:16 +08:00
|
|
|
|
selectBeatmap(testBeatmap);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-06-26 17:59:13 +08:00
|
|
|
|
testBeatmapLabels(instance);
|
2018-05-07 10:36:51 +08:00
|
|
|
|
|
2018-06-26 17:59:13 +08:00
|
|
|
|
switch (instance)
|
2017-12-22 19:33:52 +08:00
|
|
|
|
{
|
2022-06-24 20:25:23 +08:00
|
|
|
|
case OsuRuleset:
|
2018-05-07 10:36:51 +08:00
|
|
|
|
testInfoLabels(5);
|
|
|
|
|
break;
|
2019-04-01 11:44:46 +08:00
|
|
|
|
|
2022-06-24 20:25:23 +08:00
|
|
|
|
case TaikoRuleset:
|
2017-12-23 18:56:53 +08:00
|
|
|
|
testInfoLabels(5);
|
|
|
|
|
break;
|
2019-04-01 11:44:46 +08:00
|
|
|
|
|
2022-06-24 20:25:23 +08:00
|
|
|
|
case CatchRuleset:
|
2018-05-07 10:36:51 +08:00
|
|
|
|
testInfoLabels(5);
|
|
|
|
|
break;
|
2019-04-01 11:44:46 +08:00
|
|
|
|
|
2022-06-24 20:25:23 +08:00
|
|
|
|
case ManiaRuleset:
|
2018-05-07 10:36:51 +08:00
|
|
|
|
testInfoLabels(4);
|
|
|
|
|
break;
|
2019-04-01 11:44:46 +08:00
|
|
|
|
|
2017-12-23 18:56:53 +08:00
|
|
|
|
default:
|
|
|
|
|
testInfoLabels(2);
|
2017-12-22 19:33:52 +08:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-05-07 10:36:51 +08:00
|
|
|
|
private void testBeatmapLabels(Ruleset ruleset)
|
2017-12-22 19:33:52 +08:00
|
|
|
|
{
|
2021-02-25 16:46:35 +08:00
|
|
|
|
AddAssert("check version", () => infoWedge.Info.VersionLabel.Current.Value == $"{ruleset.ShortName}Version");
|
2022-03-30 16:46:17 +08:00
|
|
|
|
AddAssert("check title", () => infoWedge.Info.TitleLabel.Current.Value == $"{ruleset.ShortName}Title");
|
2021-02-25 16:46:35 +08:00
|
|
|
|
AddAssert("check artist", () => infoWedge.Info.ArtistLabel.Current.Value == $"{ruleset.ShortName}Artist");
|
2021-04-20 01:24:58 +08:00
|
|
|
|
AddAssert("check author", () => infoWedge.Info.MapperContainer.ChildrenOfType<OsuSpriteText>().Any(s => s.Current.Value == $"{ruleset.ShortName}Author"));
|
2017-12-23 18:56:53 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-12-23 18:56:53 +08:00
|
|
|
|
private void testInfoLabels(int expectedCount)
|
|
|
|
|
{
|
2021-04-20 05:41:51 +08:00
|
|
|
|
AddAssert("check info labels exists", () => infoWedge.Info.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Any());
|
|
|
|
|
AddAssert("check info labels count", () => infoWedge.Info.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Count() == expectedCount);
|
2017-12-22 19:33:52 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-05-20 22:29:37 +08:00
|
|
|
|
[SetUpSteps]
|
|
|
|
|
public void SetUpSteps()
|
|
|
|
|
{
|
|
|
|
|
AddStep("reset mods", () => SelectedMods.SetDefault());
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-25 07:23:36 +08:00
|
|
|
|
[Test]
|
2019-09-25 07:48:22 +08:00
|
|
|
|
public void TestNullBeatmap()
|
2017-12-22 19:33:52 +08:00
|
|
|
|
{
|
2018-08-16 08:59:03 +08:00
|
|
|
|
selectBeatmap(null);
|
2021-02-25 16:46:35 +08:00
|
|
|
|
AddAssert("check empty version", () => string.IsNullOrEmpty(infoWedge.Info.VersionLabel.Current.Value));
|
|
|
|
|
AddAssert("check default title", () => infoWedge.Info.TitleLabel.Current.Value == Beatmap.Default.BeatmapInfo.Metadata.Title);
|
|
|
|
|
AddAssert("check default artist", () => infoWedge.Info.ArtistLabel.Current.Value == Beatmap.Default.BeatmapInfo.Metadata.Artist);
|
2021-04-20 01:24:58 +08:00
|
|
|
|
AddAssert("check empty author", () => !infoWedge.Info.MapperContainer.ChildrenOfType<OsuSpriteText>().Any());
|
2021-04-20 05:41:51 +08:00
|
|
|
|
AddAssert("check no info labels", () => !infoWedge.Info.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Any());
|
2017-12-22 19:33:52 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-09-25 07:21:08 +08:00
|
|
|
|
[Test]
|
2019-09-25 07:48:22 +08:00
|
|
|
|
public void TestTruncation()
|
2019-09-25 07:21:08 +08:00
|
|
|
|
{
|
|
|
|
|
selectBeatmap(createLongMetadata());
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-23 01:01:26 +08:00
|
|
|
|
[Test]
|
|
|
|
|
public void TestBPMUpdates()
|
|
|
|
|
{
|
2022-05-20 22:29:37 +08:00
|
|
|
|
const double bpm = 120;
|
2021-08-23 01:01:26 +08:00
|
|
|
|
IBeatmap beatmap = createTestBeatmap(new OsuRuleset().RulesetInfo);
|
|
|
|
|
beatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = 60 * 1000 / bpm });
|
|
|
|
|
|
|
|
|
|
OsuModDoubleTime doubleTime = null;
|
|
|
|
|
|
|
|
|
|
selectBeatmap(beatmap);
|
2022-05-20 22:29:37 +08:00
|
|
|
|
checkDisplayedBPM($"{bpm}");
|
2021-08-23 01:01:26 +08:00
|
|
|
|
|
|
|
|
|
AddStep("select DT", () => SelectedMods.Value = new[] { doubleTime = new OsuModDoubleTime() });
|
2022-05-20 22:29:37 +08:00
|
|
|
|
checkDisplayedBPM($"{bpm * 1.5f}");
|
2021-08-23 01:01:26 +08:00
|
|
|
|
|
|
|
|
|
AddStep("change DT rate", () => doubleTime.SpeedChange.Value = 2);
|
2022-05-20 22:29:37 +08:00
|
|
|
|
checkDisplayedBPM($"{bpm * 2}");
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-20 22:47:45 +08:00
|
|
|
|
[TestCase(120, 125, null, "120-125 (mostly 120)")]
|
|
|
|
|
[TestCase(120, 120.6, null, "120-121 (mostly 120)")]
|
|
|
|
|
[TestCase(120, 120.4, null, "120")]
|
|
|
|
|
[TestCase(120, 120.6, "DT", "180-182 (mostly 180)")]
|
|
|
|
|
[TestCase(120, 120.4, "DT", "180")]
|
|
|
|
|
public void TestVaryingBPM(double commonBpm, double otherBpm, string mod, string expectedDisplay)
|
2022-05-20 22:29:37 +08:00
|
|
|
|
{
|
|
|
|
|
IBeatmap beatmap = createTestBeatmap(new OsuRuleset().RulesetInfo);
|
|
|
|
|
beatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = 60 * 1000 / commonBpm });
|
|
|
|
|
beatmap.ControlPointInfo.Add(100, new TimingControlPoint { BeatLength = 60 * 1000 / otherBpm });
|
|
|
|
|
beatmap.ControlPointInfo.Add(200, new TimingControlPoint { BeatLength = 60 * 1000 / commonBpm });
|
2021-08-23 01:01:26 +08:00
|
|
|
|
|
2022-05-20 22:47:45 +08:00
|
|
|
|
if (mod != null)
|
|
|
|
|
AddStep($"select {mod}", () => SelectedMods.Value = new[] { Ruleset.Value.CreateInstance().CreateModFromAcronym(mod) });
|
|
|
|
|
|
2022-05-20 22:29:37 +08:00
|
|
|
|
selectBeatmap(beatmap);
|
|
|
|
|
checkDisplayedBPM(expectedDisplay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void checkDisplayedBPM(string target)
|
|
|
|
|
{
|
|
|
|
|
AddUntilStep($"displayed bpm is {target}", () =>
|
|
|
|
|
{
|
2023-09-03 13:45:22 +08:00
|
|
|
|
var label = infoWedge.DisplayedContent.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Single(l => l.Statistic.Name == BeatmapsetsStrings.ShowStatsBpm);
|
2022-05-20 22:29:37 +08:00
|
|
|
|
return label.Statistic.Content == target;
|
|
|
|
|
});
|
2021-08-23 01:01:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-12-23 01:11:37 +08:00
|
|
|
|
[TestCase]
|
|
|
|
|
public void TestLengthUpdates()
|
|
|
|
|
{
|
|
|
|
|
IBeatmap beatmap = createTestBeatmap(new OsuRuleset().RulesetInfo);
|
|
|
|
|
double drain = beatmap.CalculateDrainLength();
|
|
|
|
|
beatmap.BeatmapInfo.Length = drain;
|
|
|
|
|
|
|
|
|
|
OsuModDoubleTime doubleTime = null;
|
|
|
|
|
|
|
|
|
|
selectBeatmap(beatmap);
|
|
|
|
|
checkDisplayedLength(drain);
|
|
|
|
|
|
|
|
|
|
AddStep("select DT", () => SelectedMods.Value = new[] { doubleTime = new OsuModDoubleTime() });
|
|
|
|
|
checkDisplayedLength(Math.Round(drain / 1.5f));
|
|
|
|
|
|
|
|
|
|
AddStep("change DT rate", () => doubleTime.SpeedChange.Value = 2);
|
|
|
|
|
checkDisplayedLength(Math.Round(drain / 2));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void checkDisplayedLength(double drain)
|
|
|
|
|
{
|
|
|
|
|
var displayedLength = drain.ToFormattedDuration();
|
|
|
|
|
|
|
|
|
|
AddUntilStep($"check map drain ({displayedLength})", () =>
|
|
|
|
|
{
|
|
|
|
|
var label = infoWedge.DisplayedContent.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Single(l => l.Statistic.Name == BeatmapsetsStrings.ShowStatsTotalLength(displayedLength));
|
|
|
|
|
return label.Statistic.Content == displayedLength.ToString();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-30 11:32:08 +08:00
|
|
|
|
private void setRuleset(RulesetInfo rulesetInfo)
|
|
|
|
|
{
|
|
|
|
|
Container containerBefore = null;
|
|
|
|
|
|
|
|
|
|
AddStep("set ruleset", () =>
|
|
|
|
|
{
|
|
|
|
|
// wedge content is only refreshed if the ruleset changes, so only wait for load in that case.
|
|
|
|
|
if (!rulesetInfo.Equals(Ruleset.Value))
|
|
|
|
|
containerBefore = infoWedge.DisplayedContent;
|
|
|
|
|
|
|
|
|
|
Ruleset.Value = rulesetInfo;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
AddUntilStep("wait for async load", () => infoWedge.DisplayedContent != containerBefore);
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-16 08:59:03 +08:00
|
|
|
|
private void selectBeatmap([CanBeNull] IBeatmap b)
|
2017-12-22 19:33:52 +08:00
|
|
|
|
{
|
2021-05-06 00:50:49 +08:00
|
|
|
|
Container containerBefore = null;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-08-16 08:59:03 +08:00
|
|
|
|
AddStep($"select {b?.Metadata.Title ?? "null"} beatmap", () =>
|
2017-12-22 19:33:52 +08:00
|
|
|
|
{
|
2021-05-06 01:14:04 +08:00
|
|
|
|
containerBefore = infoWedge.DisplayedContent;
|
2019-05-31 13:40:53 +08:00
|
|
|
|
infoWedge.Beatmap = Beatmap.Value = b == null ? Beatmap.Default : CreateWorkingBeatmap(b);
|
2017-12-12 21:44:12 +08:00
|
|
|
|
});
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-05-06 01:14:04 +08:00
|
|
|
|
AddUntilStep("wait for async load", () => infoWedge.DisplayedContent != containerBefore);
|
2017-12-12 21:44:12 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-04-19 19:44:38 +08:00
|
|
|
|
private IBeatmap createTestBeatmap(RulesetInfo ruleset)
|
2017-12-12 21:44:12 +08:00
|
|
|
|
{
|
2017-12-23 18:56:53 +08:00
|
|
|
|
List<HitObject> objects = new List<HitObject>();
|
|
|
|
|
for (double i = 0; i < 50000; i += 1000)
|
2018-05-07 10:33:40 +08:00
|
|
|
|
objects.Add(new TestHitObject { StartTime = i });
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-12-22 19:33:52 +08:00
|
|
|
|
return new Beatmap
|
|
|
|
|
{
|
|
|
|
|
BeatmapInfo = new BeatmapInfo
|
|
|
|
|
{
|
|
|
|
|
Metadata = new BeatmapMetadata
|
|
|
|
|
{
|
2022-01-18 22:30:40 +08:00
|
|
|
|
Author = { Username = $"{ruleset.ShortName}Author" },
|
2017-12-22 19:33:52 +08:00
|
|
|
|
Artist = $"{ruleset.ShortName}Artist",
|
|
|
|
|
Source = $"{ruleset.ShortName}Source",
|
|
|
|
|
Title = $"{ruleset.ShortName}Title"
|
|
|
|
|
},
|
|
|
|
|
Ruleset = ruleset,
|
2021-11-11 16:18:51 +08:00
|
|
|
|
StarRating = 6,
|
2021-11-11 16:19:53 +08:00
|
|
|
|
DifficultyName = $"{ruleset.ShortName}Version",
|
2022-01-18 21:57:39 +08:00
|
|
|
|
Difficulty = new BeatmapDifficulty()
|
2017-12-22 19:33:52 +08:00
|
|
|
|
},
|
2017-12-23 18:56:53 +08:00
|
|
|
|
HitObjects = objects
|
2017-12-22 19:33:52 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-09-25 07:21:08 +08:00
|
|
|
|
private IBeatmap createLongMetadata()
|
|
|
|
|
{
|
|
|
|
|
return new Beatmap
|
|
|
|
|
{
|
|
|
|
|
BeatmapInfo = new BeatmapInfo
|
|
|
|
|
{
|
|
|
|
|
Metadata = new BeatmapMetadata
|
|
|
|
|
{
|
2022-01-18 22:30:40 +08:00
|
|
|
|
Author = { Username = "WWWWWWWWWWWWWWW" },
|
2019-09-25 07:48:22 +08:00
|
|
|
|
Artist = "Verrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrry long Artist",
|
|
|
|
|
Source = "Verrrrry long Source",
|
|
|
|
|
Title = "Verrrrry long Title"
|
2019-09-25 07:21:08 +08:00
|
|
|
|
},
|
2021-11-11 16:19:53 +08:00
|
|
|
|
DifficultyName = "Verrrrrrrrrrrrrrrrrrrrrrrrrrrrry long Version",
|
2021-11-24 17:42:47 +08:00
|
|
|
|
Status = BeatmapOnlineStatus.Graveyard,
|
2019-09-25 07:21:08 +08:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-22 19:33:52 +08:00
|
|
|
|
private partial class TestBeatmapInfoWedge : BeatmapInfoWedge
|
|
|
|
|
{
|
2021-05-06 01:14:04 +08:00
|
|
|
|
public new Container DisplayedContent => base.DisplayedContent;
|
2021-05-05 20:07:49 +08:00
|
|
|
|
|
2021-05-06 00:50:49 +08:00
|
|
|
|
public new WedgeInfoText Info => base.Info;
|
2017-12-12 21:44:12 +08:00
|
|
|
|
}
|
2018-05-07 10:33:40 +08:00
|
|
|
|
|
2020-02-23 12:01:30 +08:00
|
|
|
|
private class TestHitObject : ConvertHitObject, IHasPosition
|
2018-05-07 10:33:40 +08:00
|
|
|
|
{
|
2020-11-02 03:51:23 +08:00
|
|
|
|
public float X => 0;
|
|
|
|
|
public float Y => 0;
|
2018-05-07 10:33:40 +08:00
|
|
|
|
public Vector2 Position { get; } = Vector2.Zero;
|
|
|
|
|
}
|
2017-12-12 21:44:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|