1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Open rankings overlay on spotlights page.

This commit is contained in:
Lucas A 2020-02-25 20:57:15 +01:00
parent c9d600b69c
commit 535a7989d6
2 changed files with 7 additions and 1 deletions

View File

@ -138,6 +138,12 @@ namespace osu.Game.Overlays
Country.Value = requested; Country.Value = requested;
} }
public void ShowSpotlights()
{
Scope.Value = RankingsScope.Spotlights;
Show();
}
private void loadNewContent() private void loadNewContent()
{ {
loading.Show(); loading.Show();

View File

@ -134,7 +134,7 @@ namespace osu.Game.Screens.Menu
buttons.OnSettings = () => settings?.ToggleVisibility(); buttons.OnSettings = () => settings?.ToggleVisibility();
buttons.OnDirect = () => direct?.ToggleVisibility(); buttons.OnDirect = () => direct?.ToggleVisibility();
buttons.OnChart = () => rankings?.ToggleVisibility(); buttons.OnChart = () => rankings?.ShowSpotlights();
LoadComponentAsync(background = new BackgroundScreenDefault()); LoadComponentAsync(background = new BackgroundScreenDefault());
preloadSongSelect(); preloadSongSelect();