Beispiel #1
0
        public override OsbSprite CreateSprite(string path, OsbOrigin origin, Vector2 initialPosition)
        {
            var storyboardObject = new EditorOsbSprite()
            {
                TexturePath     = path,
                Origin          = origin,
                InitialPosition = initialPosition,
            };

            storyboardObjects.Add(storyboardObject);
            displayableObjects.Add(storyboardObject);
            return(storyboardObject);
        }
Beispiel #2
0
 public void Draw(DrawContext drawContext, Camera camera, Box2 bounds, float opacity, Project project, FrameStats frameStats)
 => EditorOsbSprite.Draw(drawContext, camera, bounds, opacity, project, frameStats, this);