mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 22:22:59 +08:00
Make "featured artist" beatmap listing filter persist in config
This commit is contained in:
parent
1174f46656
commit
431d57a8a1
@ -57,6 +57,7 @@ namespace osu.Game.Configuration
|
|||||||
SetDefault(OsuSetting.ChatDisplayHeight, ChatOverlay.DEFAULT_HEIGHT, 0.2f, 1f, 0.01f);
|
SetDefault(OsuSetting.ChatDisplayHeight, ChatOverlay.DEFAULT_HEIGHT, 0.2f, 1f, 0.01f);
|
||||||
|
|
||||||
SetDefault(OsuSetting.BeatmapListingCardSize, BeatmapCardSize.Normal);
|
SetDefault(OsuSetting.BeatmapListingCardSize, BeatmapCardSize.Normal);
|
||||||
|
SetDefault(OsuSetting.BeatmapListingFeaturedArtistFilter, true);
|
||||||
|
|
||||||
SetDefault(OsuSetting.ProfileCoverExpanded, true);
|
SetDefault(OsuSetting.ProfileCoverExpanded, true);
|
||||||
|
|
||||||
@ -450,5 +451,6 @@ namespace osu.Game.Configuration
|
|||||||
EditorAdjustExistingObjectsOnTimingChanges,
|
EditorAdjustExistingObjectsOnTimingChanges,
|
||||||
AlwaysRequireHoldingForPause,
|
AlwaysRequireHoldingForPause,
|
||||||
MultiplayerShowInProgressFilter,
|
MultiplayerShowInProgressFilter,
|
||||||
|
BeatmapListingFeaturedArtistFilter,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,9 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuColour colours { get; set; } = null!;
|
private OsuColour colours { get; set; } = null!;
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private OsuConfigManager config { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private SessionStatics sessionStatics { get; set; } = null!;
|
private SessionStatics sessionStatics { get; set; } = null!;
|
||||||
|
|
||||||
@ -135,7 +138,12 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
config.BindWith(OsuSetting.BeatmapListingFeaturedArtistFilter, Active);
|
||||||
disclaimerShown = sessionStatics.GetBindable<bool>(Static.FeaturedArtistDisclaimerShownOnce);
|
disclaimerShown = sessionStatics.GetBindable<bool>(Static.FeaturedArtistDisclaimerShownOnce);
|
||||||
|
|
||||||
|
// no need to show the disclaimer if the user already had it toggled off in config.
|
||||||
|
if (!Active.Value)
|
||||||
|
disclaimerShown.Value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Color4 ColourNormal => colours.Orange1;
|
protected override Color4 ColourNormal => colours.Orange1;
|
||||||
|
Loading…
Reference in New Issue
Block a user