Set muunt editor as viewport container

This commit is contained in:
KillzXGaming 2019-04-06 21:48:09 -04:00
parent 8d9c78cdc9
commit 732811119e

View file

@ -13,7 +13,7 @@ using OpenTK.Graphics.OpenGL;
namespace FirstPlugin.Forms
{
public partial class TurboMunntEditor : UserControl
public partial class TurboMunntEditor : UserControl, IViewportContainer
{
Viewport viewport;
bool IsLoaded = false;
@ -33,6 +33,18 @@ namespace FirstPlugin.Forms
stPanel4.Controls.Add(viewport);
}
public Viewport GetViewport() => viewport;
public void UpdateViewport()
{
if (viewport != null)
viewport.UpdateViewport();
}
public AnimationPanel GetAnimationPanel() => null;
CourseMuuntScene scene;
public void LoadCourseInfo(System.Collections.IEnumerable by, string FilePath)