1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 13:22:55 +08:00

Adjust alpha for rows for better visibility

This commit is contained in:
Bartłomiej Dach 2024-07-26 07:44:02 +02:00
parent f1dda4ab1e
commit c17cabd981
No known key found for this signature in database

View File

@ -7,6 +7,7 @@ using System.Linq;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Utils;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
@ -74,7 +75,7 @@ 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); row.Alpha = Interpolation.ValueAt(Math.Clamp(row.Y + flow.DrawHeight, 0, flow.DrawHeight), 0f, 1f, 0, flow.DrawHeight, Easing.Out);
if (row.Y < -flow.DrawHeight) if (row.Y < -flow.DrawHeight)
{ {