392 {
393 ItemPreviewWidget iw = ItemPreviewWidget.Cast(w.FindAnyWidget("Render"));
394 if (!iw)
395 {
396 string name = w.GetName();
397 name.Replace(
"PanelWidget",
"Render");
398 iw = ItemPreviewWidget.Cast(w.FindAnyWidget(
name));
399 }
400 if (!iw)
401 {
402 iw = ItemPreviewWidget.Cast(w);
403 }
405 return;
407 {
409 }
411 {
413 }
414 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
FindInventoryLocationType
flags for searching locations in inventory
proto native GameInventory GetInventory()
proto native bool CanAddAttachment(notnull EntityAI e)
Check if attachment can be added to any slot.
bool CanAddEntityToInventory(notnull EntityAI item, int flag=FindInventoryLocationType.ANY)
ask inventory if item could be placed somewhere in inventory