2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2018-11-06 09:28:22 +00:00
|
|
|
using osu.Game.Screens.Edit.Components.Menus;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
namespace osu.Game.Tests.Visual.Editor
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
[TestFixture]
|
2019-05-14 19:37:25 +00:00
|
|
|
public class TestSceneEditorMenuBar : OsuTestScene
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(EditorMenuBar), typeof(ScreenSelectionTabControl) };
|
|
|
|
|
2019-05-14 19:37:25 +00:00
|
|
|
public TestSceneEditorMenuBar()
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
Add(new Container
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 50,
|
|
|
|
Y = 50,
|
|
|
|
Child = new EditorMenuBar
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Items = new[]
|
|
|
|
{
|
|
|
|
new MenuItem("File")
|
|
|
|
{
|
|
|
|
Items = new[]
|
|
|
|
{
|
|
|
|
new EditorMenuItem("Clear All Notes"),
|
|
|
|
new EditorMenuItem("Open Difficulty..."),
|
|
|
|
new EditorMenuItem("Save"),
|
|
|
|
new EditorMenuItem("Create a new Difficulty..."),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Revert to Saved"),
|
|
|
|
new EditorMenuItem("Revert to Saved (Full)"),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Test Beatmap"),
|
|
|
|
new EditorMenuItem("Open AiMod"),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Upload Beatmap..."),
|
|
|
|
new EditorMenuItem("Export Package"),
|
|
|
|
new EditorMenuItem("Export Map Package"),
|
|
|
|
new EditorMenuItem("Import from..."),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Open Song Folder"),
|
|
|
|
new EditorMenuItem("Open .osu in Notepad"),
|
|
|
|
new EditorMenuItem("Open .osb in Notepad"),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Exit"),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
new MenuItem("Timing")
|
|
|
|
{
|
|
|
|
Items = new[]
|
|
|
|
{
|
|
|
|
new EditorMenuItem("Time Signature"),
|
|
|
|
new EditorMenuItem("Metronome Clicks"),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
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 EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Timing Setup"),
|
|
|
|
new EditorMenuItemSpacer(),
|
|
|
|
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 EditorMenuItemSpacer(),
|
|
|
|
new EditorMenuItem("Set Current Position as Preview Point"),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
new MenuItem("Testing")
|
|
|
|
{
|
|
|
|
Items = new[]
|
|
|
|
{
|
|
|
|
new EditorMenuItem("Item 1"),
|
|
|
|
new EditorMenuItem("Item 2"),
|
|
|
|
new EditorMenuItem("Item 3"),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|