1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Apply renaming in remaining usages

This commit is contained in:
Salman Ahmed 2024-02-29 01:11:01 +03:00
parent eac4c5f69d
commit de48c51715
4 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ using osu.Game.Users;
namespace osu.Game.Tests.Visual.Online
{
[HeadlessTest]
public partial class TestSceneSoloStatisticsWatcher : OsuTestScene
public partial class TestSceneUserStatisticsWatcher : OsuTestScene
{
protected override bool UseOnlineAPI => false;

View File

@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Toolbar
private Statistic<decimal> pp = null!;
[BackgroundDependencyLoader]
private void load(UserStatisticsWatcher? soloStatisticsWatcher)
private void load(UserStatisticsWatcher? userStatisticsWatcher)
{
RelativeSizeAxes = Axes.Y;
AutoSizeAxes = Axes.X;
@ -47,8 +47,8 @@ namespace osu.Game.Overlays.Toolbar
}
};
if (soloStatisticsWatcher != null)
((IBindable<UserStatisticsUpdate?>)LatestUpdate).BindTo(soloStatisticsWatcher.LatestUpdate);
if (userStatisticsWatcher != null)
((IBindable<UserStatisticsUpdate?>)LatestUpdate).BindTo(userStatisticsWatcher.LatestUpdate);
}
protected override void LoadComplete()

View File

@ -28,11 +28,11 @@ namespace osu.Game.Screens.Ranking.Statistics
}
[BackgroundDependencyLoader]
private void load(UserStatisticsWatcher? soloStatisticsWatcher)
private void load(UserStatisticsWatcher? userStatisticsWatcher)
{
if (soloStatisticsWatcher != null)
if (userStatisticsWatcher != null)
{
latestGlobalStatisticsUpdate = soloStatisticsWatcher.LatestUpdate.GetBoundCopy();
latestGlobalStatisticsUpdate = userStatisticsWatcher.LatestUpdate.GetBoundCopy();
latestGlobalStatisticsUpdate.BindValueChanged(update =>
{
if (update.NewValue?.Score.MatchesOnlineID(achievedScore) == true)

View File

@ -168,7 +168,7 @@ namespace osu.Game.Users
Title = UsersStrings.ShowRankGlobalSimple,
// TODO: implement highest rank tooltip
// `RankHighest` resides in `APIUser`, but `api.LocalUser` doesn't update
// maybe move to `UserStatistics` in api, so `SoloStatisticsWatcher` can update the value
// maybe move to `UserStatistics` in api, so `UserStatisticsWatcher` can update the value
},
countryRankDisplay = new ProfileValueDisplay(true)
{