398 {
399 ItemPreviewWidget iw = ItemPreviewWidget.Cast( w.FindAnyWidget("Render") );
400 if(!iw)
401 {
402 string name = w.GetName();
403 name.Replace(
"PanelWidget",
"Render");
404 iw = ItemPreviewWidget.Cast( w.FindAnyWidget(
name) );
405 }
406 if(!iw)
407 {
408 iw = ItemPreviewWidget.Cast( w );
409 }
411 return;
413 {
415 }
417 {
419 }
420 }
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