Changes required for iconComponent engine PR (#16575)
This commit is contained in:
@@ -98,10 +98,12 @@ namespace Content.Client.Kitchen.UI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO just use sprite view
|
||||||
|
|
||||||
Texture? texture;
|
Texture? texture;
|
||||||
if (_entityManager.TryGetComponent(entity, out IconComponent? iconComponent))
|
if (_entityManager.TryGetComponent(entity, out IconComponent? iconComponent))
|
||||||
{
|
{
|
||||||
texture = iconComponent.Icon?.Default;
|
texture = _entityManager.System<SpriteSystem>().GetIcon(iconComponent);
|
||||||
}
|
}
|
||||||
else if (_entityManager.TryGetComponent(entity, out SpriteComponent? spriteComponent))
|
else if (_entityManager.TryGetComponent(entity, out SpriteComponent? spriteComponent))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user