2024-12-19 17:00:00 +08:00
|
|
|
// 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.Linq;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Testing;
|
|
|
|
using osu.Game.Beatmaps;
|
2024-12-20 13:46:34 +08:00
|
|
|
using osu.Game.Seasonal;
|
2024-12-19 17:00:00 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Menus
|
|
|
|
{
|
|
|
|
public partial class TestSceneMainMenuSeasonalLighting : OsuTestScene
|
|
|
|
{
|
|
|
|
[Resolved]
|
|
|
|
private BeatmapManager beatmaps { get; set; } = null!;
|
|
|
|
|
|
|
|
[SetUpSteps]
|
|
|
|
public void SetUpSteps()
|
|
|
|
{
|
|
|
|
AddStep("prepare beatmap", () =>
|
|
|
|
{
|
2024-12-20 13:21:45 +08:00
|
|
|
var setInfo = beatmaps.QueryBeatmapSet(b => b.Protected && b.Hash == IntroChristmas.CHRISTMAS_BEATMAP_SET_HASH);
|
2024-12-19 17:00:00 +08:00
|
|
|
|
2024-12-20 14:28:33 +08:00
|
|
|
if (setInfo != null)
|
|
|
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo.Value.Beatmaps.First());
|
2024-12-19 17:00:00 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
AddStep("create lighting", () => Child = new MainMenuSeasonalLighting());
|
|
|
|
|
|
|
|
AddStep("restart beatmap", () =>
|
|
|
|
{
|
|
|
|
Beatmap.Value.Track.Start();
|
|
|
|
Beatmap.Value.Track.Seek(4000);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void TestBasic()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|