private void createBtn_Click(object sender, RoutedEventArgs e) { int langIndex = tabParticleSel.SelectedIndex; particleSel = tabParticleSel.SelectedIndex; string particleOut = "/particle "; //particle particleOut += asd.getParticle(langIndex) + " "; //local if (tabParticleXNum.IsChecked == true) { particleOut += "~ ~ ~ "; } else { particleOut += tabParticleX.Value + " " + tabParticleY.Value + " " + tabParticleZ.Value + " "; } //dyn particleOut += tabParticleDx.Value + " " + tabParticleDy.Value + " " + tabParticleDz.Value + " "; //speed & count particleOut += tabParticleSpeed.Value + " " + tabParticleCount.Value; //mode if (modeNormal.IsChecked.Value || modeTarget.IsChecked.Value) { if (modeNormal.IsChecked.Value) { particleOut += " normal "; } if (modeTarget.IsChecked.Value) { particleOut += " force "; } //player particleOut += atBox.Text; //param particleOut += " " + tabParticleID.Value + " " + tabParticleMeta.Value; } finalStr = particleOut; }