mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 12:02:55 +08:00
Hook up with new leaderboard design
This commit is contained in:
parent
5e83605026
commit
cb3f89d0a5
@ -59,7 +59,11 @@ namespace osu.Game.Screens.Play.HUD
|
||||
var trackedUser = new TrackedUserData();
|
||||
|
||||
userScores[user] = trackedUser;
|
||||
Add(new GameplayLeaderboardScore(resolvedUser, resolvedUser.Id == api.LocalUser.Value.Id)); //trackedUser.Score, resolvedUser);
|
||||
var leaderboardScore = AddPlayer(resolvedUser, resolvedUser.Id == api.LocalUser.Value.Id);
|
||||
|
||||
((IBindable<double>)leaderboardScore.Accuracy).BindTo(trackedUser.Accuracy);
|
||||
((IBindable<double>)leaderboardScore.TotalScore).BindTo(trackedUser.Score);
|
||||
((IBindable<int>)leaderboardScore.Combo).BindTo(trackedUser.CurrentCombo);
|
||||
}
|
||||
|
||||
scoringMode = config.GetBindable<ScoringMode>(OsuSetting.ScoreDisplayMode);
|
||||
|
Loading…
Reference in New Issue
Block a user