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

Fix result page from leaderboards not sorting hitcounts correctly #1810

Merged
merged 5 commits into from
Dec 30, 2017

Conversation

Aergwyn
Copy link
Member

@Aergwyn Aergwyn commented Dec 30, 2017

I took the liberty to replace all the strings with an enum which also made it easier to sort it. It now shouldn't matter in which order the statistics are added.

Closes #1809

@peppy
Copy link
Sponsor Member

peppy commented Dec 30, 2017

Rather than making a new enum, how about using HitResult (currently in osu.Game.Rulesets.Objects.Drawables)? I think it's best to display the new terms instead of 50/100/300 anyways.

@Aergwyn
Copy link
Member Author

Aergwyn commented Dec 30, 2017

Sure. I could use that. Can I additionally move it into Scoring namespace then? Would probably make more sense for it to be there. Then it's not DrawableHitObject and Judgement only anymore.

@peppy
Copy link
Sponsor Member

peppy commented Dec 30, 2017

Yep

HitCount was good to bad but HitResult is the opposite. To account for this just descending order on the result page.
@peppy peppy merged commit 398d90e into ppy:master Dec 30, 2017
@Aergwyn Aergwyn deleted the result-page-sorting branch December 30, 2017 21:46
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.

2 participants