From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 19 May 2023 07:13:10 +0000 (+1200) Subject: Changes required for iconComponent engine PR (#16575) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4dd3a40828573a32618f023e919380c3caad3780;p=space-station-14.git Changes required for iconComponent engine PR (#16575) --- 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)) {