mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 07:12:12 +08:00
Expire instead of hiding and disabling visibility state
Since it's a temporary change until the spectator interface gets improved, no need to add further logic.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Scoring;
|
||||
@@ -36,8 +35,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
{
|
||||
spectatorPlayerClock.WaitingOnFrames.BindTo(waitingOnFrames);
|
||||
|
||||
HUDOverlay.PlayerSettingsOverlay.State.Value = Visibility.Hidden;
|
||||
HUDOverlay.PlayerSettingsOverlay.State.Disabled = true;
|
||||
HUDOverlay.PlayerSettingsOverlay.Expire();
|
||||
}
|
||||
|
||||
protected override void UpdateAfterChildren()
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
PlayerSettingsGroups.Alpha = 0f;
|
||||
PlayerSettingsGroups.Expire();
|
||||
}
|
||||
|
||||
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
if (e.ControlPressed)
|
||||
{
|
||||
if (e.Key == Key.H && ReplayLoaded && !State.Disabled)
|
||||
if (e.Key == Key.H && ReplayLoaded)
|
||||
{
|
||||
ToggleVisibility();
|
||||
return true;
|
||||
|
||||
@@ -240,17 +240,13 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
if (e.NewValue)
|
||||
{
|
||||
if (!PlayerSettingsOverlay.State.Disabled)
|
||||
PlayerSettingsOverlay.Show();
|
||||
|
||||
PlayerSettingsOverlay.Show();
|
||||
ModDisplay.FadeIn(200);
|
||||
KeyCounter.Margin = new MarginPadding(10) { Bottom = 30 };
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!PlayerSettingsOverlay.State.Disabled)
|
||||
PlayerSettingsOverlay.Hide();
|
||||
|
||||
PlayerSettingsOverlay.Hide();
|
||||
ModDisplay.Delay(2000).FadeOut(200);
|
||||
KeyCounter.Margin = new MarginPadding(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user