mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 04:40:07 +08:00
Merge branch 'master' into partial-judgements
This commit is contained in:
commit
77ac205b62
@ -36,7 +36,8 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new DelayedLoadContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
TimeBeforeLoad = 100,
|
||||
TimeBeforeLoad = 300,
|
||||
FinishedLoading = d => d.FadeInFromZero(400, EasingTypes.Out),
|
||||
Children = new[]
|
||||
{
|
||||
new PanelBackground(beatmap)
|
||||
|
@ -199,7 +199,7 @@ namespace osu.Game
|
||||
{
|
||||
Depth = -3,
|
||||
OnHome = delegate { intro?.ChildScreen?.MakeCurrent(); },
|
||||
OnPlayModeChange = delegate (PlayMode m) { PlayMode.Value = m; },
|
||||
OnPlayModeChange = m => PlayMode.Value = m,
|
||||
}).LoadAsync(this, t =>
|
||||
{
|
||||
PlayMode.ValueChanged += delegate { Toolbar.SetGameMode(PlayMode.Value); };
|
||||
|
@ -65,14 +65,13 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
foreach (PlayMode m in Ruleset.PlayModes)
|
||||
{
|
||||
var localMode = m;
|
||||
modeButtons.Add(new ToolbarModeButton
|
||||
{
|
||||
Mode = m,
|
||||
Action = delegate
|
||||
{
|
||||
SetGameMode(localMode);
|
||||
OnPlayModeChange?.Invoke(localMode);
|
||||
SetGameMode(m);
|
||||
OnPlayModeChange?.Invoke(m);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user