mirror of
https://github.com/ppy/osu.git
synced 2025-03-01 14:13:16 +08:00
Change menu items to be in same order as hotkeys
This commit is contained in:
parent
42aff953d9
commit
6abb728cd5
@ -483,20 +483,26 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
|
|
||||||
curveTypeItems = new List<MenuItem>();
|
curveTypeItems = new List<MenuItem>();
|
||||||
|
|
||||||
if (!selectedPieces.Contains(Pieces[0]))
|
// todo: hide/disable items which aren't valid for selected points
|
||||||
|
foreach (PathType? type in path_types)
|
||||||
{
|
{
|
||||||
curveTypeItems.Add(createMenuItemForPathType(null));
|
// special inherit case
|
||||||
curveTypeItems.Add(new OsuMenuItemSpacer());
|
if (type == null)
|
||||||
|
{
|
||||||
|
if (selectedPieces.Contains(Pieces[0]))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
curveTypeItems.Add(new OsuMenuItemSpacer());
|
||||||
|
}
|
||||||
|
|
||||||
|
curveTypeItems.Add(createMenuItemForPathType(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: hide/disable items which aren't valid for selected points
|
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.LINEAR));
|
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.PERFECT_CURVE));
|
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.BEZIER));
|
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.BSpline(4)));
|
|
||||||
|
|
||||||
if (selectedPieces.Any(piece => piece.ControlPoint.Type?.Type == SplineType.Catmull))
|
if (selectedPieces.Any(piece => piece.ControlPoint.Type?.Type == SplineType.Catmull))
|
||||||
|
{
|
||||||
|
curveTypeItems.Add(new OsuMenuItemSpacer());
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.CATMULL));
|
curveTypeItems.Add(createMenuItemForPathType(PathType.CATMULL));
|
||||||
|
}
|
||||||
|
|
||||||
var menuItems = new List<MenuItem>
|
var menuItems = new List<MenuItem>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user