From 5104e65bcd67fb6e040463da0258cd49a1fab152 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Tue, 6 Jun 2017 15:57:30 +0900 Subject: [PATCH] Make hold notes utilize RelativeChildOffset for tick positionings. --- osu.Game.Rulesets.Mania/Objects/Drawables/DrawableHoldNote.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableHoldNote.cs b/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableHoldNote.cs index 5830a1b8d9..16010536ad 100644 --- a/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableHoldNote.cs +++ b/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableHoldNote.cs @@ -56,6 +56,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables tickContainer = new Container { RelativeSizeAxes = Axes.Both, + RelativeChildOffset = new Vector2(0, (float)HitObject.StartTime), RelativeChildSize = new Vector2(1, (float)HitObject.Duration) }, head = new DrawableHeadNote(this, key) @@ -77,9 +78,6 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables HoldStartTime = () => holdStartTime }; - // To make the ticks relative to ourselves we need to offset them backwards - drawableTick.Y -= (float)HitObject.StartTime; - tickContainer.Add(drawableTick); AddNested(drawableTick); }