From 4dd3a40828573a32618f023e919380c3caad3780 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 19 May 2023 19:13:10 +1200 Subject: [PATCH] Changes required for iconComponent engine PR (#16575) --- Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs b/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs index be2f8440c7..dcfdf2cec3 100644 --- a/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs +++ b/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs @@ -98,10 +98,12 @@ namespace Content.Client.Kitchen.UI return; } + // TODO just use sprite view + Texture? texture; if (_entityManager.TryGetComponent(entity, out IconComponent? iconComponent)) { - texture = iconComponent.Icon?.Default; + texture = _entityManager.System().GetIcon(iconComponent); } else if (_entityManager.TryGetComponent(entity, out SpriteComponent? spriteComponent)) { -- 2.51.2