Render video as a part of the storyboard

This commit is contained in:
voidedWarranties
2020-03-07 21:32:03 -08:00
parent d68d7edea3
commit 76c832518f
21 changed files with 136 additions and 719 deletions

View File

@ -5,13 +5,13 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using osuTK;
using osuTK.Graphics;
using osu.Framework.Graphics;
using osu.Framework.Utils;
using osu.Game.Beatmaps.Legacy;
using osu.Game.IO;
using osu.Game.Storyboards;
using osu.Game.Beatmaps.Legacy;
using osu.Framework.Utils;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Beatmaps.Formats
{
@ -88,6 +88,15 @@ namespace osu.Game.Beatmaps.Formats
switch (type)
{
case LegacyEventType.Video:
{
var offset = Parsing.ParseInt(split[1]);
var filename = CleanFilename(split[2]);
storyboard.GetLayer("Video").Add(new StoryboardVideo(filename, offset));
break;
}
case LegacyEventType.Sprite:
{
var layer = parseLayer(split[1]);