Skip to content
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

Implement difficulty tooltips for multiplayer lobbies #26531

Merged
merged 23 commits into from Feb 22, 2024

Conversation

smallketchup82
Copy link
Contributor

Most of the discussion happened in #11306, and the issue can be closed if this is merged. This PR effectively adds difficulty information to the tooltip of maps in multiplayer lobbies.

Here is a preview of what it looks like:
image

The difficulty statistics update based on the mods applied, with the exception of the star rating (see below). I've done testing and found that it works regardless of whether the map is downloaded or not. Peppy said that this should be fine for the time being, until a new design is implemented. Which I can agree with.

Known issues

  • The star rating does not update based on the mods applied. I tried to implement this with difficultyCache.getDifficultyAsync() but to no avail. In the end I wasn't able to find a way to get the star rating to update, so I'll be leaving it for another contributor to implement. I suggest a new issue is opened for this if the PR gets merged.

osu.Game/Beatmaps/Drawables/DifficultyIcon.cs Outdated Show resolved Hide resolved
osu.Game/Beatmaps/Drawables/DifficultyIcon.cs Show resolved Hide resolved
osu.Game/Beatmaps/Drawables/DifficultyIconTooltip.cs Outdated Show resolved Hide resolved
- Change difficultyicon mods parameter docstring to be more professional
- Add a parameter for controlling whether the difficulty statistics show or not. Defaults to false
- Round the BPM in the tooltip to make sure it displays correctly
@peppy peppy self-requested a review January 18, 2024 06:58
peppy
peppy previously approved these changes Jan 25, 2024
@peppy
Copy link
Sponsor Member

peppy commented Jan 25, 2024

There's quite a bit of duplicated code here but we can deal with it later.

@bdach bdach changed the title Implement Difficulty Tooltips for Multiplayer Lobbies Implement difficulty tooltips for multiplayer lobbies Feb 22, 2024
@bdach bdach enabled auto-merge February 22, 2024 11:23
@bdach bdach disabled auto-merge February 22, 2024 11:57
@bdach bdach merged commit 49b7f0e into ppy:master Feb 22, 2024
13 of 17 checks passed
@smallketchup82 smallketchup82 deleted the multiplayer-difficulty-tooltip branch February 22, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants