mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Don't show the flip button when flipping is a no-op
This commit is contained in:
@ -69,7 +69,8 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
{
|
{
|
||||||
base.OnSelectionChanged();
|
base.OnSelectionChanged();
|
||||||
|
|
||||||
SelectionBox.CanFlipX = true;
|
var selectionRange = CatchHitObjectUtils.GetPositionRange(EditorBeatmap.SelectedHitObjects);
|
||||||
|
SelectionBox.CanFlipX = selectionRange.Length > 0 && EditorBeatmap.SelectedHitObjects.Any(h => h is CatchHitObject && !(h is BananaShower));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -15,6 +15,8 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
public readonly float Min;
|
public readonly float Min;
|
||||||
public readonly float Max;
|
public readonly float Max;
|
||||||
|
|
||||||
|
public float Length => Max - Min;
|
||||||
|
|
||||||
public PositionRange(float value)
|
public PositionRange(float value)
|
||||||
: this(value, value)
|
: this(value, value)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user