You are surrounded by unknown suspicious individuals, my lord. (#1710)

* base identity hide

* ui

* Better UI

* store data in Mind

* disable arrivals an leave announcement

* tips updated

* Enhance identity recognition and examination feedback

Added logic to display remembered character names during examination and improved the process for remembering character names on map initialization. Also updated localization files to include new examination feedback strings. Minor refactoring and bug fixes in identity recognition systems.

* Update CP14SharedIdentityRecognitionSystem.cs

* fix
This commit is contained in:
Red
2025-08-27 17:34:10 +03:00
committed by GitHub
parent 22edc77004
commit 1eead99543
22 changed files with 462 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
using System.Globalization;
using System.Linq;
using System.Numerics;
using Content.Client._CP14.IdentityRecognition;
using Content.Client.Administration.Managers;
using Content.Client.Chat;
using Content.Client.Chat.Managers;
@@ -820,6 +821,21 @@ public sealed partial class ChatUIController : UIController
public void ProcessChatMessage(ChatMessage msg, bool speechBubble = true)
{
//CP14 transform message on clientside
if (_player.LocalEntity is not null && msg.SenderEntity.IsValid())
{
var ev = new CP14ClientTransformNameEvent(msg.SenderEntity);
_ent.EventBus.RaiseLocalEvent(_player.LocalEntity.Value, ev);
if (ev.Handled)
{
var oldName = SharedChatSystem.GetStringInsideTag(msg, "Name");
var newName = ev.Name;
msg.WrappedMessage = msg.WrappedMessage.Replace($"[Name]{oldName}[/Name]", $"[Name]{newName}[/Name]");
}
}
//CP14 end
// color the name unless it's something like "the old man"
if ((msg.Channel == ChatChannel.Local || msg.Channel == ChatChannel.Whisper) && _chatNameColorsEnabled)
{