Only show replay cursor when replay input is present.

This commit is contained in:
Dean Herbert
2017-03-06 15:24:00 +09:00
parent 2de25c23b4
commit 610de4a34c
8 changed files with 22 additions and 9 deletions

View File

@ -11,7 +11,7 @@ using osu.Game.Modes.Osu.Objects.Drawables.Connections;
using osu.Game.Modes.UI;
using System.Linq;
using osu.Game.Graphics.Cursor;
using osu.Game.Modes.Objects;
using OpenTK.Graphics;
namespace osu.Game.Modes.Osu.UI
{
@ -56,10 +56,16 @@ namespace osu.Game.Modes.Osu.UI
RelativeSizeAxes = Axes.Both,
Depth = -1,
},
new OsuCursorContainer()
});
}
protected override void LoadComplete()
{
base.LoadComplete();
if (InputManager.ReplayInputHandler != null)
Add(new OsuCursorContainer { Colour = Color4.LightYellow });
}
public override void Add(DrawableHitObject<OsuHitObject> h)
{
h.Depth = (float)h.HitObject.StartTime;