1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 20:13:21 +08:00
osu-lazer/osu.Game/Rulesets/Edit
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
..
Checks Reduce HitSampleInfo constants allocations 2025-01-07 00:36:58 +03:00
Tools Refactor PlacementBlueprint to not be hitobject specific 2024-09-24 20:31:00 +02:00
BeatmapVerifier.cs Add verify checks for title markers 2024-07-02 17:20:00 -03:00
BeatmapVerifierContext.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ComposerDistanceSnapProvider.cs Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
DrawableEditorRulesetWrapper.cs Revert "Keep editor in frame stable mode when possible" 2024-01-14 09:10:39 +01:00
EditorTimestampParser.cs Add optional 'suffix' to timestamp 2024-07-28 11:31:36 -04:00
EditorToolboxGroup.cs Automated pass 2023-06-24 01:00:03 +09:00
ExpandableButton.cs Add button to centre editor grid to current hit object 2024-10-01 15:22:05 +09:00
ExpandableSpriteText.cs Redesign sample bank toggles 2024-08-13 22:05:01 +02:00
ExpandingToolboxContainer.cs Always block scroll input above editor toolbox areas 2025-01-02 14:31:27 +09:00
HitObjectComposer.cs Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
HitObjectCompositionToolButton.cs Refactor PlacementBlueprint to not be hitobject specific 2024-09-24 20:31:00 +02:00
HitObjectPlacementBlueprint.cs Merge branch 'master' into editor-slider-touch-support-2 2024-10-23 17:02:38 -04:00
HitObjectSelectionBlueprint.cs add collection of selection points. 2023-01-18 21:34:23 +01:00
IBeatmapVerifier.cs Automated pass 2023-06-24 01:00:03 +09:00
IBeatSnapProvider.cs Update IBeatSnapProvider documentation to mention the pre-divided BeatSnap 2022-12-02 17:57:15 +09:00
IDistanceSnapProvider.cs Merge branch 'master' into beatmap-info-purge 2024-11-22 18:47:32 +09:00
IPositionSnapProvider.cs Automated pass 2023-06-24 01:00:03 +09:00
PlacementBlueprint.cs Remove fade transitions 2024-10-24 16:20:49 -04:00
ScrollingHitObjectComposer.cs Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
SelectionBlueprint.cs Fix some new nullable inspections 2023-10-30 15:10:10 +09:00
SnapResult.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
SnapType.cs Automated pass 2023-06-24 01:00:03 +09:00