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 top score statistics section total score display being terminally broken #31041

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 9, 2024

Closes #31038.

If you don't realise why this does anything, realise this: the drawable creation callback runs for every created sprite text in the text flow. And the created sprite texts are split by whitespace. And Russian / Ukrainian / Polish etc. use spaces as thousands separators. So on those languages the first encountered part of the score would duplicate itself to the remaining parts.

I'm actively convinced it was more difficult to produce what was in place in master than to do it properly. Why did TextColumn even have LocalisableString Text and Bindable<string> Current next to each other?????

… broken

Closes ppy#31038.

If you don't realise why this does anything, realise this: the drawable
creation callback runs for every created sprite text in the text flow.
ANd the created sprite texts are split by whitespace. And Russian /
Ukrainian / Polish etc. use spaces as thousands separators.
So on those languages the first encountered part of the score would
duplicate itself to the remaining parts.

I'm actively convinced it was _more difficult_ to produce what was in
place in `master` than to do it properly. Why did `TextColumn` even have
`LocalisableString Text` and `Bindable<string> Current` next to each
other?????
@bdach bdach added type:localisation area:overlay-beatmap next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! labels Dec 9, 2024
@peppy peppy merged commit 197d553 into ppy:master Dec 10, 2024
8 of 10 checks passed
@bdach bdach deleted the wtf-wtf-wtf-wtf-wtf-wtf branch December 10, 2024 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:overlay-beatmap next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! size/M type:localisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextFlowContainer can't separate string in TopScoreStatisticsSection
2 participants