1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-01 14:22:56 +08:00
osu-lazer/osu.Game/Screens/Edit/Compose
Bartłomiej Dach 5c8ae6f851
Simplify editor "ternary button" structure
As I look into re-implementing the ability to choose combo colour for an
object (also known as "colourhax") from the editor UI, I stumble upon
these wretched ternary items again and sigh a deep sigh of annoyance.

The structure is overly rigid. `TernaryItem` does nothing that
`DrawableTernaryItem` couldn't, except make it more annoying to add
specific sub-variants of `DrawableTernaryItem` that could do more
things.

Yes you could sprinkle more levels of virtuals to
`CreateDrawableButton()` or something, but after all, as Saint Exupéry
says, "perfection is finally attained not when there is no longer
anything to add, but when there is no longer anything to take away."
So I'm leaning for taking one step towards perfection.
2025-01-09 13:41:22 +01:00
..
Components Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
ComposeScreen.cs Show breaks behind objects in timeline 2024-08-01 19:47:44 +09:00
HitObjectUsageEventBuffer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
IPlacementHandler.cs Fix placement blueprints sometimes not behaving correctly with touch input 2024-10-23 16:51:21 -04:00