mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Merge branch 'master' into fix-pause-overlay-selection
This commit is contained in:
commit
e77dc368ba
@ -194,7 +194,14 @@ namespace osu.Game.Screens.Select
|
|||||||
if (!Items.Any())
|
if (!Items.Any())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int originalIndex = Items.IndexOf(selectedBeatmap?.Drawables.First());
|
DrawableCarouselItem drawable = null;
|
||||||
|
|
||||||
|
if (selectedBeatmap != null && (drawable = selectedBeatmap.Drawables.FirstOrDefault()) == null)
|
||||||
|
// if the selected beatmap isn't present yet, we can't correctly change selection.
|
||||||
|
// we can fix this by changing this method to not reference drawables / Items in the first place.
|
||||||
|
return;
|
||||||
|
|
||||||
|
int originalIndex = Items.IndexOf(drawable);
|
||||||
int currentIndex = originalIndex;
|
int currentIndex = originalIndex;
|
||||||
|
|
||||||
// local function to increment the index in the required direction, wrapping over extremities.
|
// local function to increment the index in the required direction, wrapping over extremities.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user