mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Removed LeaderboardFade fully
This commit is contained in:
parent
269c139d2a
commit
b02e413e56
@ -62,29 +62,4 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class LeaderboardFade : Container
|
||||
{
|
||||
private Box gradient;
|
||||
|
||||
protected override bool OnMouseDown(Framework.Input.InputState state, Framework.Input.MouseDownEventArgs args)
|
||||
{
|
||||
if (state.Keyboard.ShiftPressed)
|
||||
FadeIn();
|
||||
else
|
||||
FadeOut();
|
||||
|
||||
return base.OnMouseDown(state, args);
|
||||
}
|
||||
|
||||
public void FadeIn()
|
||||
{
|
||||
gradient.FadeColour(Color4.White, 300, EasingTypes.OutQuint);
|
||||
}
|
||||
|
||||
public void FadeOut()
|
||||
{
|
||||
gradient.FadeColour(Color4.White.Opacity(0), 300, EasingTypes.OutQuint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user