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

Remove Alpha 0.001 hack.

This commit is contained in:
Dean Herbert 2017-03-15 17:07:56 +09:00
parent 9d0c687453
commit 78efecb89d
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 6 additions and 5 deletions

View File

@ -31,8 +31,10 @@ namespace osu.Game.Screens.Select.Leaderboards
int i = 0; int i = 0;
foreach(var s in scores) foreach(var s in scores)
{ {
scrollFlow.Add(new LeaderboardScore(s, i + 1)); scrollFlow.Add(new LeaderboardScore(s, 1 + i++)
i++; {
AlwaysPresent = true
});
} }
scrollContainer.ScrollTo(0f, false); scrollContainer.ScrollTo(0f, false);

View File

@ -60,14 +60,13 @@ namespace osu.Game.Screens.Select.Leaderboards
{ {
base.LoadComplete(); base.LoadComplete();
// TODO: This fade to 0.01 is hacky, find a better way
FadeTo(0.01f);
foreach (Drawable d in new Drawable[] { avatar, nameLabel, scoreLabel, scoreRank, flagBadgeContainer, maxCombo, accuracy, modsContainer, }) foreach (Drawable d in new Drawable[] { avatar, nameLabel, scoreLabel, scoreRank, flagBadgeContainer, maxCombo, accuracy, modsContainer, })
{ {
d.FadeOut(); d.FadeOut();
} }
Alpha = 0;
content.MoveToY(75); content.MoveToY(75);
avatar.MoveToX(75); avatar.MoveToX(75);
nameLabel.MoveToX(150); nameLabel.MoveToX(150);