mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 21: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 offset = Parsing.ParseInt(split[1]);
|
||||||
var filename = CleanFilename(split[2]);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ using osu.Framework.Graphics.Video;
|
|||||||
using osu.Framework.Timing;
|
using osu.Framework.Timing;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osuTK;
|
|
||||||
|
|
||||||
namespace osu.Game.Storyboards.Drawables
|
namespace osu.Game.Storyboards.Drawables
|
||||||
{
|
{
|
||||||
@ -58,8 +57,7 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
AlwaysPresent = true,
|
AlwaysPresent = true,
|
||||||
Alpha = 0,
|
Alpha = 0
|
||||||
Position = new Vector2(Video.XOffset, Video.YOffset)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
videoClock = new ManualClock();
|
videoClock = new ManualClock();
|
||||||
|
@ -14,16 +14,10 @@ namespace osu.Game.Storyboards
|
|||||||
|
|
||||||
public double StartTime { get; }
|
public double StartTime { get; }
|
||||||
|
|
||||||
public int XOffset { get; }
|
public StoryboardVideo(string path, int offset)
|
||||||
|
|
||||||
public int YOffset { get; }
|
|
||||||
|
|
||||||
public StoryboardVideo(string path, int offset, int xOffset, int yOffset)
|
|
||||||
{
|
{
|
||||||
Path = path;
|
Path = path;
|
||||||
StartTime = offset;
|
StartTime = offset;
|
||||||
XOffset = xOffset;
|
|
||||||
YOffset = yOffset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
|
public Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user