1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Fix leaderboard score caching colour provider

This commit is contained in:
Joseph Madamba 2023-09-23 19:40:57 -07:00
parent c0b8b3509f
commit dad03778b7
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.Leaderboards;
using osu.Game.Overlays;
using osu.Game.Rulesets.Mania;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu;
@ -19,6 +20,9 @@ namespace osu.Game.Tests.Visual.SongSelect
{
public partial class TestSceneLeaderboardScoreV2 : OsuTestScene
{
[Cached]
private OverlayColourProvider colourProvider { get; set; } = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
private FillFlowContainer fillFlow = null!;
[BackgroundDependencyLoader]

View File

@ -52,8 +52,8 @@ namespace osu.Game.Online.Leaderboards
private static readonly Vector2 shear = new Vector2(0.15f, 0);
[Cached]
private OverlayColourProvider colourProvider { get; set; } = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
[Resolved]
private OverlayColourProvider colourProvider { get; set; } = null!;
[Resolved]
private SongSelect? songSelect { get; set; }