mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Video no longer modifies storyboard resolution
This commit is contained in:
parent
f2e0fba164
commit
b8f20831a1
@ -90,9 +90,9 @@ namespace osu.Game.Beatmaps.Formats
|
||||
case LegacyEventType.Video:
|
||||
{
|
||||
var offset = Parsing.ParseInt(split[1]);
|
||||
var filename = CleanFilename(split[2]);
|
||||
var path = CleanFilename(split[2]);
|
||||
|
||||
storyboard.GetLayer("Video").Add(new StoryboardVideo(filename, offset));
|
||||
storyboard.GetLayer("Video").Add(new StoryboardVideo(path, offset));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Storyboards
|
||||
|
||||
public Storyboard()
|
||||
{
|
||||
layers.Add("Video", new StoryboardLayer("Video", 4));
|
||||
layers.Add("Video", new StoryboardLayer("Video", 4, false));
|
||||
layers.Add("Background", new StoryboardLayer("Background", 3));
|
||||
layers.Add("Fail", new StoryboardLayer("Fail", 2) { VisibleWhenPassing = false, });
|
||||
layers.Add("Pass", new StoryboardLayer("Pass", 1) { VisibleWhenFailing = false, });
|
||||
@ -57,7 +57,7 @@ namespace osu.Game.Storyboards
|
||||
public DrawableStoryboard CreateDrawable(WorkingBeatmap working = null)
|
||||
{
|
||||
var drawable = new DrawableStoryboard(this);
|
||||
drawable.Width = drawable.Height * (BeatmapInfo.WidescreenStoryboard || GetLayer("Video").Elements.Any() ? 16 / 9f : 4 / 3f);
|
||||
drawable.Width = drawable.Height * (BeatmapInfo.WidescreenStoryboard ? 16 / 9f : 4 / 3f);
|
||||
return drawable;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user