예제 #1
0
        public override void EditProperties()
        {
            frmPropertiesProp EditProp = new frmPropertiesProp(this);

            EditProp.ShowDialog();

            if (EditProp.mbOkWasPressed)
            {
                msName    = EditProp.objNameText.Text;
                mbActive  = EditProp.objActiveBox.SelectedIndex == 1?true:false;
                mfWidth   = (float)Convert.ToDouble(EditProp.objWidthText.Text);
                mfHeight  = (float)Convert.ToDouble(EditProp.objHeightText.Text);
                mfZ       = (float)Convert.ToDouble(EditProp.objZText.Text);
                mfAngle   = (float)Convert.ToDouble(EditProp.objAngleText.Text);
                mbFlipH   = EditProp.objFlipHBox.SelectedIndex == 1?true:false;
                mbFlipV   = EditProp.objFlipVBox.SelectedIndex == 1?true:false;
                mlAnimNum = EditProp.objAnimBox.SelectedIndex;
            }

            EditProp.Dispose();
        }
예제 #2
0
파일: cProp.cs 프로젝트: whztt07/HPL1Engine
		public override void EditProperties()
		{
			frmPropertiesProp EditProp = new frmPropertiesProp(this);
			
			EditProp.ShowDialog();

			if(EditProp.mbOkWasPressed)
			{
				msName = EditProp.objNameText.Text;
				mbActive = EditProp.objActiveBox.SelectedIndex==1?true:false;
				mfWidth = (float)Convert.ToDouble(EditProp.objWidthText.Text);
				mfHeight = (float)Convert.ToDouble(EditProp.objHeightText.Text);
				mfZ = (float)Convert.ToDouble(EditProp.objZText.Text);
				mfAngle = (float)Convert.ToDouble(EditProp.objAngleText.Text);
				mbFlipH = EditProp.objFlipHBox.SelectedIndex==1?true:false;
				mbFlipV = EditProp.objFlipVBox.SelectedIndex==1?true:false;
				mlAnimNum = EditProp.objAnimBox.SelectedIndex;
			}
			
			EditProp.Dispose();
		}