From 945e38cd6694fd69a331d72ba73b9f213fa0319d Mon Sep 17 00:00:00 2001 From: Llywelwyn Date: Mon, 25 Jul 2022 11:17:06 +0100 Subject: [PATCH] removes suffixes, added spoken languages, fixed namegen - suffix removed - spoken languages added - name gen fixed (had erroneous spaces/something missing spaces) --- CharacterRecordsGenerator/Record.cs | 2 +- CharacterRecordsGenerator/RecordEditor.xaml | 13 +++++++------ CharacterRecordsGenerator/RecordFormatter.cs | 5 ++--- .../RecordFormatterGenerationMethods.cs | 4 ++++ CharacterRecordsGenerator/Utility.cs | 2 +- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CharacterRecordsGenerator/Record.cs b/CharacterRecordsGenerator/Record.cs index dd8ede5..714d22b 100644 --- a/CharacterRecordsGenerator/Record.cs +++ b/CharacterRecordsGenerator/Record.cs @@ -17,7 +17,7 @@ namespace CharacterRecordsGenerator public string LastName { get; set; } = string.Empty; [ProtoMember(4)] - public string NameSuffix { get; set; } = string.Empty; + public string SpokenLanguages { get; set; } = string.Empty; [ProtoMember(5)] public SpeciesType Species { get; set; } = SpeciesType.Human; diff --git a/CharacterRecordsGenerator/RecordEditor.xaml b/CharacterRecordsGenerator/RecordEditor.xaml index c685d29..417bd6c 100644 --- a/CharacterRecordsGenerator/RecordEditor.xaml +++ b/CharacterRecordsGenerator/RecordEditor.xaml @@ -71,11 +71,12 @@ VerticalAlignment="Top" Grid.Column="1" Height="15.96"/> + Text="{Binding Path=Citizenship}" + controls:TextBoxHelper.Watermark="Coalition of Colonies" TabIndex="4" /> - + TextWrapping="Wrap" VerticalAlignment="Top" controls:TextBoxHelper.Watermark="Tau Ceti Basic, Tradeband" + Text="{Binding Path=SpokenLanguages}" TabIndex="8" /> + /// /// - public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : $" {val} "; + public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : $"{val} "; public static string IfEmpty(this string target, string fallback) => target.IsEmpty() ? fallback : target;