mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:13:20 +08:00
Replace condition with matching precalculated bool
This commit is contained in:
parent
93574acf72
commit
90755c0307
@ -142,7 +142,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
c.Colour = Color4.Transparent;
|
||||
else
|
||||
{
|
||||
if (bottomY - fadeBottom > 0 && requiresScroll)
|
||||
if (requireBottomFade)
|
||||
{
|
||||
c.Colour = ColourInfo.GradientVertical(
|
||||
Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)),
|
||||
|
Loading…
Reference in New Issue
Block a user