1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 18:07:24 +08:00
osu-lazer/osu.Game/Rulesets/Objects
smoogipoo 6d4f94756e Rewrite the way drag + click selections happen
The general idea here is that we need the masks to handle mouse down events, as they need to handle the drag (mousedown -> drag immediately).

I've rewritten the editor selections to use events, as there are some 3 different components that handle/trigger selections in different ways.

1. All selections/deselections now propagate through `HitObjectMask.Select()`/`HitObjectMask.Deselect()`.
2. Components that react to changes in the selection bind to the masks' `Selected`/`Deselected` events, and track them/change their states locally.
3. Masks provide a `SingleSelectionRequested` event which is invoked on the mouse-down event. Various components bind to this event to perform state changes locally in this scenario.
4. `DragBox` now handles all drag input locally. It triggers `Select`/`Deselect` on the masks it needs to.
5. `SelectionBox` handles the display of itself locally.
6. `SelectionBox` handles movement of groups of masks locally.
7. `HitObjectMasks` handles movement of itself locally.
2018-03-29 22:07:23 +09:00
..
Drawables Rewrite the way drag + click selections happen 2018-03-29 22:07:23 +09:00
Legacy Initial push for better decoders 2018-03-09 21:24:15 +09:00
Types Merge branch 'master' into skin--completion 2018-03-22 16:44:00 +09:00
BezierApproximator.cs Update licence headers 2018-01-05 20:21:19 +09:00
CatmullApproximator.cs Implement Catmull-Rom curve approximator 2018-02-01 20:04:41 +09:00
CircularArcApproximator.cs Update licence headers 2018-01-05 20:21:19 +09:00
HitObject.cs Remove "keypress" from comment 2018-02-08 17:38:46 +09:00
HitObjectParser.cs Update licence headers 2018-01-05 20:21:19 +09:00
HitWindows.cs Fix a few code styling issues 2018-02-08 23:47:03 +09:00
SliderCurve.cs Implement Catmull-Rom curve approximator 2018-02-01 20:04:41 +09:00