2017-02-07 04:59:30 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-02 11:30:27 +00:00
|
|
|
|
|
2017-03-10 06:08:53 +00:00
|
|
|
|
using osu.Game.Beatmaps;
|
2016-11-14 09:54:24 +00:00
|
|
|
|
using osu.Game.Modes.Mania.Objects;
|
2016-11-14 10:49:29 +00:00
|
|
|
|
using osu.Game.Modes.Objects.Drawables;
|
2016-11-14 09:54:24 +00:00
|
|
|
|
using osu.Game.Modes.UI;
|
2016-09-02 11:30:27 +00:00
|
|
|
|
|
2016-11-14 09:54:24 +00:00
|
|
|
|
namespace osu.Game.Modes.Mania.UI
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
2016-10-13 01:10:15 +00:00
|
|
|
|
public class ManiaHitRenderer : HitRenderer<ManiaBaseHit>
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
|
|
|
|
private readonly int columns;
|
|
|
|
|
|
2017-03-10 06:08:53 +00:00
|
|
|
|
public ManiaHitRenderer(Beatmap beatmap, int columns = 5)
|
|
|
|
|
: base(beatmap)
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
|
|
|
|
this.columns = columns;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-06 04:59:11 +00:00
|
|
|
|
protected override Playfield<ManiaBaseHit> CreatePlayfield() => new ManiaPlayfield(columns);
|
2016-09-02 11:30:27 +00:00
|
|
|
|
|
2017-03-06 04:59:11 +00:00
|
|
|
|
protected override DrawableHitObject<ManiaBaseHit> GetVisualRepresentation(ManiaBaseHit h)
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
2016-10-19 10:44:03 +00:00
|
|
|
|
return null;
|
|
|
|
|
//return new DrawableNote(h)
|
|
|
|
|
//{
|
|
|
|
|
// Position = new Vector2((float)(h.Column + 0.5) / columns, -0.1f),
|
|
|
|
|
// RelativePositionAxes = Axes.Both
|
|
|
|
|
//};
|
2016-09-02 11:30:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|