public CharacterSaveChooseWindow(string text) { InitializeComponent(); _dats = MakeSaveDatList.Make(); foreach (var saveDat in _dats) { var gender = saveDat.CustomizeBytes[1] == 1 ? "♀️" : "♂️"; CharacterListbox.Items.Add( $"Save #{saveDat.CharacterSaveNumber}: {ByteToRaceDict[saveDat.CustomizeBytes[0]]} - {ByteToTribeDict[saveDat.CustomizeBytes[4]]} {gender} - {saveDat.Description}"); } }
public CharacterSaveChooseWindow() { InitializeComponent(); _dats = MakeSaveDatList.Make(); foreach (var saveDat in _dats) { // System.Console.WriteLine($"Race: {saveDat.CustomizeBytes[0]}"); // System.Console.WriteLine($"Tribe: {saveDat.CustomizeBytes[4]}"); var gender = saveDat.CustomizeBytes[1] == 1 ? "♀️" : "♂️"; CharacterListbox.Items.Add( $"Save #{saveDat.CharacterSaveNumber}: {ByteToRaceDict[saveDat.CustomizeBytes[0]]} - {ByteToTribeDict[saveDat.CustomizeBytes[4]]} {gender} - {saveDat.Description}"); } }