Updated to BagTips and MailTips
Yesterday or better said early this morning I have updated two of my World of Warcraft Addons, BagTips and MailTips.
I had installed the Addon InfoPanel and from that moment one the tooltips displayed by both BagTips and MailTips did not like right anymore. The names of the items from either a bag or a mail message was displayed using two lines within the tooltip instead of just one. After a bit of searching I found that InfoPanel uses the pipeline character in some displayed text (plugins RaidInfo and Zone).
InfoPanel_SetText(f, "%.1f |cffffff00|||r %.1f", x * 100, y * 100);
Somehow this has an influence of information added to tooltips and fontstrings that use the texture tag to add images to textstring
tooltip:AddDoubleLine( " |T"..value.texture..":0|t "..key, value.count, r, g, b );
It appears that when you are using the method and using the code InfoPanel uses the actual width for the fontstring is not calculated correctly. To quickly workaround this I just add two spaces after the item name like so
tooltip:AddDoubleLine( " |T"..value.texture..":0|t "..key.." ", value.count, r, g, b );
and everything works again as expected.
Now I only need to fix UberInventory, because it has similar issues. Hopefully I can get those issues resolved today as well.
No comments yet.
