Esempio n. 1
0
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount == 0)
            {
                using (var frm = new ScenePropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }

            var firstNode = Loader.Core.GetSelNode(0);

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.SuperClassID == SClass_ID.Camera)
            {
                using (var frm = new CameraPropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.SuperClassID == SClass_ID.Geomobject)
            {
                using (var frm = new ObjectPropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }

            Loader.Core.PushPrompt("Selected entity does not have Babylon.js specific properties");

            return(true);
        }
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount == 0)
            {
                using (var frm = new ScenePropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

            var firstNode = Loader.Core.GetSelNode(0);

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Camera)
            {
                using (var frm = new CameraPropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Geomobject)
            {
                using (var frm = new ObjectPropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Light)
            {
                using (var frm = new LightPropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

            Loader.Core.PushPrompt("Selected entity does not have Babylon.js specific properties");

            return true;
        }
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount == 0)
            {
                using (var frm = new ScenePropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

            var firstNode = Loader.Core.GetSelNode(0);

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Camera)
            {
                using (var frm = new CameraPropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }

           

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Light)
            {
                using (var frm = new LightPropertiesForm())
                {
                    frm.ShowDialog();
                    return true;
                }
            }
           
            // consider non-recognized objects as meshes so they can be animated intermediate nodes
            using (var frm = new ObjectPropertiesForm())
            {
                frm.ShowDialog();
                return true;
            }
            

        }
Esempio n. 4
0
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount == 0)
            {
                using (var frm = new ScenePropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }

            var firstNode = Loader.Core.GetSelNode(0);

            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Camera)
            {
                using (var frm = new CameraPropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }



            if (firstNode.ObjectRef != null && firstNode.ObjectRef.Eval(0).Obj.SuperClassID == SClass_ID.Light)
            {
                using (var frm = new LightPropertiesForm())
                {
                    frm.ShowDialog();
                    return(true);
                }
            }

            // consider non-recognized objects as meshes so they can be animated intermediate nodes
            using (var frm = new ObjectPropertiesForm())
            {
                frm.ShowDialog();
                return(true);
            }
        }