Change from BDL to Resolved

This commit is contained in:
Sebastian Krajewski 2020-08-08 02:43:39 +02:00
parent e0ae2b3ebf
commit 7cf225520f

View File

@ -20,7 +20,8 @@ namespace osu.Game.Storyboards.Drawables
private Sprite drawableSprite;
private TextureStore storyboardTextureStore;
[Resolved]
private TextureStore storyboardTextureStore { get; set; }
private string texturePath;
@ -121,7 +122,7 @@ namespace osu.Game.Storyboards.Drawables
}
[BackgroundDependencyLoader]
private void load(ISkinSource skin, IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
private void load(IBindable<WorkingBeatmap> beatmap)
{
InternalChild = drawableSprite = new Sprite
{
@ -129,8 +130,6 @@ namespace osu.Game.Storyboards.Drawables
Origin = Anchor.Centre
};
storyboardTextureStore = textureStore;
texturePath = beatmap.Value.BeatmapSetInfo?.Files?.Find(f => f.Filename.Equals(Sprite.Path, StringComparison.OrdinalIgnoreCase))?.FileInfo.StoragePath;
Sprite.ApplyTransforms(this);