1
0
mirror of https://github.com/ppy/osu.git synced 2024-10-01 11:57:24 +08:00
Commit Graph

11573 Commits

Author SHA1 Message Date
smoogipoo
4446aeaa0d Commenting + cleanup of HitObjectMask/HitObjectMaskLayer 2018-03-29 22:38:28 +09:00
smoogipoo
d8f26f2260 Make HitObjectMaskLayer not iterate through all masks when deselecting 2018-03-29 22:22:42 +09:00
smoogipoo
1018711cc9 Cleanup SelectionBox 2018-03-29 22:20:56 +09:00
smoogipoo
346de77776 Cleanup DragBox 2018-03-29 22:13:28 +09:00
smoogipoo
04874bcda4 "overlay" -> "mask" 2018-03-29 22:09:22 +09:00
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
smoogipoo
57e4281601 Make HitObjectMasks VisibilityContainers 2018-03-29 18:44:15 +09:00
smoogipoo
4bdfc9dca9 Fix testcase 2018-03-29 17:19:14 +09:00
smoogipoo
6314694557 Make HitObjectMaskLayer always create masks for all objects 2018-03-29 17:13:45 +09:00
Dan Balasescu
fcf0b25fa0
Merge pull request #2321 from peppy/fix-visual-tests
Make VisualTests/nUnit work again
2018-03-29 12:58:56 +09:00
smoogipoo
cc35b1ab64 Update framework 2018-03-29 12:47:24 +09:00
smoogipoo
687c889345 Add back osu.Desktop versions (used in deploy) 2018-03-29 12:47:17 +09:00
smoogipoo
d83e4dfd24 Add .vscode configurations for ruleset test projects 2018-03-29 12:26:32 +09:00
Dean Herbert
01116a73a3 Update framework 2018-03-28 18:09:18 +09:00
Dean Herbert
e47276c6b0 Remove VisualTests solution configuration 2018-03-28 16:17:04 +09:00
Dean Herbert
59df02da00 Update test projects to actually load in visual studio 2018-03-28 16:12:25 +09:00
Dean Herbert
9aae568bbe Tidy up csproj further 2018-03-28 15:19:56 +09:00
Dean Herbert
81a8385c8c Remove lingering reference to tests 2018-03-28 15:17:09 +09:00
Dean Herbert
9667d54ecb Add missing licence headers 2018-03-28 14:48:08 +09:00
Dean Herbert
093bd7db3c Update vscode build configurations 2018-03-28 14:41:37 +09:00
Dean Herbert
0026b94cd3 Consolidate and move ruleset test projects 2018-03-28 14:41:25 +09:00
Dean Herbert
c355a0794c Let appveyor do its own discovery 2018-03-28 13:12:32 +09:00
Dean Herbert
4907f14dbe Add back resources 2018-03-28 13:00:18 +09:00
Dean Herbert
94b1d3e4af Make VisualTests/nUnit work again 2018-03-28 12:33:01 +09:00
Dean Herbert
306ff09792
Merge pull request #2305 from smoogipoo/update-netstandard
Switch to .NET Standard 2.0
2018-03-27 22:55:38 +09:00
Dean Herbert
d47d7a3dd4 Update submodules 2018-03-27 22:47:01 +09:00
Dean Herbert
efac68a8f5 Update deploy script 2018-03-27 22:36:43 +09:00
Dean Herbert
d76bc1a8ad Revert "Move NoWarns"
This reverts commit 75a413a40e.
2018-03-27 21:13:06 +09:00
Dean Herbert
524044d487 Add licence header to SquirrelUpdateManager 2018-03-27 19:19:28 +09:00
Dean Herbert
75a413a40e Move NoWarns 2018-03-27 19:19:09 +09:00
Dean Herbert
04a7754049 Make squirrel local so ifdef is nicer 2018-03-27 18:57:20 +09:00
Dean Herbert
1a8aa87469 Make everything better 2018-03-27 18:56:54 +09:00
Dean Herbert
988141408f Update copyright year 2018-03-27 15:26:15 +09:00
Dean Herbert
b290d2d039 Move NUnit includes to individual projects 2018-03-27 15:07:09 +09:00
Dean Herbert
9674e8d197 Add back mania to VisualTests configuration 2018-03-27 15:05:41 +09:00
smoogipoo
28c737ad72 Update opentk + framework 2018-03-27 14:36:54 +09:00
smoogipoo
e09d9294c1 Update OpenTK 2018-03-27 09:28:02 +09:00
Dean Herbert
868a221b6c Fix VisualTests build configuration 2018-03-26 19:43:35 +09:00
smoogipoo
dd5bbbbd9f Define testable projects 2018-03-26 19:11:23 +09:00
smoogipoo
bdaba97d62 Merge remote-tracking branch 'smoogipoo/update-netstandard' into update-netstandard 2018-03-26 19:00:04 +09:00
Dean Herbert
0b38c8ec4f Fix some VS specific issues 2018-03-26 18:58:19 +09:00
smoogipoo
b9f456402a Re-implement OsuGameDesktop icon 2018-03-26 18:55:55 +09:00
smoogipoo
c6b9c4b588 Fix startup failures 2018-03-26 18:40:59 +09:00
smoogipoo
5159127bce Fix SQLite failing to initialize on test projects 2018-03-26 18:07:09 +09:00
smoogipoo
d2c5fa72dc Make appveyor only compile net461 2018-03-26 16:03:25 +09:00
smoogipoo
e5df2946aa Bump OpenTK version + update submodules 2018-03-26 15:49:16 +09:00
smoogipoo
35ef9d99c6 Only compile with net461 in visual studio 2018-03-26 15:44:55 +09:00
smoogipoo
76588a1029 Target WinExe to remove console window 2018-03-26 15:12:17 +09:00
smoogipoo
3f9b14704e Fix extra semicolon 2018-03-26 13:30:58 +09:00
smoogipoo
96901b6498 Add msbuild/dotnet build + launch targets 2018-03-26 10:52:54 +09:00