Remove usages of obsolete SpriteView.Sprite.set() (#19500)

This commit is contained in:
Visne
2023-08-25 03:16:46 +02:00
committed by GitHub
parent 3c667b6f7e
commit 11a57be230
20 changed files with 72 additions and 95 deletions

View File

@@ -107,12 +107,12 @@ namespace Content.Client.ContextMenu.UI
// _entityManager.Deleted() implicitly checks all of these.
if (_entityManager.Deleted(entity))
{
Icon.Sprite = null;
Icon.SetEntity(null);
Text = string.Empty;
}
else
{
Icon.Sprite = _entityManager.GetComponentOrNull<SpriteComponent>(entity);
Icon.SetEntity(entity);
Text = GetEntityDescription(entity.Value);
}
}