mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Scroll content forever rather than aggressively fading
This commit is contained in:
parent
bba151a776
commit
c90d345ff9
@ -54,7 +54,6 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
|||||||
PresentScore = PresentScore,
|
PresentScore = PresentScore,
|
||||||
};
|
};
|
||||||
flow.Add(row);
|
flow.Add(row);
|
||||||
row.Delay(15000).Then().FadeOut(300, Easing.OutQuint).Expire();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
@ -65,6 +64,8 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
|||||||
{
|
{
|
||||||
var row = flow[i];
|
var row = flow[i];
|
||||||
|
|
||||||
|
row.Alpha = Math.Max(0, (row.Y + flow.DrawHeight) / flow.DrawHeight);
|
||||||
|
|
||||||
if (row.Y < -flow.DrawHeight)
|
if (row.Y < -flow.DrawHeight)
|
||||||
{
|
{
|
||||||
row.RemoveAndDisposeImmediately();
|
row.RemoveAndDisposeImmediately();
|
||||||
|
Loading…
Reference in New Issue
Block a user