-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back button in spectator screen overlapping with bottom-left side of progress bar #26426
Comments
See #25770 for reason why button is there. As a frequent contributor, I would expect you to generally know to look into the reason behind things by checking blame. |
What purpose does the PR you linked serve for this issue thread? What does blame have anything to do with opening an issue thread about a blatant cosmetic issue here? I'm failing to see your point here sorry. |
Is showing just the quit button on fail overlay a solution? The commit diff --git a/osu.Game/Screens/Play/FailOverlay.cs b/osu.Game/Screens/Play/FailOverlay.cs
index 210ae5ceb6..00dd072c4e 100644
--- a/osu.Game/Screens/Play/FailOverlay.cs
+++ b/osu.Game/Screens/Play/FailOverlay.cs
@@ -26,21 +26,20 @@ public partial class FailOverlay : GameplayMenuOverlay
public override LocalisableString Header => GameplayMenuOverlayStrings.FailedHeader;
- private readonly bool showButtons;
+ private readonly bool showRetryButton;
- public FailOverlay(bool showButtons = true)
+ public FailOverlay(bool showRetryButton = true)
{
- this.showButtons = showButtons;
+ this.showRetryButton = showRetryButton;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
- if (showButtons)
- {
+ if (showRetryButton)
AddButton(GameplayMenuOverlayStrings.Retry, colours.YellowDark, () => OnRetry?.Invoke());
- AddButton(GameplayMenuOverlayStrings.Quit, new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
- }
+
+ AddButton(GameplayMenuOverlayStrings.Quit, new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
// from #10339 maybe this is a better visual effect
Add(new Container
diff --git a/osu.Game/Screens/Play/SpectatorPlayer.cs b/osu.Game/Screens/Play/SpectatorPlayer.cs
index 2faead0ee1..d1404ac184 100644
--- a/osu.Game/Screens/Play/SpectatorPlayer.cs
+++ b/osu.Game/Screens/Play/SpectatorPlayer.cs
@@ -25,8 +25,6 @@ public abstract partial class SpectatorPlayer : Player
private readonly Score score;
- public override bool AllowBackButton => true;
-
protected override bool CheckModsAllowFailure()
{
if (!allowFail)
Kapture.2024-02-12.at.09.24.34.mp4 |
In principle I'm not opposed to the appearance. The code is a bit eh but probably passable. That said does it actually work correctly? That's not shown on video and I'm a bit skeptical that it will. |
Yes it does after testing. Comment here should be updated though, probably just removing the text inside the parenthesis: osu/osu.Game/Screens/Play/GameplayMenuOverlay.cs Lines 47 to 55 in e1a376c
|
I'd keep the comment and guard as a safety, and probably allow setting the visibility of all three buttons via an |
Type
Cosmetic
Bug description
The hold-to-exit button on the bottom right is already there, so I wouldn't imagine the back button to be visible in the first place.
Screenshots or videos
Version
2023.1231.0-lazer
Logs
The text was updated successfully, but these errors were encountered: