1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00
osu-lazer/osu.Game/Screens
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
..
Backgrounds remove unnecessary empty lines 2018-01-12 19:30:34 +01:00
Charts Update licence headers 2018-01-05 20:21:19 +09:00
Direct Update licence headers 2018-01-05 20:21:19 +09:00
Edit Rewrite the way drag + click selections happen 2018-03-29 22:07:23 +09:00
Menu Use cached vertexbatch add delegate 2018-03-22 15:13:38 +09:00
Multiplayer Remove in-between properties 2018-02-07 18:04:32 +09:00
Play Merge branch 'master' into fix-background-fade 2018-03-24 03:40:13 +09:00
Ranking Update licence headers 2018-01-05 20:21:19 +09:00
Select Fix resharper error 2018-03-25 01:54:25 +09:00
Tournament Merge branch 'master' into update-branch 2018-02-08 23:35:48 +09:00
BackgroundScreen.cs Update licence headers 2018-01-05 20:21:19 +09:00
Loader.cs Update licence headers 2018-01-05 20:21:19 +09:00
OsuScreen.cs Reduce parallax effect during gameplay 2018-02-28 11:42:47 +09:00
ScreenWhiteBox.cs Update licence headers 2018-01-05 20:21:19 +09:00