Commit Graph

2800 Commits

Author SHA1 Message Date
cf362a6b4f Merge pull request #19529 from peppy/locally-modified-pill
Show "locally modified" pill when local modifications have been made
2022-08-05 21:12:13 +09:00
ac9321204c Merge branch 'master' into mod-overlay/create-preset 2022-08-03 21:21:52 +02:00
a32149fda1 Convert interface methods to extension methods 2022-08-03 20:07:55 +09:00
16ff8d5c38 Use different variable source 2022-08-03 17:47:32 +09:00
085080576a Add button for creating new mod presets 2022-08-02 22:03:32 +02:00
258ad7c6b9 Tidy up kiai time access 2022-08-02 18:18:40 +09:00
cc4cde2c79 Improve IBeatSyncProvider interface and reduce beatmap track dependence 2022-08-02 17:59:18 +09:00
34ffc51c51 Avoid clearing chat overlay textbox when pressing "back" key binding
Generally this is expected behaviour for usages of focused text boxes
(ie. to clear search content), but not so much here.

Addresses https://github.com/ppy/osu/discussions/19403#discussioncomment-3230395.
2022-08-02 13:56:03 +09:00
298efa5391 Fix broken ShearedButton autosizing logic 2022-08-01 22:04:16 +02:00
0fcae08d38 Show "locally modified" pill when local modifications have been made 2022-08-02 00:52:38 +09:00
f44a4c8652 Reorder file content to match expectations 2022-07-28 12:13:47 +09:00
f01c397220 Apply nullability 2022-07-28 12:12:46 +09:00
f097064eea Adjust to reviews 2022-07-27 21:52:38 -04:00
ac39d3a142 "Copied URL" -> "URL copied" 2022-07-27 21:52:28 -04:00
2d4655f61e Add Toast Notification to Copy URL 2022-07-27 02:25:40 -04:00
c30e8047ab Merge pull request #19375 from novialriptide/contextmenu-external-beatmap
Add ContextMenu to beatmap external link
2022-07-26 19:06:10 +09:00
aaf6ec05bb Remove notification upon copy 2022-07-26 04:19:54 -04:00
ef10145d6f Rename MenuCursorContainer and clean up code 2022-07-26 14:11:52 +09:00
ee0c67e114 Add ability to make cursor show even during touch input
I completely disagree with this from a UX perspective, but it's come up
so often that I figure we should just let users bone themselves.
2022-07-26 14:08:00 +09:00
a8e315abf0 Refactor 2022-07-25 17:16:33 -04:00
46c4e78477 Add notification and another menuitem 2022-07-25 16:59:00 -04:00
f1534da683 Formatting issues 2022-07-25 04:13:05 -04:00
fcf767e28b Add contextmenu to beatmap external link 2022-07-25 04:07:33 -04:00
2dd99ef1fd Refactor FPSCounter to not use scheduled tasks
While on the surface this looks harmless (ignoring allocations),
`Scheduler` doesn't clear cancelled tasks until they reach their
execution time. This can cause an increase in time spent processing the
scheduler itself.

I don't think a per-frame updating component should use scheduled tasks
in this way in the first place, so I've just rewritten the logic to
avoid that overhead altogether.
2022-07-25 16:26:48 +09:00
4332e6cae9 Fix OsuSliderBar throwing on negative draw width 2022-07-24 08:34:24 +03:00
b9f5074c13 Merge branch 'fps-counter-no-rolling-counter' into fps-counter-cleanup 2022-07-22 02:22:01 +09:00
0eeafea500 Increase responsiveness to change slightly 2022-07-21 23:37:32 +09:00
c140601c2d Cleanup pass on FPSCounter 2022-07-21 23:02:31 +09:00
fc6445caea Rate limit updates for good measure 2022-07-21 22:55:45 +09:00
3d2603e0eb Remove unused classes 2022-07-21 22:51:35 +09:00
3fad481a96 Avoid using RollingCounter in fps counter
It wasn't made to be updated every frame, and it shows. Inaccurate for
reasons I'm not really interested in investigating, because I don't want
to incur the `Transorm` overhead in the first place for an fps counter.

Was only used originally out of convenience.
2022-07-21 22:50:02 +09:00
5db4d9437a Add missing using statement 2022-07-21 21:39:24 +09:00
6fac34c721 Merge pull request #19274 from peppy/fix-fps-counter-fps-inaccuracy
Fix draw FPS being inaccurate due to using `ElapsedFrameTime`
2022-07-21 20:55:14 +09:00
4c4939d18d Fix draw FPS being inaccurate due to using ElapsedFrameTime
Had a feeling this would be the case.

Basically, we're calculating on the update thread and checking the last
value of draw thread's `ElapsedFrameTime`. In the case that value is
spiky, a completely incorrect fps can be displayed.

I've left the spike display do use `ElapsedFrameTime`, as
`FramesPerSecond` is too averaged to see spikes.
2022-07-21 19:17:58 +09:00
fb728fbed1 Fix FPS counter not being wide enough to show large fps numbers 2022-07-21 18:56:39 +09:00
defadeef47 Merge pull request #19250 from peppy/fps-counter
Add game-side FPS counter
2022-07-21 16:26:38 +09:00
2f16174d3d Changed control points set to private; Cleanup 2022-07-21 07:25:44 +03:00
56106e43d2 Avoid div-by-zero 2022-07-21 13:06:43 +09:00
311a0a3de0 Always show counter temporarily when aim FPS changes 2022-07-21 12:57:40 +09:00
705ff06ea5 Better handle spikes and significant changes 2022-07-21 12:50:39 +09:00
285516b111 Fix isDisplayed never actually being set 2022-07-21 12:40:27 +09:00
ed8e065a86 Logo triangles speed and beat sync tweaks 2022-07-21 06:13:45 +03:00
728e22fbce Improve tooltip display when running single thread 2022-07-21 12:06:22 +09:00
e1a577ea48 Adjust spacing to make things feel more even
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2022-07-21 11:59:51 +09:00
57ecc3a6df Remove unnecessary negative spacing from thread names
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2022-07-21 11:59:26 +09:00
c7313b4198 Fix alignment glitching due to non-matching anchor/origin
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2022-07-21 11:58:28 +09:00
75453b78c0 Adjust colours and metrics 2022-07-21 00:09:46 +09:00
f54aff2ece Add global key binding for FPS toggle 2022-07-21 00:09:46 +09:00
0a1744faca Add to game and bind with configuration setting 2022-07-20 23:49:19 +09:00
0fb959a565 Stay displayed while hovering 2022-07-20 23:49:19 +09:00