Пример #1
0
        public ObjectAnimView(string path, Timelines.ObjectAnimTimelineDocument doc)
        {
            InitializeComponent();
            if (path != null)
            {
                Text = System.IO.Path.GetFileName(path);
            }
            else
            {
                Text = "New Object Animation".Localize();
            }
            paletteTree      = new TreeControl();
            paletteTree.Dock = DockStyle.Fill;
            subSplitter.Panel1.Controls.Add(paletteTree);

            timeline      = new Sce.Atf.Controls.Timelines.Direct2D.D2dTimelineControl(doc);
            timeline.Dock = DockStyle.Fill;
            subSplitter.Panel2.Controls.Add(timeline);
            new D2dSelectionManipulator(timeline);
            new D2dMoveManipulator(timeline);
            new D2dScaleManipulator(timeline);
            splitManipulator = new D2dSplitManipulator(timeline);
            D2dSnapManipulator     snapManipulator     = new D2dSnapManipulator(timeline);
            D2dScrubberManipulator scrubberManipulator = new D2dScrubberManipulator(timeline);

            //// Allow the snap manipulator to snap objects to the scrubber.
            snapManipulator.Scrubber = scrubberManipulator;

            Urho3D      = new UrhoBackend.UrControl("Data/Scripts/ObjectAnimEditor.as");
            Urho3D.Dock = DockStyle.Fill;
            Urho3D.SubscribeCallback(this);
            topSplitter.Panel1.Controls.Add(Urho3D);
        }
Пример #2
0
 public MaterialView(IDocument doc, string file) : base(doc)
 {
     InitializeComponent();
     Urho3D = new EditorCore.RenderView.OrbitZoomRender(doc, "Data/Scripts/MaterialEditor.as");
     Urho3D.SubscribeCallback(this);
     Urho3D.Dock = DockStyle.Fill;
     if (file != null)
     {
         Urho3D.ExecuteMethod = "void StartForFile(String)";
         Urho3D.ExecuteParams = new UrhoBackend.VariantVector();
         Urho3D.ExecuteParams.Add(new UrhoBackend.Variant(file));
     }
     Controls.Add(Urho3D);
 }