mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08:00
Merge pull request #9124 from peppy/editor-hide-non-alive-blueprints-default
Hide non-alive selection blueprints by default
This commit is contained in:
commit
0891c47d09
@ -12,6 +12,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints
|
|||||||
{
|
{
|
||||||
protected new T HitObject => (T)DrawableObject.HitObject;
|
protected new T HitObject => (T)DrawableObject.HitObject;
|
||||||
|
|
||||||
|
protected override bool AlwaysShowWhenSelected => true;
|
||||||
|
|
||||||
protected OsuSelectionBlueprint(DrawableHitObject drawableObject)
|
protected OsuSelectionBlueprint(DrawableHitObject drawableObject)
|
||||||
: base(drawableObject)
|
: base(drawableObject)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,12 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly DrawableHitObject DrawableObject;
|
public readonly DrawableHitObject DrawableObject;
|
||||||
|
|
||||||
protected override bool ShouldBeAlive => (DrawableObject.IsAlive && DrawableObject.IsPresent) || State == SelectionState.Selected;
|
/// <summary>
|
||||||
|
/// Whether the blueprint should be shown even when the <see cref="DrawableObject"/> is not alive.
|
||||||
|
/// </summary>
|
||||||
|
protected virtual bool AlwaysShowWhenSelected => false;
|
||||||
|
|
||||||
|
protected override bool ShouldBeAlive => (DrawableObject.IsAlive && DrawableObject.IsPresent) || (AlwaysShowWhenSelected && State == SelectionState.Selected);
|
||||||
|
|
||||||
protected OverlaySelectionBlueprint(DrawableHitObject drawableObject)
|
protected OverlaySelectionBlueprint(DrawableHitObject drawableObject)
|
||||||
: base(drawableObject.HitObject)
|
: base(drawableObject.HitObject)
|
||||||
|
Loading…
Reference in New Issue
Block a user