-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add song select beatmap leaderboard display #32844
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
base: master
Are you sure you want to change the base?
Add song select beatmap leaderboard display #32844
Conversation
de9146c
to
21d670d
Compare
Copied logic from `BeatmapLeaderboard`.
21d670d
to
81d54a9
Compare
You copied a bug and missed a test, see #32816. Fixed via peppy@7a18a77. |
We'll need to figure out what to do in multiplayer cases in the future, but the hope is that it can be done without further subclassing if possible.
Cases like 26f2703 make me very wary that you haven't run through all added tests on a visual level. |
This removes a lot of movement, but honestly it didn't feel good in the first place. If anything I'll come back with a second-pass animation pass on this.
That's a test from master branch and doesn't look like one I need to carefully pay attention to, it displays non-sheared version while I'm working completely on sheared version. I'm not sure I have to be responsible for that. I have tested each and every test case that matters to this PR chain and song select. Leaderboard regression fix came in an unfortunate time as I've already prepared it for PR. Good find is all I can say. |
Also handles some display edge cases where scores may overlap placeholder or do other weird things.
@frenzibyte we have four mod tooltips now. the one in the beatmap score is only used, even though it could probably be applied to all mod switch types (and maybe all mods icons?): what's the forward direction here? Put another way: rather than adding the mod tooltip locally in a subclass of |
} | ||
|
||
private sealed partial class MoreModSwitchTiny : CompositeDrawable | ||
private sealed partial class MoreModSwitchTiny : CompositeDrawable, IHasPopover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A button called a switch, with no sounds attached.
Yes, I get that it's not your original code, but it also feels like you've just turned a blind eye to it while also refactoring a good portion of the class. As one example, it has a heap of local animations which are only activated in the |
{ | ||
RelativeSizeAxes = Axes.X, | ||
AutoSizeAxes = Axes.Y, | ||
Margin = new MarginPadding { Top = 4f, Bottom = 180f }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's enough bottom bleed to allow the last card to show fully without being cut off from the left side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be commented as such!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has been resolved in bd58aac
I have responded to this in discord as there needs to be further discussion before settling on a direction and it tends to stray away from this PR (none of the changes in this PR play around with mod tooltips). |
LeaderboardManager
return value and simplify flow further #32913 (and application of refactors as per Add song select beatmap leaderboard display #32844 (comment))Preview:
CleanShot.2025-04-18.at.07.00.44.mp4
Notes:
@peppy Seeing how
BeatmapLeaderboard
implements score fetching, I've attempted to follow suit and do the exact same to have full functionality support in de9146c. Feel free to revert / force-push this commit away if you still think it shouldn't be done here.If a score card goes partially off-screen, then resizing the width back and fourth doesn't work correctly. This is happening due to the parent of
rankLabelStandalone
getting masked away completely, and therefore not processing transforms to that component. I have no idea how to fix this one because the parent here is a cell container ofGridContainer
, somehowGridContainer.CellContainer
needs to haveIsMaskedAway
never set to false.CleanShot.2025-04-18.at.07.04.04.mp4
Total leaderboard scores count that was added in Include score count in beatmap scores response osu-web#12018 has not been implemented yet, as it requires minor changes to
LeaderboardManager
to carry the value across to consumers. To be done in a follow-up.