1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00
osu-lazer/osu.Game.Tests/Visual/Editing/TestSceneEditorMenuBar.cs

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

100 lines
4.7 KiB
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
2018-03-02 14:34:31 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
2017-09-18 21:32:49 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
2017-10-06 23:48:31 +08:00
using osu.Framework.Graphics.UserInterface;
2017-09-18 21:32:49 +08:00
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays;
2018-11-06 17:28:22 +08:00
using osu.Game.Screens.Edit.Components.Menus;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Tests.Visual.Editing
2017-09-18 21:32:49 +08:00
{
2018-03-02 14:34:31 +08:00
[TestFixture]
public partial class TestSceneEditorMenuBar : OsuTestScene
2017-09-18 21:32:49 +08:00
{
[Cached]
private readonly OverlayColourProvider overlayColour = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
public TestSceneEditorMenuBar()
2017-09-18 21:32:49 +08:00
{
Add(new Container
2017-09-18 21:32:49 +08:00
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.X,
Height = 50,
2017-09-18 21:32:49 +08:00
Y = 50,
Child = new EditorMenuBar
2017-09-18 21:32:49 +08:00
{
RelativeSizeAxes = Axes.Both,
Items = new[]
2017-09-18 21:32:49 +08:00
{
2017-10-06 23:48:31 +08:00
new MenuItem("File")
2017-09-18 21:32:49 +08:00
{
Items = new OsuMenuItem[]
{
new EditorMenuItem("Clear All Notes"),
new EditorMenuItem("Open Difficulty..."),
new EditorMenuItem("Save"),
new EditorMenuItem("Create a new Difficulty..."),
new OsuMenuItemSpacer(),
new EditorMenuItem("Revert to Saved"),
new EditorMenuItem("Revert to Saved (Full)"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Test Beatmap"),
new EditorMenuItem("Open AiMod"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Upload Beatmap..."),
new EditorMenuItem("Export Package"),
new EditorMenuItem("Export Map Package"),
new EditorMenuItem("Import from..."),
new OsuMenuItemSpacer(),
new EditorMenuItem("Open Song Folder"),
new EditorMenuItem("Open .osu in Notepad"),
new EditorMenuItem("Open .osb in Notepad"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Exit"),
}
},
2017-10-06 23:48:31 +08:00
new MenuItem("Timing")
2017-09-18 21:32:49 +08:00
{
Items = new OsuMenuItem[]
{
new EditorMenuItem("Time Signature"),
new EditorMenuItem("Metronome Clicks"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Add Timing Section"),
new EditorMenuItem("Add Inheriting Section"),
new EditorMenuItem("Reset Current Section"),
new EditorMenuItem("Delete Timing Section"),
new EditorMenuItem("Resnap Current Section"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Timing Setup"),
new OsuMenuItemSpacer(),
new EditorMenuItem("Resnap All Notes", MenuItemType.Destructive),
new EditorMenuItem("Move all notes in time...", MenuItemType.Destructive),
new EditorMenuItem("Recalculate Slider Lengths", MenuItemType.Destructive),
new EditorMenuItem("Delete All Timing Sections", MenuItemType.Destructive),
new OsuMenuItemSpacer(),
new EditorMenuItem("Set Current Position as Preview Point"),
}
},
2017-10-06 23:48:31 +08:00
new MenuItem("Testing")
2017-09-18 21:32:49 +08:00
{
Items = new[]
{
new EditorMenuItem("Item 1"),
new EditorMenuItem("Item 2"),
new EditorMenuItem("Item 3"),
}
},
}
2017-09-18 21:32:49 +08:00
}
});
}
}
}