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:
parent
22dd93a4f6
commit
4624582703
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user