Treat inventory transfer as submitted intent
This commit is contained in:
parent
8848463b49
commit
1e79431a9e
3 changed files with 37 additions and 26 deletions
|
|
@ -99,12 +99,8 @@ public class InventoryMenu : MonoBehaviour
|
|||
HideEquippedItemDetailsSurface();
|
||||
ClearSelectedItemSelection();
|
||||
var otherPanel = panel == InventoryPanels[0] ? InventoryPanels[1] : InventoryPanels[0];
|
||||
if (RequestCargoItemTransfer(cargoEvent.CargoBay, otherPanel, item))
|
||||
{
|
||||
// TODO: SFX: Equip
|
||||
panel.RefreshCells();
|
||||
otherPanel.RefreshCells();
|
||||
}
|
||||
RequestCargoItemTransfer(cargoEvent.CargoBay, otherPanel, item);
|
||||
// TODO: SFX: Equip
|
||||
// else
|
||||
// TODO: SFX: Fail
|
||||
}
|
||||
|
|
@ -135,14 +131,10 @@ public class InventoryMenu : MonoBehaviour
|
|||
HideEquippedItemDetailsSurface();
|
||||
ClearSelectedItemSelection();
|
||||
var otherPanel = panel == InventoryPanels[0] ? InventoryPanels[1] : InventoryPanels[0];
|
||||
if (RequestEquippedItemTransfer(entityEvent.Entity, item, otherPanel))
|
||||
{
|
||||
// TODO: SFX: Unequip
|
||||
panel.RefreshCells();
|
||||
otherPanel.RefreshCells();
|
||||
// else
|
||||
// TODO: SFX: Fail
|
||||
}
|
||||
RequestEquippedItemTransfer(entityEvent.Entity, item, otherPanel);
|
||||
// TODO: SFX: Unequip
|
||||
// else
|
||||
// TODO: SFX: Fail
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue