Commit Graph

59 Commits

Author SHA1 Message Date
6239789188 Fix missing using statements in multiple test scenes 2023-04-03 15:37:10 +09:00
5f9b13a775 Rename Add/AddRange methods as they are no longer conflicting with Container 2023-03-15 18:02:41 +09:00
8908648f97 Fix super-dodgy cast of IEnumerable to Drawable 2023-03-15 18:01:22 +09:00
d806b85a30 revert: make counters an IEnumerable again
As suggested by bdach as this would make the last two commits useless

Refs: 5d15426
2023-03-09 10:25:03 +00:00
8f6df5ea0f Merge branch 'master' into gameplay/key-counter-abstraction 2023-03-07 16:09:45 +09:00
1beec71037 refactor(KeyCounterDisplay): apply suggestions
I also took the freedom to add type checking, as we can't limit the
usage of `Add()` since it's a Container. The exception thrown also
advises of using the suggested `AddTrigger()` instead.
2023-02-22 14:58:27 +00:00
076eb81b21 refactor: rename trigger classes
Makes it better to understand their purpose
2023-02-15 21:46:13 +00:00
a92e42bb84 Rename SkinnableTargetContainer to SkinComponentsContainer
Also use full `SkinComponentsContainerLookup` instead of the sub-type.
This will potentially be useful once we bring in per-ruleset targets.
2023-02-15 18:37:41 +09:00
11d0e185b8 refactor: separate impl of KeyCounterDisplay
This allows for different layouts of display. Idk, maybe someone would
want to mix both variants? (don't do this please). This commit is mostly
prep for further changes.
2023-02-13 01:36:12 +00:00
e8770b84cd Remove no longer necessary interface type 2023-01-18 15:23:55 +09:00
f9dd3f6def Switch test to specifically target the argon verison of the progress bar 2023-01-18 15:23:55 +09:00
45c5bd8403 Simplify HUD test to not require casting to specific ProgressBar type 2023-01-18 14:37:09 +09:00
0f1fe1d683 refactor(hud/gameplay/SongProgress): Add interface to designate SongProgressBars 2023-01-09 21:48:53 +01:00
1bb32ec24d Attempt to fix flaky TestHoldForMenuDoesWorkWhenHidden
Seems like the most likely cause.
2022-11-30 17:35:51 +09:00
7bc8908ca9 Partial everything 2022-11-27 00:00:27 +09:00
8399261c77 Add failing test showing hold for menu not working when HUD is hidden 2022-10-30 21:38:31 +09:00
f5e11343c2 Apply nullability to HUD test scene 2022-10-30 21:25:31 +09:00
f6a8cc3f32 Add test showing broken input in HUD overlay when hidden 2022-10-10 16:05:41 +09:00
704568ae3b Remove remaining usage of GameplayClock 2022-08-15 20:22:36 +09:00
f81c7644b4 Make GameplayClockContainer also an IGameplayClock and expose to remaining tests 2022-08-15 18:30:53 +09:00
c8764cb333 Move all usage of GameplayClock to IGameplayClock 2022-08-15 18:30:53 +09:00
1039338d80 Fix intermittent HUD tests 2022-07-28 17:58:07 +09:00
f8830c6850 Automated #nullable processing 2022-06-17 16:37:17 +09:00
0147a8ecee Add test coverage of HUD components still getting updated when hidden 2022-06-14 18:35:49 +09:00
a8e1c5ba87 Fix remaining cases of incorrect GameplayState construction in tests
Manual attempts to initialise replaced by a new `TestGameplayState`
helper for ease of use.
2022-05-28 15:23:29 +02:00
a8bb696e5b Cache gameplay clock in more places to fix song progress related tests 2022-03-17 21:22:07 +01:00
ac739c9dae Change PerformancePointsCounter resolution requirements to be required
All other similar UI components have required dependencies, so this is
mainly to bring things in line with expectations. I am using this fact
in the skin editor to only show components which can be used in the
current editor context (by `try-catch`ing their
`Activator.CreateInstance`).
2022-03-17 14:56:35 +09:00
3fff7f4b7e Require ScoreProcessor to receive ruleset 2022-03-14 15:51:10 +09:00
342f2d756d Fix test not working intermittently 2021-08-24 15:18:05 +09:00
6ed3e469f7 Fix wrong attribute used for setup method 2021-08-18 06:50:01 +03:00
f592350856 Fix config pollution in HUD overlay test scene 2021-08-18 04:59:08 +03:00
9d99741663 Add failing test case 2021-08-16 06:56:59 +03:00
1cb10c2a22 Remove unnecessary binding logic from HUDOverlay 2021-05-07 17:51:46 +09:00
6c255a0572 Fix drain start time being weirdly incorrect 2021-05-07 17:47:33 +09:00
8e78cac058 Fix HealthProcessor cached as derived type in test 2021-05-07 17:31:29 +09:00
755588258e Update HealthDisplay components to use DI to attach data source 2021-05-07 17:22:45 +09:00
625890381f Update ComboCounter components to use DI to attach data source 2021-05-03 17:43:00 +09:00
7fa5fd5647 Update usages of config with framework changes 2021-03-17 16:10:16 +09:00
43f9c1ebea Fix HUD test having out of date value 2020-10-30 18:26:38 +09:00
0ef1459f4b Merge pull request #10621 from peppy/hud-momentary-visibility
Add momentary HUD toggle
2020-10-30 15:40:54 +09:00
bd7871d9f5 Update test scene to be non-skinnable (and add test covering momentary display) 2020-10-30 14:20:00 +09:00
53bd31c69e Commit missing test pieces 2020-10-30 14:00:07 +09:00
4f8a755518 Add "hide during gameplay" mode 2020-10-20 14:20:44 +09:00
80b1f816c7 Merge branch 'master' into hide-hud-during-break-time 2020-10-20 14:19:04 +09:00
88f74921fb Update with new r# inspections 2020-10-16 12:49:39 +09:00
6eb3176776 Add combo incrementing tests to hud overlay test suite 2020-10-14 19:16:34 +09:00
375146b489 Make HUDOverlay test scene skinnable 2020-10-14 19:16:34 +09:00
fea6389f69 Hide HUD elements during break time by default 2020-07-22 12:41:06 +09:00
0b728f483f Rename base test class to help avoid incorrect reference 2020-03-23 10:01:33 +09:00
0ccbffde8d Use ChildrenOfType instead 2020-02-03 23:43:04 +03:00