Find video by recursive check rather than marker interface

Seems a lot more reliable, and allows falling back to the "main" video
in cases which didn't support this previously.

A next step may be to allow every screen to support a video based on its
screen name, rather than specifying the local `TourneyVideo` every time.
This commit is contained in:
Dean Herbert
2022-07-11 20:42:04 +09:00
parent 00c7101f54
commit 73e924479f
13 changed files with 14 additions and 25 deletions

View File

@ -22,6 +22,8 @@ namespace osu.Game.Tournament.Components
private Video video;
private ManualClock manualClock;
public bool VideoAvailable => video != null;
public TourneyVideo(string filename, bool drawFallbackGradient = false)
{
this.filename = filename;