Unstable 0.1400.2.0 (a mimir edition)
This commit is contained in:
@@ -296,6 +296,12 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (ItemComponent component in item.Components)
|
||||
{
|
||||
component.AddTooltipInfo(ref description);
|
||||
}
|
||||
|
||||
if (item.Prefab.ShowContentsInTooltip && item.OwnInventory != null)
|
||||
{
|
||||
foreach (string itemName in item.OwnInventory.AllItems.Select(it => it.Name).Distinct())
|
||||
@@ -950,6 +956,15 @@ namespace Barotrauma
|
||||
{
|
||||
return CursorState.Hand;
|
||||
}
|
||||
var container = item?.GetComponent<ItemContainer>();
|
||||
if (container == null) { continue; }
|
||||
if (container.Inventory.visualSlots != null)
|
||||
{
|
||||
if (container.Inventory.visualSlots.Any(slot => slot.IsHighlighted))
|
||||
{
|
||||
return CursorState.Hand;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user