mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 00:52:56 +08:00
Apply renaming in remaining usages
This commit is contained in:
parent
eac4c5f69d
commit
de48c51715
@ -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;
|
||||||
|
|
@ -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()
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user