mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Render video as a part of the storyboard
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user