// saving settings after statics creation private void SaveStatSettings() { INIFile iniFile = new INIFile(Statics.iniFileName, iniStatTab, true); iniFile.setKey("MinStat", (double)udStatMinSize.Value); iniFile.setKey("GrassDens", (double)udStatGrassDensity.Value); iniFile.setKey("StatMesh", cmbStatSimplifyMeshes.SelectedIndex); iniFile.setKey("SkipMip", cmbStatSkipMipLevels.SelectedIndex); iniFile.setKey("Activators", cbStatActivators.Checked); iniFile.setKey("MiscObj", cbStatIncludeMisc.Checked); iniFile.setKey("UseStatOvr", cbStatOverrideList.Checked); iniFile.setKey("StatIntExt", cbStatIntExt.Checked); iniFile.setKey("StatIntWater", cbStatIntWater.Checked); List<string> tempList = new List<string>(); foreach (string s in lbStatOverrideList.Items) tempList.Add(s); iniFile.setSectOrderedList(iniDLWizardStatOvr, tempList.ToArray()); iniFile.save(); }
private void bSave_Click(object sender,EventArgs e) { INIFile iniFile = new INIFile(Statics.iniFileName, iniShaderWhat, true); List<string> tempList = new List<string>(); foreach (string s in lbSelected.Items) tempList.Add(s); iniFile.setSectOrderedList(iniShaderChain, tempList.ToArray()); iniFile.save(); Close(); }