mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
Open rankings overlay on spotlights page.
This commit is contained in:
parent
c9d600b69c
commit
535a7989d6
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user