public void SetProps(BallProps props) { _exposedProps = props; chkRandomVelocity_CheckedChanged(this, new EventArgs()); vectorPanel1.Multiplier = double.Parse(txtMaxVelocity.Text); txtMaxVelocity_TextChanged(this, new EventArgs()); txtAngularVelocityLeft_TextChanged(this, new EventArgs()); txtAngularVelocityRight_TextChanged(this, new EventArgs()); trkAngularVelocity_Scroll(this, new EventArgs()); radAngularVelocity_CheckedChanged(this, new EventArgs()); }
private Ball _drawingBall = null; // ball is the lowest base class. it could also be solidball or rigidbody //private double _diminishPercent = 1d; #endregion #region Constructor public BallAdder(LargeMapViewer2D picturebox, ObjectRenderer renderer, BallProps newBallProps, SimpleMap map, MyVector boundryLower, MyVector boundryUpper, List <long> tempObjects) { _picturebox = picturebox; _renderer = renderer; _newBallProps = newBallProps; _map = map; _boundryLower = boundryLower; _boundryUpper = boundryUpper; _tempObjects = tempObjects; _picturebox.MouseDown += new MouseEventHandler(picturebox_MouseDown); _picturebox.MouseUp += new MouseEventHandler(picturebox_MouseUp); _picturebox.MouseMove += new MouseEventHandler(picturebox_MouseMove); }
private Ball _drawingBall = null; // ball is the lowest base class. it could also be solidball or rigidbody //private double _diminishPercent = 1d; #endregion #region Constructor public BallAdder(LargeMapViewer2D picturebox, ObjectRenderer renderer, BallProps newBallProps, SimpleMap map, MyVector boundryLower, MyVector boundryUpper, List<long> tempObjects) { _picturebox = picturebox; _renderer = renderer; _newBallProps = newBallProps; _map = map; _boundryLower = boundryLower; _boundryUpper = boundryUpper; _tempObjects = tempObjects; _picturebox.MouseDown += new MouseEventHandler(picturebox_MouseDown); _picturebox.MouseUp += new MouseEventHandler(picturebox_MouseUp); _picturebox.MouseMove += new MouseEventHandler(picturebox_MouseMove); }
public void SetProps(BallProps props, bool allowStationaryRotatable) { _exposedProps = props; toolTip1.SetToolTip(chkTemporary, "Disapears after collision"); // Add combo items cboCollisionStyle.Items.Add(CollisionStyle.Standard.ToString()); cboCollisionStyle.Items.Add(CollisionStyle.Stationary.ToString()); if (allowStationaryRotatable) { cboCollisionStyle.Items.Add(CollisionStyle.StationaryRotatable); } cboCollisionStyle.Items.Add(CollisionStyle.Ghost.ToString()); // Store the collision style cboCollisionStyle.Text = CollisionStyle.Standard.ToString(); cboCollisionStyle_SelectedIndexChanged(this, new EventArgs()); // Store the size Size_CheckedChanged(this, new EventArgs()); trkSize_Scroll(this, new EventArgs()); }
public void SetProps(BallProps props) { _exposedProps = props; }