Commit Graph

5117 Commits

Author SHA1 Message Date
2884ed3ab9 Merge pull request #12350 from smoogipoo/multiplayer-spectator-player-grid
Add the multiplayer spectator player grid
2021-04-13 19:25:32 +09:00
a0513f64f9 Merge branch 'master' into replays-tooltip-graph 2021-04-13 18:21:10 +09:00
fd32c7d7df Merge pull request #12393 from peppy/update-timeline-design-a-bit
Update timeline tick display to differentiate tick type using width
2021-04-13 18:14:58 +09:00
15658eda55 Add failing test case 2021-04-13 12:00:13 +03:00
36510309d1 Merge EnableUserDim and IgnoreUserSettings to one bindable 2021-04-13 10:58:56 +03:00
a9652b7b25 Start TimelineTestScene in a more visible place 2021-04-13 16:05:12 +09:00
57ba7b7cbb Partially revert the changes of CurrentFrame and NextFrame for compatibility
Making those always non-null is postponed as when a replay's frame contains keypress the behavior is changed.
Previously, the key is pressed at the time of the first frame. But using non-null frames means the key is pressed at negative infinity.
However, I think the new way of always using non-null frames makes the client code so I plan to bundle the change to more breaking changes.
2021-04-13 15:55:23 +09:00
b45d7de4ec Update asserts to use better nunit specifications 2021-04-13 15:04:01 +09:00
38d10755cb Merge branch 'master' into refactor-framed-replay-input-hander 2021-04-13 13:47:22 +09:00
516bd138e3 Add (previously failing) test coverage of drag from selection 2021-04-13 13:46:38 +09:00
7c975359d9 Add basic select/deselect tests 2021-04-13 13:29:37 +09:00
05d7fe289f Rename test scene in preparation for increasing scope 2021-04-13 13:09:18 +09:00
66e74da2b7 Fix regression in quick delete mouse action blocking 2021-04-13 13:03:14 +09:00
17c2c4e885 Fix test case filename not matching 2021-04-13 05:31:56 +03:00
6d3f9fa9ce Use is class instead of Equals with template index
Ensures ordering of `PossibleTemplates` does not affect tests.
2021-04-13 02:29:25 +02:00
0bcc39bd36 Remove redundant space 2021-04-13 02:17:35 +02:00
47cf4bcf25 Add CheckBackground tests 2021-04-13 01:22:24 +02:00
8f84abf348 Display "replays watched" tooltip for replays subsection 2021-04-12 21:51:06 +03:00
9679bdfed2 Merge branch 'master' into mod-using-reference-equality 2021-04-12 20:56:24 +03:00
589e1a2a47 Add mod settings equality test 2021-04-12 20:51:24 +03:00
84e1ff79a0 Merge pull request #12352 from smoogipoo/multiplayer-spectator-leaderboard
Implement the multiplayer spectator leaderboard
2021-04-13 01:51:14 +09:00
f66306a81a Remove IsLowBattery 2021-04-12 11:15:24 -04:00
43b97fe0ad Refactor PowerStatus (now called BatteryInfo) 2021-04-12 10:52:52 -04:00
1e002841cf Add test for scoring mode changes 2021-04-12 22:03:45 +09:00
c531e38a36 Rework to create a derived tracked user data instead 2021-04-12 22:00:27 +09:00
27660265b5 Merge branch 'master' into multiplayer-spectator-leaderboard 2021-04-12 21:02:18 +09:00
d2d7f77430 Fix mods not being serialised correctly in ScoreInfo 2021-04-12 20:09:01 +09:00
b4c75ba3c6 Fix TestQuickDeleteRemovesObject failing on second run 2021-04-12 19:19:25 +09:00
359fae895f Rename property 2021-04-12 18:50:25 +09:00
3c28c09ab5 Add more FramedReplayInputHandler tests 2021-04-12 16:18:35 +09:00
e19e8ff2a3 Rewrite FramedReplayInputHandler for robustness
This commit changes the semantics of `CurrentFrame` and `NextFrame` of the class.
The ordering of `NextFrame.Time` and `CurrentFrame.Time` was dependent on the current direction.
Now, it should always satisfy `CurrentFrame.Time <= CurrentTime <= NextFrame.Time` except at the start/end.
This change, however, doesn't break existing deriving classes if the template code pattern usage of interpolation is used.
The deriving class code can be simplified due to the elimination of nullable types. I didn't include those changes in this commit.

I removed `StreamingFramedReplayInputHandlerTest` for now, as it is almost-duplicate of `FramedReplayInputHandlerTest`. I'll include more tests in later commits.

This commit fixes #6150.
2021-04-12 16:18:11 +09:00
9be3163592 Merge branch 'master' into multiplayer-spectator-player-grid 2021-04-12 14:14:13 +09:00
4fcddfb44b Fix multiplayer test failure 2021-04-12 13:42:14 +09:00
d6d8ea5b6b Throw when getting a frame of an empty replay 2021-04-12 11:17:56 +09:00
cb947a3b27 Add expected output in test case rather than determining internally 2021-04-11 13:18:25 -04:00
1fd4cb8963 Merge branch 'master' into master 2021-04-11 10:19:16 +03:00
08311abc5e Remove setters, cache CreatePowerStatus() and use a dummy LocalPowerStatus class in test scene 2021-04-10 00:00:21 -04:00
9aa30fb323 Merge pull request #11688 from Syriiin/diffcalc/dynamic-history
Implement dynamic previous hitobject retention for Skill class
2021-04-10 01:25:07 +09:00
e73f3f52d7 Add some more asserts 2021-04-09 18:23:41 +09:00
9ddcd686ac Fix incorrect assert 2021-04-09 18:23:38 +09:00
b49997f531 Add test for no frames 2021-04-09 18:18:23 +09:00
589ce4bdc2 Add test 2021-04-09 18:16:10 +09:00
59d13b0dd3 Fixed indentation
sorry about the style fixes... I'm using JetBrains Rider from now on.
2021-04-08 21:53:42 -04:00
6b6a71d3c3 trim whitespace 2021-04-08 20:39:17 -04:00
493c095535 Fixed code style 2021-04-08 20:28:23 -04:00
6bccb3aab6 Use DI to implement battery detection, add BatteryCutoff property
- Removed the Xamarin.Essentials package from osu.Game and added it to osu.iOS and osu.Android only.
- iOS and Android implementations use Xamarin.Essentials.Battery, while the Desktop implementation
only returns 100% battery for now.
- Added a BatteryCutoff property to PowerStatus so it can be different for each platform (default 20%, 25% on iOS)
2021-04-08 19:55:11 -04:00
70cd018a98 Fix intermittent test failure 2021-04-08 21:38:58 +09:00
1e23f671fa Merge pull request #12321 from smoogipoo/add-spectate-button-and-state
Add multiplayer spectating user state and button
2021-04-08 19:48:58 +09:00
b38d332268 Fix broken test 2021-04-08 16:31:39 +09:00
545156d15c Add regression test coverage 2021-04-08 15:20:53 +09:00