private void UniRes_Scroll(object sender, EventArgs e) { { int w = BTerrainTexturing.LODToWidth(5 - UniRes.Value); unqLabel.Text = "Unique Tex Res (perChunk): " + w + "x" + w; } mExportSettings.UniqueTexRes = 5 - UniRes.Value; }
private void settingsToControls() { lodFactorSlider.Value = (int)(((mExportSettings.RefineEpsilon - cMinLODVal) / cRange) * 20); lodlabel.Text = lodFactorSlider.Value.ToString(); //AO if (mExportSettings.AmbientOcclusion == AmbientOcclusion.eAOQuality.cAO_Off) { comboBox1.SelectedIndex = 0; } if (mExportSettings.AmbientOcclusion == AmbientOcclusion.eAOQuality.cAO_Worst) { comboBox1.SelectedIndex = 1; } if (mExportSettings.AmbientOcclusion == AmbientOcclusion.eAOQuality.cAO_Medium) { comboBox1.SelectedIndex = 2; } if (mExportSettings.AmbientOcclusion == AmbientOcclusion.eAOQuality.cAO_Best) { comboBox1.SelectedIndex = 3; } if (mExportSettings.AmbientOcclusion == AmbientOcclusion.eAOQuality.cAO_Final) { comboBox1.SelectedIndex = 4; } checkBox1.Checked = mExportSettings.ObjectsInAO; //UNIQUE TEX RES if (mExportSettings.UniqueTexRes > -1) { int w = BTerrainTexturing.LODToWidth(mExportSettings.UniqueTexRes); unqLabel.Text = "Unique Tex Res (perChunk): " + w + "x" + w; UniRes.Value = 5 - mExportSettings.UniqueTexRes; } else { unqLabel.Text = "Unique Tex Res (perChunk): OFF"; UniRes.Value = 2; } }