mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Apply newline additions
This commit is contained in:
@ -257,6 +257,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
select(beatmap);
|
||||
return;
|
||||
|
||||
case CarouselBeatmapSet set:
|
||||
if (skipDifficulties)
|
||||
select(set);
|
||||
@ -292,6 +293,7 @@ namespace osu.Game.Screens.Select
|
||||
if (RandomAlgorithm.Value == RandomSelectAlgorithm.RandomPermutation)
|
||||
{
|
||||
var notYetVisitedSets = visibleSets.Except(previouslyVisitedRandomSets).ToList();
|
||||
|
||||
if (!notYetVisitedSets.Any())
|
||||
{
|
||||
previouslyVisitedRandomSets.RemoveAll(s => visibleSets.Contains(s));
|
||||
@ -394,13 +396,16 @@ namespace osu.Game.Screens.Select
|
||||
case Key.Up:
|
||||
direction = -1;
|
||||
break;
|
||||
|
||||
case Key.Down:
|
||||
direction = 1;
|
||||
break;
|
||||
|
||||
case Key.Left:
|
||||
direction = -1;
|
||||
skipDifficulties = true;
|
||||
break;
|
||||
|
||||
case Key.Right:
|
||||
direction = 1;
|
||||
skipDifficulties = true;
|
||||
@ -465,8 +470,10 @@ namespace osu.Game.Screens.Select
|
||||
case LoadState.NotLoaded:
|
||||
LoadComponentAsync(item);
|
||||
break;
|
||||
|
||||
case LoadState.Loading:
|
||||
break;
|
||||
|
||||
default:
|
||||
scrollableContent.Add(item);
|
||||
break;
|
||||
@ -557,6 +564,7 @@ namespace osu.Game.Screens.Select
|
||||
set.MoveToX(set.Item.State.Value == CarouselItemState.Selected ? -100 : 0, 500, Easing.OutExpo);
|
||||
set.MoveToY(currentY, 750, Easing.OutExpo);
|
||||
break;
|
||||
|
||||
case DrawableCarouselBeatmap beatmap:
|
||||
if (beatmap.Item.State.Value == CarouselItemState.Selected)
|
||||
scrollTarget = currentY + beatmap.DrawHeight / 2 - DrawHeight / 2;
|
||||
|
@ -53,6 +53,7 @@ namespace osu.Game.Screens.Select
|
||||
var autoType = auto.GetType();
|
||||
|
||||
var mods = SelectedMods.Value;
|
||||
|
||||
if (mods.All(m => m.GetType() != autoType))
|
||||
{
|
||||
SelectedMods.Value = mods.Append(auto);
|
||||
|
Reference in New Issue
Block a user