diff --git a/.github/labeler.yml b/.github/labeler.yml index 1c2eec549b7408..cf8e3a752658db 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,4 @@ -"Changes: Sprites": +"Changes: Sprites": - changed-files: - any-glob-to-any-file: '**/*.rsi/*.png' @@ -23,6 +23,10 @@ "Changes: Prototypes": - changed-files: # Equiv to any-glob-to-all as long as this has one matcher. If ALL changed files are not C# files, then apply label. - - all-globs-to-all-files: + - all-globs-to-any-file: - "Resources/Prototypes/**/*.yml" - '!Resources/Prototypes/Maps/**/*.yml' + +"Changes: C#": +- changed-files: + - any-glob-to-any-file: '**/*.cs' diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs index 82f6ebd8b59cb0..0545dbbd85c5bb 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs @@ -150,6 +150,13 @@ public void UpdateState(IdCardConsoleBoundUserInterfaceState state) FullNameLabel.Modulate = interfaceEnabled ? Color.White : Color.Gray; FullNameLineEdit.Editable = interfaceEnabled; + + //ss220 format name fix start + FullNameLineEdit.Text = FullNameLineEdit.Text + .Replace('[', '(') + .Replace(']', ')'); + //ss220 format name fix end + if (!fullNameDirty) { FullNameLineEdit.Text = state.TargetIdFullName ?? string.Empty; @@ -159,6 +166,13 @@ public void UpdateState(IdCardConsoleBoundUserInterfaceState state) JobTitleLabel.Modulate = interfaceEnabled ? Color.White : Color.Gray; JobTitleLineEdit.Editable = interfaceEnabled; + + //ss220 format name fix start + JobTitleLineEdit.Text = JobTitleLineEdit.Text + .Replace('[', '(') + .Replace(']', ')'); + //ss220 format name fix end + if (!jobTitleDirty) { JobTitleLineEdit.Text = state.TargetIdJobTitle ?? string.Empty; @@ -194,10 +208,12 @@ private void SubmitData() var jobProtoDirty = _lastJobProto != null && _jobPrototypeIds[JobPresetOptionButton.SelectedId] != _lastJobProto; + var fullNameSafe = FullNameLineEdit.Text.Replace("[", "(").Replace("]", ")"); //ss220 format name fix start + var jobTitleSafe = JobTitleLineEdit.Text.Replace("[", "(").Replace("]", ")"); //ss220 format name fix start + _owner.SubmitData( - FullNameLineEdit.Text, - JobTitleLineEdit.Text, - // Iterate over the buttons dictionary, filter by `Pressed`, only get key from the key/value pair + fullNameSafe, //ss220 format name fix + jobTitleSafe, //ss220 format name fix _accessButtons.ButtonsList.Where(x => x.Value.Pressed).Select(x => x.Key).ToList(), jobProtoDirty ? _jobPrototypeIds[JobPresetOptionButton.SelectedId] : string.Empty); } diff --git a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml index b1f4f5917f419a..8de42587864b69 100644 --- a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml +++ b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml @@ -33,7 +33,8 @@