1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Add PopoverContainer to TimelineTestScene

This commit is contained in:
OliBomby 2023-06-01 07:41:30 +02:00
parent 9e78a6b34e
commit 8acfe6b58b

View File

@ -9,6 +9,7 @@ using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
@ -51,28 +52,35 @@ namespace osu.Game.Tests.Visual.Editing
Composer.Alpha = 0;
Add(new OsuContextMenuContainer
Add(new PopoverContainer
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
EditorBeatmap,
Composer,
new FillFlowContainer
new OsuContextMenuContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 5),
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new StartStopButton(),
new AudioVisualiser(),
EditorBeatmap,
Composer,
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 5),
Children = new Drawable[]
{
new StartStopButton(),
new AudioVisualiser(),
}
},
TimelineArea = new TimelineArea(CreateTestComponent())
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}
}
},
TimelineArea = new TimelineArea(CreateTestComponent())
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}
}
});