Fix notes scrolling from end of map -> start of map.

This commit is contained in:
smoogipooo 2017-05-11 12:56:51 +09:00
parent b10df74079
commit 8160f36a48
2 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@ public DrawableManiaHitObject(TObject hitObject)
{
HitObject = hitObject;
Anchor = Anchor.TopCentre;
Anchor = Anchor.BottomCentre;
Origin = Anchor.BottomCentre;
RelativePositionAxes = Axes.Y;
Y = (float)HitObject.StartTime;
Y = (float)-HitObject.StartTime;
Add(glowContainer = new Container
{

View File

@ -31,8 +31,8 @@ public TimingSectionContainer(IEnumerable<TimingSection> timingSections)
public void Add(Drawable drawable)
{
var section = Children.LastOrDefault(t => t.TimingSection.StartTime <= drawable.Y) ?? Children.First();
drawable.Y -= (float)section.TimingSection.StartTime;
var section = Children.LastOrDefault(t => t.Y >= drawable.Y) ?? Children.First();
drawable.Y -= (float)section.Y;
section.Add(drawable);
}
}