1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +08:00

Revert position offset change for separate pull

This commit is contained in:
voidedWarranties 2020-03-08 14:40:36 -07:00
parent 22dd93a4f6
commit 4624582703
3 changed files with 3 additions and 13 deletions

View File

@ -92,10 +92,8 @@ namespace osu.Game.Beatmaps.Formats
{
var offset = Parsing.ParseInt(split[1]);
var filename = CleanFilename(split[2]);
var xOffset = split.Length > 3 ? Parsing.ParseInt(split[3]) : 0;
var yOffset = split.Length > 4 ? Parsing.ParseInt(split[4]) : 0;
storyboard.GetLayer(LegacyStoryLayer.Video).Add(new StoryboardVideo(filename, offset, xOffset, yOffset));
storyboard.GetLayer(LegacyStoryLayer.Video).Add(new StoryboardVideo(filename, offset));
break;
}

View File

@ -11,7 +11,6 @@ using osu.Framework.Graphics.Video;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Screens.Play;
using osuTK;
namespace osu.Game.Storyboards.Drawables
{
@ -58,8 +57,7 @@ namespace osu.Game.Storyboards.Drawables
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AlwaysPresent = true,
Alpha = 0,
Position = new Vector2(Video.XOffset, Video.YOffset)
Alpha = 0
});
videoClock = new ManualClock();

View File

@ -14,16 +14,10 @@ namespace osu.Game.Storyboards
public double StartTime { get; }
public int XOffset { get; }
public int YOffset { get; }
public StoryboardVideo(string path, int offset, int xOffset, int yOffset)
public StoryboardVideo(string path, int offset)
{
Path = path;
StartTime = offset;
XOffset = xOffset;
YOffset = yOffset;
}
public Drawable CreateDrawable() => new DrawableStoryboardVideo(this);