Merge pull request #27973 from peppy/fix-overlay-colour

Fix settings colour scheme wrong when viewing gameplay from skin editor button
This commit is contained in:
Bartłomiej Dach 2024-04-23 15:22:27 +02:00 committed by GitHub
commit 777081e941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ public abstract partial class Player : ScreenWithBeatmapBackground, ISamplePlayb
/// </summary> /// </summary>
public IBindable<bool> ShowingOverlayComponents = new Bindable<bool>(); public IBindable<bool> ShowingOverlayComponents = new Bindable<bool>();
// Should match PlayerLoader for consistency. Cached here for the rare case we push a Player
// without the loading screen (one such usage is the skin editor's scene library).
[Cached]
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
[Resolved] [Resolved]
private ScoreManager scoreManager { get; set; } private ScoreManager scoreManager { get; set; }