Frank’s Weblog

Old enough to know better, young enough to not care

Fixing UberInventory

Spent a lot of time trying out several things to resolve the earlier mentioned issue I encountered when the InfoPanel Addon was installed.

The image on the left show to incorrect tooltip, the one on the right displays the correct version of the tooltip.

Incorrect Correct

I finally ’solved’ this issue by adding the following code after the real code that adds all the wanted information to the tooltip and just before calling GameTooltip:Show()

local line = getglobal( GameTooltip:GetName().."TextRight"..GameTooltip:NumLines() );
line:SetWidth( line:GetStringWidth()+16 );
line:SetHeight( 12 );
line:SetJustifyH( "RIGHT" );

I haven’t released a new version of UberInventory yet on Curse.com, first need to do a bit more testing to see if this really resolves the issue. But so far it appears to be working

July 8, 2008 Posted by fmeus | AddOns, UberInventory, World of Warcraft, lua | , , , | 6 Comments