mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Adjust code formatting slightly
This commit is contained in:
@ -264,9 +264,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private void selectNextSet(int direction, bool skipDifficulties)
|
private void selectNextSet(int direction, bool skipDifficulties)
|
||||||
{
|
{
|
||||||
var visibleSets = beatmapSets.Where(s => !s.Filtered.Value).ToList();
|
var unfilteredSets = beatmapSets.Where(s => !s.Filtered.Value).ToList();
|
||||||
|
|
||||||
var nextSet = visibleSets[(visibleSets.IndexOf(selectedBeatmapSet) + direction + visibleSets.Count) % visibleSets.Count];
|
var nextSet = unfilteredSets[(unfilteredSets.IndexOf(selectedBeatmapSet) + direction + unfilteredSets.Count) % unfilteredSets.Count];
|
||||||
|
|
||||||
if (skipDifficulties)
|
if (skipDifficulties)
|
||||||
select(nextSet);
|
select(nextSet);
|
||||||
@ -276,12 +276,14 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private void selectNextDifficulty(int direction)
|
private void selectNextDifficulty(int direction)
|
||||||
{
|
{
|
||||||
var difficulties = selectedBeatmapSet.Children.Where(s => !s.Filtered.Value).ToList();
|
var unfilteredDifficulties = selectedBeatmapSet.Children.Where(s => !s.Filtered.Value).ToList();
|
||||||
int index = difficulties.IndexOf(selectedBeatmap);
|
|
||||||
if (index + direction < 0 || index + direction >= difficulties.Count)
|
int index = unfilteredDifficulties.IndexOf(selectedBeatmap);
|
||||||
|
|
||||||
|
if (index + direction < 0 || index + direction >= unfilteredDifficulties.Count)
|
||||||
selectNextSet(direction, false);
|
selectNextSet(direction, false);
|
||||||
else
|
else
|
||||||
select(difficulties[index + direction]);
|
select(unfilteredDifficulties[index + direction]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user