2021-04-29 09:47:22 +00: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;
|
2022-03-15 07:36:04 +00:00
|
|
|
using osu.Framework.Allocation;
|
2021-04-29 09:47:22 +00:00
|
|
|
using osu.Framework.Graphics;
|
2022-03-15 07:36:04 +00:00
|
|
|
using osu.Game.Overlays;
|
2021-04-29 09:47:22 +00:00
|
|
|
using osu.Game.Rulesets;
|
|
|
|
using osu.Game.Rulesets.Osu;
|
2021-04-30 03:09:58 +00:00
|
|
|
using osu.Game.Skinning.Editor;
|
2021-04-29 09:47:22 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Gameplay
|
|
|
|
{
|
|
|
|
public class TestSceneSkinEditorComponentsList : SkinnableTestScene
|
|
|
|
{
|
2022-03-15 07:36:04 +00:00
|
|
|
[Cached]
|
|
|
|
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
|
|
|
|
2021-04-29 09:47:22 +00:00
|
|
|
[Test]
|
|
|
|
public void TestToggleEditor()
|
|
|
|
{
|
2022-03-15 07:36:04 +00:00
|
|
|
AddStep("show available components", () => SetContents(_ => new SkinComponentToolbox
|
2021-04-29 09:47:22 +00:00
|
|
|
{
|
2022-03-15 07:36:04 +00:00
|
|
|
Anchor = Anchor.TopRight,
|
|
|
|
Origin = Anchor.TopRight,
|
|
|
|
Width = 0.6f,
|
2021-04-30 03:09:58 +00:00
|
|
|
}));
|
2021-04-29 09:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected override Ruleset CreateRulesetForSkinProvider() => new OsuRuleset();
|
|
|
|
}
|
|
|
|
}
|