View Single Post
12/13/20, 04:23 PM   #3
tawniey
Join Date: Dec 2015
Posts: 7
Originally Posted by Baertram View Post
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!
Aaah, okay. I confess, I am not fluent enough to understand how much of addon coding functions, but what you've said makes sense. I appreciate the explanation!

Personally, even if all that could be done is adding an additional tooltip to an item in the same font and text size as the typical flavor-text in tooltips, I'd still consider that a huge win! I'm just a story nerd who'd like to be able to remind myself of storytelling-significance to objects I have my characters carry around, or weapons I choose to have them use.
  Reply With Quote