Fixed being unable to drag inventory slots if the subinventory of the slot is highlighted
This commit is contained in:
@@ -186,7 +186,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
if (mouseOn &&
|
if (mouseOn &&
|
||||||
(draggingItem != null || selectedSlot == null || selectedSlot.Slot == slot) &&
|
(draggingItem != null || selectedSlot == null || selectedSlot.Slot == slot) &&
|
||||||
(highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot))
|
(highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot || highlightedSubInventory.Owner == item))
|
||||||
{
|
{
|
||||||
slot.State = GUIComponent.ComponentState.Hover;
|
slot.State = GUIComponent.ComponentState.Hover;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user