@@ -170,6 +170,7 @@ private void InitializeUI()
170170
171171 // Item tooltip
172172 itemTooltip = rootElement . Q < VisualElement > ( "item-tooltip" ) ;
173+ itemTooltip . pickingMode = PickingMode . Ignore ; // Prevent tooltip from intercepting mouse events
173174 tooltipNameLabel = rootElement . Q < Label > ( "tooltip-name" ) ;
174175 tooltipDescriptionLabel = rootElement . Q < Label > ( "tooltip-description" ) ;
175176 tooltipCategoryLabel = rootElement . Q < Label > ( "tooltip-category" ) ;
@@ -269,7 +270,7 @@ private void PopulateInventoryGrid()
269270
270271 // Update quantity label
271272 var quantityLabel = slotRoot . Q < Label > ( "item-quantity" ) ;
272- quantityLabel . text = $ "x { item . Count } ";
273+ quantityLabel . text = $ "{ item . Count } ";
273274
274275 // Get rarity and set background color
275276 var rarity = item . StringProperties . ContainsKey ( "rarity" )
@@ -397,28 +398,35 @@ private void ShowTooltip(IInventoryItem item, Vector2 mousePosition)
397398 tooltipCategoryLabel . text = $ "Category: { item . Category ?? "Uncategorized" } ";
398399 tooltipQuantityLabel . text = $ "Quantity: { item . Count } ";
399400
400- // Display properties if any
401+ // Build comprehensive properties text
401402 var propertiesText = "" ;
403+
404+ // Item Attributes
405+ propertiesText += "Item Attributes:\n " ;
406+ propertiesText += $ " • Stackable: { ( item . Stackable ? "Yes" : "No" ) } \n ";
407+ propertiesText += $ " • Consumable: { ( item . Consumable ? "Yes" : "No" ) } \n ";
408+ propertiesText += $ " • Max Stack: { item . MaxCount } \n ";
409+
410+ // String Properties
402411 if ( item . StringProperties != null && item . StringProperties . Count > 0 )
403412 {
404- propertiesText += "String Properties:\n " ;
413+ propertiesText += "\n String Properties:\n " ;
405414 foreach ( var prop in item . StringProperties )
406415 {
407416 propertiesText += $ " • { prop . Key } : { prop . Value } \n ";
408417 }
409418 }
419+
420+ // Numeric Properties
410421 if ( item . NumericProperties != null && item . NumericProperties . Count > 0 )
411422 {
412- if ( propertiesText . Length > 0 ) propertiesText += "\n " ;
413- propertiesText += "Numeric Properties:\n " ;
423+ propertiesText += "\n Numeric Properties:\n " ;
414424 foreach ( var prop in item . NumericProperties )
415425 {
416426 propertiesText += $ " • { prop . Key } : { prop . Value } \n ";
417427 }
418428 }
419- tooltipPropertiesLabel . text = string . IsNullOrEmpty ( propertiesText )
420- ? "No custom properties."
421- : propertiesText ;
429+ tooltipPropertiesLabel . text = propertiesText ;
422430
423431 // Position tooltip near the mouse cursor, offset to the right
424432 var offsetX = 20f ;
0 commit comments