
ItemToolTip bugged
useronkel opened this issue ยท 8 comments
Describe the bug
With last version (v25.02.12) the tooltip for weapon enchant covers the whole screen.
Affected Addon: TipTacItemRef
It seems, there is a linefeed missing ;-)
With version v25.01.29 there is nothing wrong :-)
Steps to Reproduce
Install new version ;-)
Expected behavior
Tooltip should not cover the whole screen
Additional context
No response
Version of TipTac Reborn
v25.02.12
Flavor/Version of WoW
11.0.7 TWW
Seems strange to me. I call GameTooltip:AddLine() with wrapText = true
.
Is looking fine on my side:
I think there's another addon which perhaps interferes here. Please try to disable the one or other addon to find the one which is causing this issue. This would help a lot. Thanks!
Thx for your investigation :-)
Found out that BtwLoadOuts is responsible for this behaviour.
It seems that item tooltips triggered from GameTooltip:SetBagItem()
don't consider the word wrap set by GameTooltip:AddLine(). I also have been unable to modify the tooltip afterwards to push it to the intended behavior. Seems to be an internal GameTooltip thing...
I managed to figure out, that the issue is coming from addon BtwLoadOuts after all. This is the code in file Equipment.lua
which causes this error:
Copying the lines of the GameTooltip
basically does work for text and color, but the word wrapping gets lost in this process, e.g. see https://www.wowinterface.com/forums/showthread.php?t=57317.
Moving lines in the tooltip is "bad", because it can cause other side effects too. Usually the desired result can be accomplished with TooltipDataProcessor.AddLinePreCall()
or TooltipDataProcessor.AddLinePostCall()
, something like that:
This will add a line before the item sell price:
Later I will create an issue for BtwLoadOuts to report this. I reopened this ticket to monitor this.
Created a bug issue for BtwLoadOuts: https://legacy.curseforge.com/wow/addons/btwloadouts/issues/97