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

Rename long variable

This commit is contained in:
Dean Herbert 2020-12-18 15:35:18 +09:00
parent 20175a884a
commit 4af508235e

View File

@ -50,17 +50,17 @@ namespace osu.Game.Screens.Play.HUD
public User User { get; }
private readonly bool localOrReplayPlayer;
private readonly bool trackedPlayer;
/// <summary>
/// Creates a new <see cref="GameplayLeaderboardScore"/>.
/// </summary>
/// <param name="user">The score's player.</param>
/// <param name="localOrReplayPlayer">Whether the player is the local user or a replay player.</param>
public GameplayLeaderboardScore(User user, bool localOrReplayPlayer)
/// <param name="trackedPlayer">Whether the player is the local user or a replay player.</param>
public GameplayLeaderboardScore(User user, bool trackedPlayer)
{
User = user;
this.localOrReplayPlayer = localOrReplayPlayer;
this.trackedPlayer = trackedPlayer;
AutoSizeAxes = Axes.Both;
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Play.HUD
Color4 panelColour, textColour;
float panelWidth;
if (localOrReplayPlayer)
if (trackedPlayer)
{
panelWidth = extended_width;
panelColour = Color4Extensions.FromHex("7fcc33");