mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Merge branch 'master' of git://github.com/ppy/osu into details
This commit is contained in:
@ -181,7 +181,8 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
if (!IsLoaded) return;
|
||||
|
||||
criteria = newCriteria ?? criteria ?? new FilterCriteria();
|
||||
if (newCriteria != null)
|
||||
criteria = newCriteria;
|
||||
|
||||
Action perform = delegate
|
||||
{
|
||||
@ -202,6 +203,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
if (selectedGroup == null || selectedGroup.State == BeatmapGroupState.Hidden)
|
||||
SelectNext();
|
||||
else
|
||||
selectGroup(selectedGroup);
|
||||
};
|
||||
|
||||
filterTask?.Cancel();
|
||||
|
@ -175,6 +175,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
if (osu != null)
|
||||
playMode.BindTo(osu.PlayMode);
|
||||
playMode.ValueChanged += (s, e) => FilterChanged?.Invoke(CreateCriteria());
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
||||
|
@ -276,7 +276,7 @@ namespace osu.Game.Screens.Select
|
||||
initialAddSetsTask.Cancel();
|
||||
}
|
||||
|
||||
private void playMode_ValueChanged(object sender, EventArgs e) => carousel.Filter();
|
||||
private void playMode_ValueChanged(object sender, EventArgs e) => Beatmap.PreferredPlayMode = playMode;
|
||||
|
||||
private void changeBackground(WorkingBeatmap beatmap)
|
||||
{
|
||||
|
Reference in New Issue
Block a user