1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 17:23:05 +08:00
osu-lazer/osu.Game.Tests/Visual/Gameplay/TestSceneSkinEditorComponentsList.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.2 KiB
C#
Raw Normal View History

2021-04-29 17:47:22 +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 NUnit.Framework;
using osu.Framework.Allocation;
2021-04-29 17:47:22 +08:00
using osu.Framework.Graphics;
using osu.Game.Overlays;
2023-01-26 17:21:04 +08:00
using osu.Game.Overlays.SkinEditor;
2021-04-29 17:47:22 +08:00
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osu.Game.Skinning;
2021-04-29 17:47:22 +08:00
namespace osu.Game.Tests.Visual.Gameplay
{
public partial class TestSceneSkinEditorComponentsList : SkinnableTestScene
{
[Cached]
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
2021-04-29 17:47:22 +08:00
[Test]
public void TestToggleEditor()
{
var skinComponentsContainer = new SkinComponentsContainer(new SkinComponentsContainerLookup(SkinComponentsContainerLookup.TargetArea.SongSelect));
AddStep("show available components", () => SetContents(_ => new SkinComponentToolbox(skinComponentsContainer, null)
2021-04-29 17:47:22 +08:00
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Width = 0.6f,
}));
2021-04-29 17:47:22 +08:00
}
protected override Ruleset CreateRulesetForSkinProvider() => new OsuRuleset();
}
}