1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

DI gameplay clock for Storyboards

This commit is contained in:
David Zhao 2019-03-18 15:25:54 +09:00
parent 13f84e8d50
commit 6a26972284

View File

@ -7,6 +7,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Textures;
using osu.Game.IO;
using osu.Game.Screens.Play;
namespace osu.Game.Storyboards.Drawables
{
@ -56,8 +57,11 @@ namespace osu.Game.Storyboards.Drawables
}
[BackgroundDependencyLoader]
private void load(FileStore fileStore)
private void load(FileStore fileStore, GameplayClock clock)
{
if (Clock != null)
Clock = clock;
dependencies.Cache(new TextureStore(new TextureLoaderStore(fileStore.Store), false, scaleAdjust: 1));
foreach (var layer in Storyboard.Layers)