mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:28:00 +08:00
Hide catmull curve type when possible
This commit is contained in:
parent
520642975b
commit
360864fd7b
@ -371,7 +371,11 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.PERFECT_CURVE));
|
curveTypeItems.Add(createMenuItemForPathType(PathType.PERFECT_CURVE));
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.BEZIER));
|
curveTypeItems.Add(createMenuItemForPathType(PathType.BEZIER));
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.BSpline(3)));
|
curveTypeItems.Add(createMenuItemForPathType(PathType.BSpline(3)));
|
||||||
curveTypeItems.Add(createMenuItemForPathType(PathType.CATMULL));
|
|
||||||
|
var hoveredPiece = Pieces.FirstOrDefault(p => p.IsHovered);
|
||||||
|
|
||||||
|
if (hoveredPiece?.ControlPoint.Type == 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