Skip to content

Commit ec25da1

Browse files
committed
dont show item data when dragging
1 parent 80ffd8c commit ec25da1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Intersect.Client.Core/Interface/Game/Inventory/InventoryItem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,16 @@ public void Update()
494494
}
495495

496496
var equipped = Globals.Me.MyEquipment.Any(s => s == _mySlot);
497-
_equipImageBackground.IsVisibleInParent = equipped;
498-
_equipLabel.IsVisibleInParent = equipped;
497+
_equipImageBackground.IsVisibleInParent = !IsDragging && equipped;
498+
_equipLabel.IsVisibleInParent = !IsDragging && equipped;
499499

500-
_quantityLabel.IsVisibleInParent = descriptor.IsStackable && inventorySlot.Quantity > 1;
500+
_quantityLabel.IsVisibleInParent = !IsDragging && descriptor.IsStackable && inventorySlot.Quantity > 1;
501501
if (_quantityLabel.IsVisibleInParent)
502502
{
503503
_quantityLabel.Text = FormatQuantityAbbreviated(inventorySlot.Quantity);
504504
}
505505

506-
_cooldownLabel.IsVisibleInParent = Globals.Me.IsItemOnCooldown(_mySlot);
506+
_cooldownLabel.IsVisibleInParent = !IsDragging && Globals.Me.IsItemOnCooldown(_mySlot);
507507
if (_cooldownLabel.IsVisibleInParent)
508508
{
509509
var itemCooldownRemaining = Globals.Me.GetItemRemainingCooldown(_mySlot);

0 commit comments

Comments
 (0)