private void param4TB_TextChanged(object sender, EventArgs e) { string propertyName = propertiesListView.SelectedItems[0].Text; float value = GuiTools.TryParseTBFloat(param4TB); currentMaterialList[currentMatIndex].entries[propertyName][3] = value; float max = GetMatParamMax(propertyName); if (enableParam4SliderUpdates) { GuiTools.UpdateTrackBarFromValue(value, param4TrackBar, 0, max); } UpdateButtonColor(); }
private void param1TB_TextChanged(object sender, EventArgs e) { string propertyName = propertiesListView.SelectedItems[0].Text; if (propertyName == "NU_materialHash") { ParseMaterialHashTBText(); } else { float value = GuiTools.TryParseTBFloat(param1TB); currentMaterialList[currentMatIndex].entries[propertyName][0] = value; float max = GetMatParamMax(propertyName, 0); if (enableParam1SliderUpdates) { GuiTools.UpdateTrackBarFromValue(value, param1TrackBar, 0, max); } } UpdatePropertyButtonColor(); }