mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 19:35:15 +08:00
Fix notes scrolling from end of map -> start of map.
This commit is contained in:
parent
b10df74079
commit
8160f36a48
@ -23,11 +23,11 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
{
|
{
|
||||||
HitObject = hitObject;
|
HitObject = hitObject;
|
||||||
|
|
||||||
Anchor = Anchor.TopCentre;
|
Anchor = Anchor.BottomCentre;
|
||||||
Origin = Anchor.BottomCentre;
|
Origin = Anchor.BottomCentre;
|
||||||
|
|
||||||
RelativePositionAxes = Axes.Y;
|
RelativePositionAxes = Axes.Y;
|
||||||
Y = (float)HitObject.StartTime;
|
Y = (float)-HitObject.StartTime;
|
||||||
|
|
||||||
Add(glowContainer = new Container
|
Add(glowContainer = new Container
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,8 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
|
|
||||||
public void Add(Drawable drawable)
|
public void Add(Drawable drawable)
|
||||||
{
|
{
|
||||||
var section = Children.LastOrDefault(t => t.TimingSection.StartTime <= drawable.Y) ?? Children.First();
|
var section = Children.LastOrDefault(t => t.Y >= drawable.Y) ?? Children.First();
|
||||||
drawable.Y -= (float)section.TimingSection.StartTime;
|
drawable.Y -= (float)section.Y;
|
||||||
section.Add(drawable);
|
section.Add(drawable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user