(d7ca2a2a8) Lock inventory when using a controller

This commit is contained in:
Joonas Rikkonen
2019-04-29 21:04:36 +03:00
parent 46f5bd5b15
commit dfb664e10f
3 changed files with 19 additions and 8 deletions
@@ -793,7 +793,7 @@ namespace Barotrauma
base.Draw(spriteBatch);
if (hideButton != null && hideButton.Visible)
if (hideButton != null && hideButton.Visible && !Locked)
{
hideButton.DrawManually(spriteBatch, alsoChildren: true);
}
@@ -835,6 +835,7 @@ namespace Barotrauma
color = Color.White;
highlightedQuickUseSlot = slots[i];
}
if (Locked) { color *= 0.3f; }
var quickUseIndicator = Items[i].AllowedSlots.Any(a => a == InvSlotType.Any) ?
EquipIndicator : DropIndicator;