1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Fix drum roll ticks.

This commit is contained in:
smoogipooo 2017-08-09 16:19:31 +09:00
parent 88cefa77bd
commit 8b4f28318f
2 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
foreach (var tick in drumRoll.Ticks)
{
var newTick = new DrawableDrumRollTick(tick) { X = (float)tick.StartTime };
var newTick = new DrawableDrumRollTick(tick);
newTick.OnJudgement += onTickJudgement;
AddNested(newTick);

View File

@ -15,6 +15,10 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
public DrawableDrumRollTick(DrumRollTick tick)
: base(tick)
{
// Because ticks aren't added by the ScrollingPlayfield, we need to set the following properties ourselves
RelativePositionAxes = Axes.X;
X = (float)tick.StartTime;
FillMode = FillMode.Fit;
}