Rename classes to remove "streak" terminology

Since the primary display isn't showing a streak.
This commit is contained in:
Dean Herbert 2024-08-02 15:31:22 +09:00
parent d76fc34cf8
commit 816dee181a
No known key found for this signature in database
4 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Tests.Visual.Online
{
base.LoadComplete();
DailyChallengeStreakDisplay display = null!;
DailyChallengeStatsDisplay display = null!;
AddSliderStep("daily", 0, 999, 2, v => update(s => s.DailyStreakCurrent = v));
AddSliderStep("daily best", 0, 999, 2, v => update(s => s.DailyStreakBest = v));
@ -44,7 +44,7 @@ namespace osu.Game.Tests.Visual.Online
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background2,
});
Add(display = new DailyChallengeStreakDisplay
Add(display = new DailyChallengeStatsDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -15,11 +15,11 @@ using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class DailyChallengeStreakDisplay : CompositeDrawable, IHasCustomTooltip<DailyChallengeStreakTooltipData>
public partial class DailyChallengeStatsDisplay : CompositeDrawable, IHasCustomTooltip<DailyChallengeTooltipData>
{
public readonly Bindable<UserProfileData?> User = new Bindable<UserProfileData?>();
public DailyChallengeStreakTooltipData? TooltipContent { get; private set; }
public DailyChallengeTooltipData? TooltipContent { get; private set; }
private OsuSpriteText dailyStreak = null!;
@ -103,6 +103,6 @@ namespace osu.Game.Overlays.Profile.Header.Components
Show();
}
public ITooltip<DailyChallengeStreakTooltipData> GetCustomTooltip() => new DailyChallengeStreakTooltip();
public ITooltip<DailyChallengeTooltipData> GetCustomTooltip() => new DailyChallengeStatsTooltip();
}
}

View File

@ -21,7 +21,7 @@ using Color4 = osuTK.Graphics.Color4;
namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class DailyChallengeStreakTooltip : VisibilityContainer, ITooltip<DailyChallengeStreakTooltipData>
public partial class DailyChallengeStatsTooltip : VisibilityContainer, ITooltip<DailyChallengeTooltipData>
{
private StreakPiece currentDaily = null!;
private StreakPiece currentWeekly = null!;
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
};
}
public void SetContent(DailyChallengeStreakTooltipData content)
public void SetContent(DailyChallengeTooltipData content)
{
var statistics = content.Statistics;
var colourProvider = content.ColourProvider;
@ -237,5 +237,5 @@ namespace osu.Game.Overlays.Profile.Header.Components
}
}
public record DailyChallengeStreakTooltipData(OverlayColourProvider ColourProvider, APIUserDailyChallengeStatistics Statistics);
public record DailyChallengeTooltipData(OverlayColourProvider ColourProvider, APIUserDailyChallengeStatistics Statistics);
}

View File

@ -72,7 +72,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
Title = UsersStrings.ShowRankCountrySimple,
},
new DailyChallengeStreakDisplay
new DailyChallengeStatsDisplay
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,