1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Simplify HUD test to not require casting to specific ProgressBar type

This commit is contained in:
Dean Herbert 2023-01-18 14:37:09 +09:00
parent f1989ba24d
commit 45c5bd8403

View File

@ -213,17 +213,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("attempt seek", () =>
{
switch (getSongProgress())
{
case SongProgressBar defaultBar:
InputManager.MoveMouseTo(defaultBar);
break;
case ArgonSongProgressBar argonBar:
InputManager.MoveMouseTo(argonBar);
break;
}
InputManager.MoveMouseTo(getSongProgress() as Drawable);
InputManager.Click(MouseButton.Left);
});