1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 22:22:54 +08:00

Apply osu!-side video sprite changes

This commit is contained in:
smoogipoo 2020-03-11 18:00:39 +09:00
parent 42bc8bc50d
commit 8eb8572c73
2 changed files with 9 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace osu.Game.Tournament.Components
if (stream != null) if (stream != null)
{ {
InternalChild = video = new VideoSprite(stream) InternalChild = video = new VideoSprite(stream, false)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit, FillMode = FillMode.Fit,

View File

@ -259,11 +259,18 @@ namespace osu.Game.Screens.Menu
private class LazerLogo : CompositeDrawable private class LazerLogo : CompositeDrawable
{ {
private readonly Stream videoStream;
public LazerLogo(Stream videoStream) public LazerLogo(Stream videoStream)
{ {
this.videoStream = videoStream;
Size = new Vector2(960); Size = new Vector2(960);
}
InternalChild = new VideoSprite(videoStream) [BackgroundDependencyLoader]
private void load()
{
InternalChild = new VideoSprite(videoStream, false)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Clock = new FramedOffsetClock(Clock) { Offset = -logo_1 } Clock = new FramedOffsetClock(Clock) { Offset = -logo_1 }