Commit Graph

362 Commits

Author SHA1 Message Date
8777d5349b Use existing strings 2023-01-15 14:39:34 +03:00
78e562903d Localise part of editor 2023-01-15 01:50:47 +03:00
2365b065a4 Enable nullability for editor components 2023-01-12 18:07:54 +03:00
c0cfa66510 Merge pull request #21754 from Feodor0090/waveform-invalidate
Reload waveform on track replacement in editor
2023-01-06 19:57:27 +08:00
0cb9b79834 Fix ZoomableScrollContainer potentially not updating content width on setup 2022-12-23 00:56:38 +03:00
30de9ba795 Dispose previous waveform on track reload 2022-12-23 00:35:59 +03:00
f2e8776529 Bind to clock instead of music controller 2022-12-22 15:35:53 +03:00
7089bb6c23 Listen for track reload in timeline 2022-12-22 01:23:59 +03:00
27c497145f Fix the MOTHERLOAD of undetected issues that are now visible thanks to net6.0 2022-12-16 18:16:26 +09:00
d1296a22ce Update timeline blueprint's end time logic to better match new blueprint implementation 2022-12-02 17:57:15 +09:00
8cf89fcb81 Use Highlight1 instead of dull grey 2022-12-02 15:30:47 +09:00
f34a79b1a9 Set a better default colour for timeline blueprints when no colour information is available 2022-12-01 17:03:53 +09:00
7bc8908ca9 Partial everything 2022-11-27 00:00:27 +09:00
90cd386323 Fix timeline potentially scrolling at extents while not dragging 2022-11-18 09:43:16 +03:00
f6d93fcd5a Fix editor hard crash when beatmap file specified out-of-range timeline zoom value 2022-11-07 12:54:02 +09:00
a753369d3e Reuse function TimeAtPosition() and PositionAtTime(). 2022-10-30 17:21:50 +08:00
a525b3f9f8 Reorder and rename toggle checkboxes to fit better 2022-10-13 15:44:33 +09:00
fcb9e2cc00 Refactor blueprint container drag code 2022-10-11 22:39:53 +09:00
29cc554632 Ensure blueprint is added for selected hit object 2022-10-06 13:59:54 +09:00
b0213c29e9 Use mid time instead of start time
It is closer to the old blueprint-based behavior
2022-10-05 22:19:22 +09:00
3108c42ece Fix inspect issues 2022-10-05 22:04:43 +09:00
00b3d97f69 Improve timeline selection performance
But selecting a large number of hit objects is still very slow
because all DHOs must be added
and also `AddBlueprintFor` has quadratic behaviors
2022-10-05 21:58:05 +09:00
0ffde02f79 Use hit object time for timeline selection 2022-10-05 21:51:01 +09:00
8d29e9e76b Move selection logic from DragBox to BlueprintContainer 2022-10-05 21:51:01 +09:00
58217b6839 Fix weird conditional 2022-09-27 20:09:21 +09:00
a9088d9231 Add assert/log output when too many ticks are being displayed 2022-09-27 17:18:46 +09:00
e227519b09 Don't attempt to render timeline ticks until DrawWidth is above zero 2022-09-27 17:18:46 +09:00
ccae721af2 Ensure ZoomableScrollContainer content isn't shown until zoom is set 2022-09-27 17:07:11 +09:00
9dc0eb7fd0 Remove unused static 2022-09-27 17:04:56 +09:00
c075d3de08 Create a test and a check if initial zoom value of ZoomableScrollContainer is in range 2022-09-17 22:43:40 +02:00
9d94343317 Update osu.Game/Screens/Edit/Compose/Components/Timeline/Timeline.cs
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2022-09-17 19:51:44 +02:00
c8768eb399 Changed == to <= on TimelineZoom check 2022-09-17 19:00:50 +02:00
3c7ea5c8fa Update 2022-09-17 18:57:09 +02:00
57954bb8f5 Enable nullability on TimelineHitObjectBlueprint 2022-09-05 14:50:43 +09:00
6a35b233e5 Merge branch 'master' into remove-dispose-updates 2022-09-01 23:03:19 +09:00
a215d009fe Update Remove/RemoveRange/RemoveAll calls in line with framework changes 2022-08-29 15:57:40 +09:00
cd90536e4b Remove Track access in Timeline 2022-08-26 18:25:48 +09:00
1b2158ff04 Remove unused method 2022-07-26 14:15:59 +09:00
48bcf57066 Mark SetupZoom and parameterless ZoomableScrollContainer ctor as protected 2022-07-25 12:07:50 +03:00
07c6b44864 Fix Timeline attempting to setup zoom with unloaded track 2022-07-25 12:07:50 +03:00
123930306b Refactor ZoomableScrollContainer to allow setting up zoom range and initial zoom after load 2022-07-25 12:07:50 +03:00
e1df50c8ff Fix timeline zoom focus point when using buttons 2022-07-22 17:03:05 +09:00
72916d708c Merge pull request #19294 from peppy/fix-timeline-feedback-loop
Fix timeline `alt`+`scroll` zoom not correctly zooming to current mouse position
2022-07-22 16:05:38 +09:00
6eb42d08ce Fix timeline zoom receiving feedback from bindable changes
This causes the focal point zooming to not work (as the focal point is
lost). There's no need to handle ongoing changes to
`BeatmapInfo.TimelineZoom` because it is not a property which is changed
at runtime.
2022-07-22 15:25:57 +09:00
4cec9a085a Combine both calls to use same pathway 2022-07-22 14:59:20 +09:00
997fe00cdc Fix zoom delta math 2022-07-21 17:29:13 -05:00
d69dc457ba Extract zoom delta method 2022-07-21 17:28:43 -05:00
a4f071fe53 Make zoom sensitivity relative to containers max zoom 2022-07-21 08:26:48 -05:00
31a447fda0 Update parameter discards 2022-06-24 21:26:19 +09:00
f71f6302fd Remove unnecessary null casts 2022-06-24 14:50:11 +09:00