1
0
mirror of https://github.com/ppy/osu.git synced 2024-10-01 23:37:30 +08:00
osu-lazer/osu.Desktop.Tests/Visual/TestCaseEditorMenuBar.cs

86 lines
4.0 KiB
C#
Raw Normal View History

2017-08-24 16:28:47 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Edit.Menus;
2017-08-24 16:28:47 +08:00
namespace osu.Desktop.Tests.Visual
{
public class TestCaseEditorMenuBar : TestCase
{
public TestCaseEditorMenuBar()
{
2017-08-28 14:32:12 +08:00
Add(new EditorMenuBar
2017-08-24 16:28:47 +08:00
{
2017-08-24 16:50:22 +08:00
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Y = 50,
Items = new[]
2017-08-24 16:28:47 +08:00
{
2017-08-24 16:50:22 +08:00
new EditorMenuBarItem("File")
2017-08-24 16:28:47 +08:00
{
2017-08-24 16:50:22 +08:00
Items = new[]
2017-08-24 16:28:47 +08:00
{
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Clear All Notes"),
new EditorMenuItem("Open Difficulty..."),
new EditorMenuItem("Save"),
new EditorMenuItem("Create a new Difficulty..."),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Revert to Saved"),
new EditorMenuItem("Revert to Saved (Full)"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Test Beatmap"),
new EditorMenuItem("Open AiMod"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Upload Beatmap..."),
new EditorMenuItem("Export Package"),
new EditorMenuItem("Export Map Package"),
new EditorMenuItem("Import from..."),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Open Song Folder"),
new EditorMenuItem("Open .osu in Notepad"),
new EditorMenuItem("Open .osb in Notepad"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Exit"),
2017-08-24 16:50:22 +08:00
}
},
new EditorMenuBarItem("Timing")
{
Items = new[]
2017-08-24 16:28:47 +08:00
{
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Time Signature"),
new EditorMenuItem("Metronome Clicks"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
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"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Timing Setup"),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
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),
2017-09-07 22:06:35 +08:00
new EditorMenuItemSpacer(),
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Set Current Position as Preview Point"),
2017-08-24 16:50:22 +08:00
}
},
new EditorMenuBarItem("Testing")
{
Items = new[]
2017-08-24 16:28:47 +08:00
{
2017-08-28 14:32:12 +08:00
new EditorMenuItem("Item 1"),
new EditorMenuItem("Item 2"),
new EditorMenuItem("Item 3"),
2017-08-24 16:50:22 +08:00
}
},
2017-08-24 16:28:47 +08:00
}
});
}
}
}