1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00
osu-lazer/osu.Game.Rulesets.Osu
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
..
Beatmaps Move combo index processing to BeatmapProcessor 2018-03-20 15:57:43 +09:00
Edit Rewrite the way drag + click selections happen 2018-03-29 22:07:23 +09:00
Judgements Give Slider a tail hitobject to make slider ends counts towards score 2018-01-30 16:28:14 +09:00
Mods Edit mods description, multiplier, and code 2018-03-13 20:07:03 -07:00
Objects Rewrite the way drag + click selections happen 2018-03-29 22:07:23 +09:00
OsuDifficulty AppVeyor fix 2018-01-29 16:30:46 +08:00
Properties Add missing licence headers 2018-03-28 14:48:08 +09:00
Replays Reimplement important frames 2018-03-01 02:28:15 +09:00
Resources/Testing/Beatmaps Merge branch 'master' into fix-perfectcurve 2018-03-02 21:49:33 +09:00
Scoring Match HP drain harshness closer to stable 2018-03-07 19:37:26 +09:00
UI Merge remote-tracking branch 'origin/master' into netstandard 2018-03-24 14:49:46 +09:00
osu.Game.Rulesets.Osu.csproj Tidy up csproj further 2018-03-28 15:19:56 +09:00
OsuInputManager.cs Update licence headers 2018-01-05 20:21:19 +09:00
OsuRuleset.cs Make LegacyID nullable 2018-03-06 17:40:14 +09:00