tau
tau copied to clipboard
Add an option to highlight Hard Beats
Why I opened this PR
I've been playing with tau for some time now, and it bothered me somewhat that the hard beats have the same color as regular beats. This makes it a bit harder for me to differentiate between the two and kinda makes them blur together.
When playing with the Strict mod this gets even worse. There — because the hard beats start off quite thin — it's very difficult to differentiate between hard beats and regular beats as they look almost the same.
To alleviate this I made this PR, which adds an option that changes the color of hard beats. My goal is to improve usability for players with color blindness or impaired vision, and players with some neurodevelopmental disorders.[^1]
Changes
With the option "Highlight Hard Beats" enabled, all hard beats will now be colored orange. This includes regular hard beats, strict hard beats, and strict hard beat sliders. I picked orange for the time being since it seems to work well enough with the accent color. It also looks different enough from white to make it easier to distinguish, but it could be improved upon.
The relevant tests have been updated with additional steps to verify that these changes work as expected. Manual tests with a release build of osu! have been conducted as well.
The cached slider texture from TauCachedProperties
has been removed to allow for changing the color of the hard beat sliders. It could be reintroduced in some fashion if it turns out these changes have a noticeable impact on performance. By far the easiest way to do this would be to revert the changes to TauCachedProperties
and DrawableSlider
.
Notes
Because I'm not very familiar with C# and don't use it often the code I deliver might not be very tidy, and there will undoubtedly be inefficiencies and strange decisions all over. I did however attempt to match the style of the code I was working with. If there is anything I could improve upon, please let me know.
[^1]: I have Autism without any visual impairments, yet I can tell that my ability to read certain patterns in both tau and standard really struggles compared to other players. Of course, I can't speak for other people with neurodevelopmental disorders, color blindness, or visual impairments.