private void saveAppearButton_Click(object sender, EventArgs e) { var saveWindow = new SaveFileDialog(); saveWindow.Filter = "Cyberpunk 2077 Character Preset|*.preset"; if (saveWindow.ShowDialog() == DialogResult.OK) { File.WriteAllText(saveWindow.FileName, JsonConvert.SerializeObject(activeSaveFile.GetAppearanceContainer())); statusLabel.Text = "Appearance preset saved."; } }
public void SetMainSections() { MainSections = new[] { activeSave.GetAppearanceContainer().FirstSection, activeSave.GetAppearanceContainer().SecondSection, activeSave.GetAppearanceContainer().ThirdSection }; }