1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 05:09:54 +08:00
Files
osu-lazer/osu.Game.Tests/Visual/Editing/TestSceneFormSampleSet.cs
T
Bartłomiej Dach 9d07ad2761 Implement form control for adding/removing custom samples in editor
The test scene doesn't exercise the custom sample playback, but I hope I
can be forgiven for this as setting up a custom editor beatmap just for
this to work is rather cumbersome.
2025-12-22 13:48:31 +01:00

43 lines
1.3 KiB
C#

// 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 osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Game.Graphics.Cursor;
using osu.Game.Screens.Edit;
using osu.Game.Screens.Edit.Components;
using osu.Game.Tests.Visual.UserInterface;
namespace osu.Game.Tests.Visual.Editing
{
public partial class TestSceneFormSampleSet : ThemeComparisonTestScene
{
public TestSceneFormSampleSet()
: base(false)
{
}
protected override Drawable CreateContent() => new PopoverContainer
{
RelativeSizeAxes = Axes.Both,
Child = new OsuContextMenuContainer
{
RelativeSizeAxes = Axes.Both,
Child = new FormSampleSet
{
Current =
{
Value = new EditorBeatmapSkin.SampleSet(3, "Custom set #3")
{
Filenames = ["normal-hitwhistle3.wav"]
}
},
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 0.4f,
}
}
};
}
}