mirror of https://github.com/ppy/osu
Rename `AddPlayer` method now that there's no conflict
This commit is contained in:
parent
68dbbc17e8
commit
e84224f64c
|
@ -105,7 +105,7 @@ void checkHeight(int panelCount)
|
|||
|
||||
private void createLeaderboardScore(BindableDouble score, User user, bool isTracked = false)
|
||||
{
|
||||
var leaderboardScore = leaderboard.AddPlayer(user, isTracked);
|
||||
var leaderboardScore = leaderboard.Add(user, isTracked);
|
||||
leaderboardScore.TotalScore.BindTo(score);
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ protected override void LoadComplete()
|
|||
/// Whether the player should be tracked on the leaderboard.
|
||||
/// Set to <c>true</c> for the local player or a player whose replay is currently being played.
|
||||
/// </param>
|
||||
public ILeaderboardScore AddPlayer([CanBeNull] User user, bool isTracked)
|
||||
public ILeaderboardScore Add([CanBeNull] User user, bool isTracked)
|
||||
{
|
||||
var drawable = CreateLeaderboardScoreDrawable(user, isTracked);
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ private void load(OsuConfigManager config, IAPIProvider api)
|
|||
|
||||
var trackedUser = UserScores[user.Id];
|
||||
|
||||
var leaderboardScore = AddPlayer(user, user.Id == api.LocalUser.Value.Id);
|
||||
var leaderboardScore = Add(user, user.Id == api.LocalUser.Value.Id);
|
||||
leaderboardScore.Accuracy.BindTo(trackedUser.Accuracy);
|
||||
leaderboardScore.TotalScore.BindTo(trackedUser.Score);
|
||||
leaderboardScore.Combo.BindTo(trackedUser.CurrentCombo);
|
||||
|
|
Loading…
Reference in New Issue