1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-01 17:43:22 +08:00
osu-lazer/osu.Game/Screens/Edit/Compose/Components
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
..
Timeline Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
BeatDivisorControl.cs Adjust visuals of tick display (and fine tune some other timeline elements) 2024-08-21 16:46:14 +09:00
BeatDivisorPresetCollection.cs Use new LINQ Order() instead of OrderBy() when possible 2024-02-08 18:01:00 +01:00
BeatDivisorType.cs Remove redundant nullable suppression directives 2023-06-07 08:20:41 +03:00
BeatSnapGrid.cs Add beat snap grid to osu!taiko editor 2023-10-17 16:59:56 +09:00
BlueprintContainer.cs Do not deselect objects when control-clicking without hitting anything 2024-12-02 13:51:43 +01:00
CircularDistanceSnapGrid.cs Fix distance spacing grid displaying incorrectly for unsnapped objects with duration 2024-09-30 13:36:16 +02:00
CircularPositionSnapGrid.cs clean up to match logic in CircularDistanceSnapGrid 2024-06-05 18:56:18 +02:00
ComposeBlueprintContainer.cs Simplify editor "ternary button" structure 2025-01-09 13:41:22 +01:00
DistanceSnapGrid.cs Fix distance snap grid using wrong colour when reference object is unsnapped 2024-09-30 13:36:51 +02:00
DragBox.cs Update R# + fix inspections 2024-02-02 21:00:28 +09:00
EditorBlueprintContainer.cs Fix timeline blueprints sometimes causing crashes due to current placement blueprint becoming unsorted 2024-10-21 14:48:57 +02:00
EditorInspector.cs Show distance in pixels to previous/next object in osu! hitobject inspector 2024-06-27 14:46:57 +02:00
EditorOrigin.cs Remember origin for editor scale popover 2024-11-03 15:20:51 +09:00
EditorSelectionHandler.cs Reduce HitSampleInfo constants allocations 2025-01-07 00:36:58 +03:00
HitObjectInspector.cs Show object inspector values during placement 2024-08-09 18:02:37 +09:00
HitObjectOrderedSelectionContainer.cs Fix timeline blueprints sometimes causing crashes due to current placement blueprint becoming unsorted 2024-10-21 14:48:57 +02:00
LinedPositionSnapGrid.cs fix nitpick 2024-05-24 18:11:28 +02:00
MoveSelectionEvent.cs Automated pass 2023-06-24 01:00:03 +09:00
PositionSnapGrid.cs Make PositionSnapGrid a BufferedContainer 2024-08-17 10:34:39 +03:00
RectangularPositionSnapGrid.cs Added bindables and binding with BindTo 2024-01-01 15:13:11 +01:00
ScrollingDragBox.cs Partial everything 2022-11-27 00:00:27 +09:00
SelectionBox.cs Fix SelectionBox buttons freezing when button is triggered via key event 2024-10-10 20:14:11 +02:00
SelectionBoxButton.cs Make TriggerAction public 2024-10-10 20:50:47 +02:00
SelectionBoxControl.cs Add a visual effect when keyboard shortcuts are used to trigger selection box buttons 2023-06-27 17:01:13 +09:00
SelectionBoxDragHandle.cs Partial everything 2022-11-27 00:00:27 +09:00
SelectionBoxDragHandleContainer.cs Update HasFlag usages 2024-07-03 00:19:04 +09:00
SelectionBoxRotationHandle.cs Assert default origin not null in rotation handle 2024-09-23 11:37:42 +02:00
SelectionBoxScaleHandle.cs Rename parameter 2024-09-24 12:40:28 +02:00
SelectionHandler.cs Add hotkey hints to editor menus 2024-09-04 12:16:54 +02:00
SelectionRotationHandler.cs fix outdated comment 2024-09-23 10:56:03 +02:00
SelectionScaleHandler.cs scale along rotated axis 2024-07-03 16:23:19 +02:00
TriangularPositionSnapGrid.cs Use math instead of hardcoded constant values 2024-06-20 17:27:15 +02:00