View Single Post
02/11/23, 12:02 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Each inventory row got a dataEntry table with a subtable data where you'll find the slots info like itemId, bagId, slotIndex etc.
You can use the function moc() to get the control below your mouse. Read moc's .dataEntry.data then and either use the bagId and slot Index with API functions like GetItem*(bagId, slot Index).

Or for your usecase do at best like shown by votan as you want to add something to the tooltip. ItemLink's are a string containing much info of the dataEntry.data of the slot too. You can create an itemLink from a bagId & slot Index via GetItemLink(bagId, slotIndex).

Tools like merTorchbug updated or zgoo can be used to inspect the control below the mouse and view its data and subtables too. They visualize you the contents. Use /tbm above the control (inventory row) or /zgoo mouse
  Reply With Quote