1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00
osu-lazer/osu.Game.Tests/Visual/Gameplay
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
..
OsuPlayerTestScene.cs Automated pass 2023-06-24 01:00:03 +09:00
SkinnableHUDComponentTestScene.cs Refactor performance points test scene to support skinning 2024-03-05 03:34:25 +03:00
TestSceneAllRulesetPlayers.cs Fix crash when loading player instance without exiting previous instance 2023-09-19 05:09:01 +03:00
TestSceneArgonHealthDisplay.cs Move simulated drain to separate test case 2024-01-11 10:04:37 +01:00
TestSceneAutoplay.cs Fix more nullable inspections 2024-01-29 08:44:27 +01:00
TestSceneBeatmapOffsetControl.cs Migrate BeatmapOffsetControl to use session static directly 2023-12-27 19:19:27 +01:00
TestSceneBeatmapSkinFallbacks.cs Bypass Parent nullability checks for now 2023-10-17 17:48:45 +09:00
TestSceneBezierConverter.cs Fix code style/quality issues 2023-11-13 08:25:27 +01:00
TestSceneBreakTracker.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneClicksPerSecondCalculator.cs Expose rewinding state of IGameplayClocks 2023-07-06 19:08:42 +09:00
TestSceneColourHitErrorMeter.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneCompletionCancellation.cs Add flag to allow backwards seeks in tests 2024-02-29 23:05:28 +08:00
TestSceneDefaultSongProgressGraph.cs Prefix subclasses of DefaultSongProgress with Default 2023-01-18 15:45:16 +09:00
TestSceneDelayedResumeOverlay.cs Add countdown display 2024-03-04 16:50:24 +09:00
TestSceneDrawableScrollingRuleset.cs Fix test value getting clobbered due to stupid stuff 2023-12-06 15:59:29 +09:00
TestSceneDrawableStoryboardSprite.cs Resolve post-merge-conflict issues 2024-05-01 23:57:58 +03:00
TestSceneFailAnimation.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneFailingLayer.cs Fix failing test by setting health on source of truth 2024-01-10 23:09:43 +09:00
TestSceneFailJudgement.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneFrameStabilityContainer.cs Fix formatting? 2024-02-29 23:29:50 +08:00
TestSceneGameplayLeaderboard.cs Fix TestFriendScore intermittently failing due to randomness 2023-09-21 21:12:44 +02:00
TestSceneGameplayMenuOverlay.cs Apply NRT to touched files 2024-02-27 23:58:28 -08:00
TestSceneGameplayRewinding.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneGameplaySamplePlayback.cs Fix seek ending too early in sample playback test 2024-03-12 17:35:39 +08:00
TestSceneGameplaySampleTriggerSource.cs Add flag to allow backwards seeks in tests 2024-02-29 23:05:28 +08:00
TestSceneHitErrorMeter.cs Add flag to allow backwards seeks in tests 2024-02-29 23:05:28 +08:00
TestSceneHoldForMenuButton.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneHUDOverlay.cs Update usages of GameplayClockContainer not using an adjustable source 2023-09-22 16:22:36 +09:00
TestSceneJudgementCounter.cs De-dupe displayed hits in judgement counter 2024-01-15 16:02:59 +09:00
TestSceneKeyBindings.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneKeyCounter.cs Add 100 and 1000 key press step to test overflow 2023-11-02 20:49:01 -07:00
TestSceneLeadIn.cs Reorder command properties to match general format 2024-03-08 21:33:53 +03:00
TestSceneLetterboxOverlay.cs Add TestSceneLetterboxOverlay 2023-02-13 14:17:33 +03:00
TestSceneMedalOverlay.cs Fix yet another failure 2024-02-20 18:42:01 +01:00
TestSceneModValidity.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneNightcoreBeatContainer.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneOverlayActivation.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneParticleExplosion.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneParticleSpewer.cs Fix regression in time jumping behaviour 2023-07-19 13:38:04 +09:00
TestScenePause.cs Add test coverage of gameplay only running forwards 2024-02-29 14:15:32 +08:00
TestScenePauseWhenInactive.cs Partial everything 2022-11-27 00:00:27 +09:00
TestScenePerformancePointsCounter.cs Migrate DefaultPerformancePointsCounter and rename it 2024-03-05 04:35:39 +03:00
TestScenePlayerLoader.cs Merge pull request #26937 from frenzibyte/fix-osu-logo-blocking-load 2024-03-21 21:52:25 +08:00
TestScenePlayerLocalScoreImport.cs Merge pull request #25480 from peppy/2fa 2024-01-29 19:14:55 +09:00
TestScenePlayerMaxDimensions.cs Update ImageSharp usages 2024-03-06 12:13:12 +08:00
TestScenePlayerReferenceLeaking.cs Partial everything 2022-11-27 00:00:27 +09:00
TestScenePlayerScoreSubmission.cs Fix score submission test failures due to checking audio playback validity (again) 2024-01-22 11:15:42 +01:00
TestScenePoolingRuleset.cs Add flag to allow backwards seeks in tests 2024-02-29 23:05:28 +08:00
TestSceneReplay.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneReplayDownloadButton.cs Delete ScoreInfo.HasReplay as no longer needed 2023-10-27 12:39:54 +02:00
TestSceneReplayPlayer.cs Add failing test coverage showing that replay will fail on exiting gameplay 2023-03-16 17:12:46 +09:00
TestSceneReplayRecorder.cs Update R# + fix inspections 2024-02-02 21:00:28 +09:00
TestSceneScrollingHitObjects.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneSkinEditor.cs Add test coverage of skin editor copy-paste 2023-11-23 09:55:16 +09:00
TestSceneSkinEditorComponentsList.cs Fix non-compiling test 2023-07-28 23:36:57 +02:00
TestSceneSkinEditorMultipleSkins.cs Update usages of GameplayClockContainer not using an adjustable source 2023-09-22 16:22:36 +09:00
TestSceneSkinnableAccuracyCounter.cs Refactor performance points test scene to support skinning 2024-03-05 03:34:25 +03:00
TestSceneSkinnableComboCounter.cs Add "Argon" combo counter 2023-10-26 09:09:55 +03:00
TestSceneSkinnableDrawable.cs Revert "Update GetTexture signature rather than creating new overload" 2023-09-19 03:21:19 +03:00
TestSceneSkinnableHealthDisplay.cs Refactor performance points test scene to support skinning 2024-03-05 03:34:25 +03:00
TestSceneSkinnableHUDOverlay.cs Update usages of GameplayClockContainer not using an adjustable source 2023-09-22 16:22:36 +09:00
TestSceneSkinnableRankDisplay.cs Fix test not compiling 2024-06-07 09:54:00 +02:00
TestSceneSkinnableScoreCounter.cs Add "Argon" total score counter 2023-10-26 08:58:25 +03:00
TestSceneSkinnableSound.cs Fix TestSceneSkinnableSound failing 2024-03-09 21:55:00 +03:00
TestSceneSkipOverlay.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneSliderPath.cs Fix code style/quality issues 2023-11-13 08:25:27 +01:00
TestSceneSoloGameplayLeaderboard.cs Massage tests a bit more 2023-05-25 16:38:22 +09:00
TestSceneSongProgress.cs Add a fake load to visual test to restore previous testing behaviour 2024-01-18 14:01:37 +09:00
TestSceneSpectator.cs Improve spectator fail test 2024-02-29 00:09:58 +03:00
TestSceneSpectatorHost.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSpectatorPlayback.cs Update R# + fix inspections 2024-02-02 21:00:28 +09:00
TestSceneStarCounter.cs Add twenty star counter in visual test 2024-02-16 22:47:38 -08:00
TestSceneStoryboard.cs Implement toggling visibility of pass and fail storyboard layers 2024-06-14 13:59:02 +02:00
TestSceneStoryboardCommands.cs Add enough test coverage 2024-03-10 09:01:40 +03:00
TestSceneStoryboardSamplePlayback.cs Add an extra storyboard sample to avoid intermittent failures in TestStoryboardSamplesStopOnSkip 2023-10-31 14:28:40 +09:00
TestSceneStoryboardWithIntro.cs Resolve post-merge-conflict issues 2024-05-01 23:57:58 +03:00
TestSceneStoryboardWithOutro.cs Reorder command properties to match general format 2024-03-08 21:33:53 +03:00
TestSceneUnknownMod.cs Fix TestSceneUnknownMod failing due to null reference 2023-07-25 19:06:13 +09:00
TestSceneUnstableRateCounter.cs Add rate-change UR tests 2023-11-12 11:16:06 -08:00