View Single Post
12/13/20, 04:05 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,033
I doubt it's easily doable, maybe not doable at all.
Afaik we can only change the tooltips by adding information at the bottom, or overwriting portions like the traitname (where the addon you have linked only replaced the vanilla text constants with it's own ones so that every vanilla UI part or addon using the same text constants will return the changed texts). But afaik we cannot do this for itemnames or their quality text. The itemnames are determined via another function (e.g. function GetItemName(bagId, slotIndex)) , and not any constants we could overwrite/alter, which is getting the info from the c code, not the lua code. One maybe could hook this function to change the results, but this would be definately kiling some other addons in the end...

What you could do is add texts based on the itemIds, to the tooltips. e.g. use a settings panel to add an itemId, enter a text, save it and the next tooltip adds this text t the tooltip's bottom. But it won't replace the item's name nor the tooltips other text!

Last edited by Baertram : 12/13/20 at 04:08 PM.
  Reply With Quote