public override void EditProperties()
        {
            frmPropertiesSound EditSound = new frmPropertiesSound(this);

            EditSound.ShowDialog();

            if (EditSound.mbOkWasPressed)
            {
                msName   = EditSound.objNameText.Text;
                mbActive = EditSound.objActiveBox.SelectedIndex == 1?true:false;

                mbLoop     = EditSound.objLoopBox.SelectedIndex == 1?true:false;
                mbRelative = EditSound.objRelativeBox.SelectedIndex == 1?true:false;

                msSoundName = EditSound.objSoundText.Text;
                mfMinDist   = (float)Convert.ToDouble(EditSound.objMinDistText.Text);
                mfMaxDist   = (float)Convert.ToDouble(EditSound.objMaxDistText.Text);
                mlRandom    = Convert.ToInt32(EditSound.objRandomText.Text);
                mlInterval  = Convert.ToInt32(EditSound.objIntervalText.Text);
                mfRelX      = (float)Convert.ToDouble(EditSound.objXText.Text);
                mfRelY      = (float)Convert.ToDouble(EditSound.objYText.Text);
                mfRelZ      = (float)Convert.ToDouble(EditSound.objZText.Text);
                mfVolume    = (float)Convert.ToDouble(EditSound.objVolumeText.Text);
            }

            EditSound.Dispose();
        }
Example #2
0
		public override void EditProperties()
		{
			frmPropertiesSound EditSound = new frmPropertiesSound(this);
			
			EditSound.ShowDialog();

			if(EditSound.mbOkWasPressed)
			{
				msName = EditSound.objNameText.Text;
				mbActive = EditSound.objActiveBox.SelectedIndex==1?true:false;

				mbLoop = EditSound.objLoopBox.SelectedIndex==1?true:false;
				mbRelative = EditSound.objRelativeBox.SelectedIndex==1?true:false;
			
				msSoundName = EditSound.objSoundText.Text;
				mfMinDist = (float)Convert.ToDouble(EditSound.objMinDistText.Text);
				mfMaxDist = (float)Convert.ToDouble(EditSound.objMaxDistText.Text);
				mlRandom = Convert.ToInt32(EditSound.objRandomText.Text);
				mlInterval = Convert.ToInt32(EditSound.objIntervalText.Text);
				mfRelX = (float)Convert.ToDouble(EditSound.objXText.Text);
				mfRelY = (float)Convert.ToDouble(EditSound.objYText.Text);
				mfRelZ = (float)Convert.ToDouble(EditSound.objZText.Text);
				mfVolume = (float)Convert.ToDouble(EditSound.objVolumeText.Text);
			}
			
			EditSound.Dispose();
		}