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:
@@ -109,11 +109,11 @@ namespace Content.Client.GameObjects.Components.Kitchen
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (entity.Deleted || !entity.TryGetComponent(out IconComponent icon))
|
||||
if (entity.Deleted || !entity.TryGetComponent(out SpriteComponent spriteComponent))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var solidItem = _menu.IngredientsList.AddItem(entity.Name, icon.Icon.Default);
|
||||
var solidItem = _menu.IngredientsList.AddItem(entity.Name, spriteComponent.Icon);
|
||||
var solidIndex = _menu.IngredientsList.IndexOf(solidItem);
|
||||
_solids.Add(solidIndex, containedSolids[j]);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user