Fixed subinventory becoming active in the controlled character's inventory when the slot with the same index is highlighted in a grabbed character's inventory (or vice versa), fixed CPR & grab buttons being drawn on top of subinventories
This commit is contained in:
@@ -68,7 +68,7 @@ namespace Barotrauma
|
||||
|
||||
partial class Inventory
|
||||
{
|
||||
protected class SlotReference
|
||||
public class SlotReference
|
||||
{
|
||||
public readonly Inventory Inventory;
|
||||
public readonly InventorySlot Slot;
|
||||
@@ -133,6 +133,10 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public static SlotReference SelectedSlot
|
||||
{
|
||||
get { return selectedSlot; }
|
||||
}
|
||||
|
||||
protected virtual void CreateSlots()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user