312 {
313 if (w == null)
314 {
315 return;
316 }
317
318 ItemPreviewWidget selectedIpw = ItemPreviewWidget.Cast(w.FindAnyWidget("Render"));
319 if (!selectedIpw)
320 {
321 string name = w.GetName();
322 name.Replace(
"PanelWidget",
"Render");
323 selectedIpw = ItemPreviewWidget.Cast(w.FindAnyWidget(
name));
324 }
325
326 if (!selectedIpw)
327 {
328 selectedIpw = ItemPreviewWidget.Cast(w);
329 }
330
332 {
333 return;
334 }
337
338 static int testedFlags = InventoryCombinationFlags.SET_ACTION | InventoryCombinationFlags.PERFORM_ACTION | InventoryCombinationFlags.COMBINE_QUANTITY2 | InventoryCombinationFlags.ADD_AS_CARGO | InventoryCombinationFlags.ADD_AS_ATTACHMENT;
339
340 int chosenInventoryAction = ItemManager.GetChosenCombinationFlag(selectedEntity, targetEntity, testedFlags);
342 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void UpdateFrameColor(EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, Widget w, InventoryLocation il=null)