Skip to content

Add a "Download Replay" button to score context menu#38271

Open
yorunoken wants to merge 5 commits into
ppy:masterfrom
yorunoken:add-download-replay-button-on-context-menu
Open

Add a "Download Replay" button to score context menu#38271
yorunoken wants to merge 5 commits into
ppy:masterfrom
yorunoken:add-download-replay-button-on-context-menu

Conversation

@yorunoken

Copy link
Copy Markdown

I thought the score context menu looked really bland.
The button only shows up in online leaderboards (global, country and friends).
A "Watch replay" button that downloads the replay and watches it could be added in the future, but this was a pretty simple PR so I thought I would just do this first.

Inspired by #37053.

@bdach bdach added the subjective PRs with subjective changes which have not been discussed prior. Need team consensus to proceed. label Jul 13, 2026

@bdach bdach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick minimal viability pass. Feature is unsolicited and thus will require @peppy sign-off to proceed even if the review is resolved.

Comment thread osu.Game/Screens/Select/BeatmapLeaderboardScore.cs Outdated
if (Score.OnlineID > 0)
items.Add(new OsuMenuItem(CommonStrings.CopyLink, MenuItemType.Standard, () => game?.CopyToClipboard($@"{api.Endpoints.WebsiteUrl}/scores/{Score.OnlineID}")));

if (Score.HasOnlineReplay && Score.Files.Count == 0)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This menu item continues to show if the user already has the given replay downloaded, meaning they can keep re-downloading it forever and not be able to tell that it's already downloaded.

Unsure how it should be handled UX-wise. Probably best choice user-wise would be disabling the menu item and changing its text to something like "Replay already downloaded" or similar. Not sure.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it could go through "Replay downloading" -> "Replay downloaded"?
could also be replaced by "watch replay" as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could also be replaced by "watch replay" as well.

This could work too, sure.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd rather hide it if it's already downloaded? In such cases, the "watch replay" context item will be there in its palce.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the watch replay button doesn't show up in leaderboard even if the replay is available locally, I'll be adding it shortly

Comment thread osu.Game/Localisation/SongSelectStrings.cs Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S subjective PRs with subjective changes which have not been discussed prior. Need team consensus to proceed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants