mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +08:00
Rename AddPlayer
method now that there's no conflict
This commit is contained in:
parent
68dbbc17e8
commit
e84224f64c
@ -105,7 +105,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
private void createLeaderboardScore(BindableDouble score, User user, bool isTracked = false)
|
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);
|
leaderboardScore.TotalScore.BindTo(score);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
/// Whether the player should be tracked on the leaderboard.
|
/// 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.
|
/// Set to <c>true</c> for the local player or a player whose replay is currently being played.
|
||||||
/// </param>
|
/// </param>
|
||||||
public ILeaderboardScore AddPlayer([CanBeNull] User user, bool isTracked)
|
public ILeaderboardScore Add([CanBeNull] User user, bool isTracked)
|
||||||
{
|
{
|
||||||
var drawable = CreateLeaderboardScoreDrawable(user, isTracked);
|
var drawable = CreateLeaderboardScoreDrawable(user, isTracked);
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
var trackedUser = UserScores[user.Id];
|
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.Accuracy.BindTo(trackedUser.Accuracy);
|
||||||
leaderboardScore.TotalScore.BindTo(trackedUser.Score);
|
leaderboardScore.TotalScore.BindTo(trackedUser.Score);
|
||||||
leaderboardScore.Combo.BindTo(trackedUser.CurrentCombo);
|
leaderboardScore.Combo.BindTo(trackedUser.CurrentCombo);
|
||||||
|
Loading…
Reference in New Issue
Block a user