1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +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 namespace osu.Game.Tests.Visual.Online
{ {
[HeadlessTest] [HeadlessTest]
public partial class TestSceneSoloStatisticsWatcher : OsuTestScene public partial class TestSceneUserStatisticsWatcher : OsuTestScene
{ {
protected override bool UseOnlineAPI => false; protected override bool UseOnlineAPI => false;

View File

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

View File

@ -28,11 +28,11 @@ namespace osu.Game.Screens.Ranking.Statistics
} }
[BackgroundDependencyLoader] [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 => latestGlobalStatisticsUpdate.BindValueChanged(update =>
{ {
if (update.NewValue?.Score.MatchesOnlineID(achievedScore) == true) if (update.NewValue?.Score.MatchesOnlineID(achievedScore) == true)

View File

@ -168,7 +168,7 @@ namespace osu.Game.Users
Title = UsersStrings.ShowRankGlobalSimple, Title = UsersStrings.ShowRankGlobalSimple,
// TODO: implement highest rank tooltip // TODO: implement highest rank tooltip
// `RankHighest` resides in `APIUser`, but `api.LocalUser` doesn't update // `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) countryRankDisplay = new ProfileValueDisplay(true)
{ {