Nukes Iconcomponent (#2102)

* pfew

* preview_state

* ship it

* weird stuff

* fucked up rebasing

* Update submodule

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
Paul Ritter
2020-09-23 22:13:51 +02:00
committed by GitHub
parent 547290e3c2
commit d90c3295e6
203 changed files with 1501 additions and 3851 deletions

View File

@@ -50,7 +50,7 @@ namespace Content.Client.VendingMachines
Texture icon = null;
if(_prototypeManager.TryIndex(entry.ID, out EntityPrototype prototype))
{
icon = IconComponent.GetPrototypeIcon(prototype, _resourceCache).TextureFor(Direction.South);
icon = SpriteComponent.GetPrototypeIcon(prototype, _resourceCache);
}
_items.AddItem($"{itemName} ({entry.Amount} left)", icon);
}