mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 15:17:57 +09: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;
|
c.Colour = Color4.Transparent;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (bottomY - fadeBottom > 0 && requiresScroll)
|
if (requireBottomFade)
|
||||||
{
|
{
|
||||||
c.Colour = ColourInfo.GradientVertical(
|
c.Colour = ColourInfo.GradientVertical(
|
||||||
Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)),
|
Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user