Exemplo n.º 1
0
 public EmitterShape(EmitterShapeType type, Vector2 size, Vector2 position, Vector2 offset)
 {
     this.type       = type;
     this.size       = size;
     this.position   = position;
     this.offset     = offset;
     this.maskPoints = null;
 }
Exemplo n.º 2
0
 public EmitterShape(EmitterShapeType type, Vector2 size, Vector2 position, Vector2 offset)
 {
     this.type = type;
     this.size = size;
     this.position = position;
     this.offset = offset;
     this.maskPoints = null;
 }
Exemplo n.º 3
0
 public ShapeSelection()
 {
     InitializeComponent();
     shapeType   = EmitterShapeType.Point;
     shapeWidth  = 100;
     shapeHeight = 100;
     for (int i = 0; i < Enum.GetValues(typeof(EmitterShapeType)).Length; i++)
     {
         comboBoxShapes.Items.Add(((EmitterShapeType)i).ToString());
     }
 }
Exemplo n.º 4
0
 private void comboBoxShapes_SelectedIndexChanged(object sender, EventArgs e)
 {
     shapeType = (EmitterShapeType)comboBoxShapes.SelectedIndex;
     LoadProperties();
 }
Exemplo n.º 5
0
 public EmitterShape(EmitterShapeType type)
     : this(type, new Vector2(100), Vector2.Zero, Vector2.Zero)
 {
 }
Exemplo n.º 6
0
 public EmitterShape(EmitterShapeType type)
     : this(type, new Vector2(100), Vector2.Zero, Vector2.Zero)
 {            
 }
Exemplo n.º 7
0
 public ShapeSelection()
 {
     InitializeComponent();
     shapeType = EmitterShapeType.Point;
     shapeWidth = 100;
     shapeHeight = 100;
     for (int i = 0; i < Enum.GetValues(typeof(EmitterShapeType)).Length; i++)
     {
         comboBoxShapes.Items.Add(((EmitterShapeType)i).ToString());
     }
 }
Exemplo n.º 8
0
 private void comboBoxShapes_SelectedIndexChanged(object sender, EventArgs e)
 {
     shapeType = (EmitterShapeType)comboBoxShapes.SelectedIndex;
     LoadProperties();
 }