Exemplo n.º 1
0
        public override ShapeBase CreateShapeInstance()
        {
            ParticleGroupShape pgroup = new ParticleGroupShape("ParticleGroup");

            //pgroup.Pitch = -90.0f; // default orientation
            pgroup.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(pgroup);
        }
Exemplo n.º 2
0
        public override ShapeBase Clone()
        {
            ParticleGroupShape copy = (ParticleGroupShape)base.Clone();

            copy._hotSpotWindSpeed = null;
            if (_emitterMeshEntity != null)
            {
                copy._emitterMeshEntity = _emitterMeshEntity.Clone() as ShapeReference;
            }
            return(copy);
        }
Exemplo n.º 3
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="_shape"></param>
 /// <param name="_action"></param>
 public ParticleEditorArgs(ParticleGroupShape _shape, Action _action)
 {
     action = _action;
       ParticleShape = _shape;
 }
Exemplo n.º 4
0
 public override ShapeBase CreateShapeInstance()
 {
     ParticleGroupShape pgroup = new ParticleGroupShape("ParticleGroup");
       //pgroup.Pitch = -90.0f; // default orientation
       pgroup.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return pgroup;
 }
Exemplo n.º 5
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="_shape"></param>
 /// <param name="_action"></param>
 public ParticleEditorArgs(ParticleGroupShape _shape, Action _action)
 {
     action        = _action;
     ParticleShape = _shape;
 }
        public override void DragLeave()
        {
            if (_instance != null)
              {
            _instance.Dispose();
            _instance = null;
              }

              if (_dummyShape != null)
              {
            _dummyShape.Dispose();
            _dummyShape = null;
              }
              EditorManager.ActiveView.UpdateView(false);
        }
 private void createShape(System.Windows.Forms.DragEventArgs e)
 {
     try
       {
     ParticleGroupShape particle = new ParticleGroupShape(System.IO.Path.GetFileNameWithoutExtension(_assetNames[0]));
     particle.EffectFile = System.IO.Path.ChangeExtension(_assetPaths[0], ".xml");
     particle.Position = _cachedPosition;
     _dummyShape = particle;
       }
       catch
       {
       }
 }