1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00
osu-lazer/osu.Game/Tests
Bartłomiej Dach 67ca7e4135
Implement toggling visibility of pass and fail storyboard layers
Closes https://github.com/ppy/osu/issues/6842.

This is a rather barebones implementation, just to get this in place
somehow at least. The logic is simple - 50% health or above shows pass
layer, anything below shows fail layer.

This does not match stable logic all across the board because I have
no idea how to package that. Stable defines "passing" in like fifty
ways:

- in mania it's >80% HP
  (bb57924c15/osu!/GameModes/Play/Rulesets/Mania/RulesetMania.cs#L333-L336)
- in taiko it's >80% *accuracy*
  (bb57924c15/osu!/GameModes/Play/Rulesets/Taiko/RulesetTaiko.cs#L486-L492)
- there's also the part where "geki additions" will unconditionally set
  passing state
  (bb57924c15/osu!/GameModes/Play/Player.cs#L3561-L3564)
- and also the part where at the end of the map, the final passing state
  is determined by checking whether the user passed more sections than
  failed
  (bb57924c15/osu!/GameModes/Play/Player.cs#L3320)

The biggest issues of these are probably the first two, and they can
*probably* be fixed, but would require a new member on `Ruleset` and I'm
not sure how to make one look, so I'm not doing that at this time
pending collection of ideas on how to do that.
2024-06-14 13:59:02 +02:00
..
Beatmaps Preserve storyboard events when saving a beatmap in the editor 2024-04-30 00:01:56 +08:00
Gameplay Implement toggling visibility of pass and fail storyboard layers 2024-06-14 13:59:02 +02:00
Rulesets Mark CreateConfig() return type as nullable because it's not required all ruleset to implement. 2022-07-10 10:15:27 +08:00
Visual Add client/server models & operations for "daily challenge" feature 2024-05-17 10:58:08 +02:00
CleanRunHeadlessGameHost.cs Update IPC usages 2024-01-18 19:45:36 +09:00
FlakyTestAttribute.cs Fix flaky tests not running at all with environment variable set 2022-07-07 04:24:10 +03:00
OsuTestBrowser.cs Remove test scene background stack and use new ChangeBackgroundColour method 2023-10-12 14:08:31 +09:00
PollingChatClient.cs Decouple notifications websocket handling from chat operations 2024-01-25 14:47:29 +01:00
TestChatClientConnector.cs Rename PollingChatClientConnector to better describe usage 2024-01-29 16:56:28 +09:00
VisualTestRunner.cs Update IPC usages 2024-01-18 19:45:36 +09:00