mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:03:01 +08:00
Fix drum roll ticks.
This commit is contained in:
parent
88cefa77bd
commit
8b4f28318f
@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
|
|
||||||
foreach (var tick in drumRoll.Ticks)
|
foreach (var tick in drumRoll.Ticks)
|
||||||
{
|
{
|
||||||
var newTick = new DrawableDrumRollTick(tick) { X = (float)tick.StartTime };
|
var newTick = new DrawableDrumRollTick(tick);
|
||||||
newTick.OnJudgement += onTickJudgement;
|
newTick.OnJudgement += onTickJudgement;
|
||||||
|
|
||||||
AddNested(newTick);
|
AddNested(newTick);
|
||||||
|
@ -15,6 +15,10 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
public DrawableDrumRollTick(DrumRollTick tick)
|
public DrawableDrumRollTick(DrumRollTick tick)
|
||||||
: base(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;
|
FillMode = FillMode.Fit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user