mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Remove bad
This commit is contained in:
parent
958cd9f8d8
commit
2712f49545
@ -29,10 +29,8 @@ namespace osu.Game.Screens.Play
|
||||
public readonly HealthDisplay HealthDisplay;
|
||||
public readonly SongProgress Progress;
|
||||
public readonly ModDisplay ModDisplay;
|
||||
public readonly ReplaySettingsOverlay ReplaySettingsOverlay;
|
||||
|
||||
private Bindable<bool> showHud;
|
||||
private bool replaySettingsIsVisible;
|
||||
private bool replayLoaded;
|
||||
|
||||
private static bool hasShownNotificationOnce;
|
||||
@ -103,9 +101,6 @@ namespace osu.Game.Screens.Play
|
||||
// in the case a replay isn't loaded, we want some elements to only appear briefly.
|
||||
if (!replayLoaded)
|
||||
{
|
||||
ReplaySettingsOverlay.Hide();
|
||||
ReplaySettingsOverlay.AlwaysPresent = false;
|
||||
|
||||
using (ModDisplay.BeginDelayedSequence(2000))
|
||||
ModDisplay.FadeOut(200);
|
||||
}
|
||||
@ -125,18 +120,6 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
}
|
||||
|
||||
switch (args.Key)
|
||||
{
|
||||
case Key.H:
|
||||
if (replayLoaded)
|
||||
{
|
||||
ReplaySettingsOverlay.FadeTo(replaySettingsIsVisible ? 1 : 0, duration);
|
||||
replaySettingsIsVisible = !replaySettingsIsVisible;
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
return base.OnKeyDown(state, args);
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
public ReplaySettingsOverlay()
|
||||
{
|
||||
AlwaysPresent = true;
|
||||
Direction = FillDirection.Vertical;
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Spacing = new Vector2(0, 20);
|
||||
|
Loading…
Reference in New Issue
Block a user