2018-02-20 09:01:45 +00:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Edit.Layers.Selection
|
|
|
|
|
{
|
2018-02-22 05:36:58 +00:00
|
|
|
|
public class HitObjectOverlay : OverlayContainer
|
2018-02-20 09:01:45 +00:00
|
|
|
|
{
|
|
|
|
|
// ReSharper disable once NotAccessedField.Local
|
|
|
|
|
// This will be used later to handle drag movement, etc
|
|
|
|
|
private readonly DrawableHitObject hitObject;
|
|
|
|
|
|
|
|
|
|
public HitObjectOverlay(DrawableHitObject hitObject)
|
|
|
|
|
{
|
|
|
|
|
this.hitObject = hitObject;
|
2018-02-22 05:36:58 +00:00
|
|
|
|
|
|
|
|
|
State = Visibility.Visible;
|
2018-02-20 09:01:45 +00:00
|
|
|
|
}
|
2018-02-22 05:36:58 +00:00
|
|
|
|
|
|
|
|
|
protected override void PopIn() => Alpha = 1;
|
|
|
|
|
protected override void PopOut() => Alpha = 0;
|
2018-02-20 09:01:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|