TipTac Reborn

TipTac Reborn

1M Downloads

ItemToolTip bugged

useronkel opened this issue ยท 8 comments

commented

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

commented

Thanks for reporting this! ๐Ÿ‘

Can you provide a screenshot?

commented

There it goes ;-)
Image

commented

Seems strange to me. I call GameTooltip:AddLine() with wrapText = true.

Is looking fine on my side:

Image

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!

commented

Thx for your investigation :-)
Found out that BtwLoadOuts is responsible for this behaviour.

commented

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...

commented

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:

Image

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:

Image

This will add a line before the item sell price:

Image

Later I will create an issue for BtwLoadOuts to report this. I reopened this ticket to monitor this.

commented
commented

Fixed with v1.20.8 of BtwLoadOuts.