Remove EntityUid from debug context menu (#24660)

- Probably confusing if you're not familiar with nentities
- if I need the clientside uid for debugging I can just open VV and it's immediately there on first page.

(cherry picked from commit ca5470918679d73a95404b08fc76d2be088a6876)
This commit is contained in:
metalgearsloth 2024-02-01 19:36:08 +11:00 committed by Debug
parent 0f483e31dd
commit 3d3bd4f4e0
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 2 additions and 3 deletions

View File

@ -79,12 +79,11 @@ namespace Content.Client.ContextMenu.UI
var representation = _entityManager.ToPrettyString(entity);
var name = representation.Name;
var id = representation.Uid.ToString();
var prototype = representation.Prototype;
var playerName = representation.Session?.Name ?? SearchPlayerName(entity);
var deleted = representation.Deleted;
return $"{name} ({id} / {_entityManager.GetNetEntity(entity).ToString()}{(prototype != null ? $", {prototype}" : "")}{(playerName != null ? $", {playerName}" : "")}){(deleted ? "D" : "")}";
return $"{name} ({_entityManager.GetNetEntity(entity).ToString()}{(prototype != null ? $", {prototype}" : "")}{(playerName != null ? $", {playerName}" : "")}){(deleted ? "D" : "")}";
}
private string GetEntityDescription(EntityUid entity)
@ -94,7 +93,7 @@ namespace Content.Client.ContextMenu.UI
return GetEntityDescriptionAdmin(entity);
}
return Identity.Name(entity, _entityManager, _playerManager.LocalPlayer!.ControlledEntity!);
return Identity.Name(entity, _entityManager, _playerManager.LocalEntity!);
}
/// <summary>