mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Handle no hitobjects / no hitwindows (osu!catch)
This commit is contained in:
parent
394208afc5
commit
665fc95d49
@ -63,6 +63,9 @@ namespace osu.Game.Screens.Play.HUD
|
||||
{
|
||||
Children.ForEach(c => c.FadeOut(fade_duration, Easing.OutQuint));
|
||||
|
||||
if (hitWindows == null)
|
||||
return;
|
||||
|
||||
switch (type.NewValue)
|
||||
{
|
||||
case ScoreMeterType.HitErrorBoth:
|
||||
|
@ -259,7 +259,7 @@ namespace osu.Game.Screens.Play
|
||||
Margin = new MarginPadding { Top = 20, Right = 10 },
|
||||
};
|
||||
|
||||
protected virtual HitErrorDisplay CreateHitErrorDisplayOverlay() => new HitErrorDisplay(scoreProcessor, drawableRuleset.Objects.First().HitWindows);
|
||||
protected virtual HitErrorDisplay CreateHitErrorDisplayOverlay() => new HitErrorDisplay(scoreProcessor, drawableRuleset.Objects.FirstOrDefault().HitWindows);
|
||||
|
||||
protected virtual PlayerSettingsOverlay CreatePlayerSettingsOverlay() => new PlayerSettingsOverlay();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user