Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-01-20, 09:34 PM   #1
devilArt
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 51
Quest about remove 'sell price' part from tooltip

I use following codes to remove 'sell price' line from tooltip
Now 'sell price' line is gone
but still there is a gap in the tooltip

lua Code:
  1. function TOOLTIP:RemoveMoneyLine()
  2.   if not self.shownMoneyFrames then return end
  3.   GameTooltip_ClearMoney(self)
  4. end
  5. GameTooltip:HookScript('OnTooltipSetItem', TOOLTIP.RemoveMoneyLine)


So I checked blizz source code

lua Code:
  1. function SetTooltipMoney(frame, money, type, prefixText, suffixText)
  2.     GameTooltip_AddBlankLinesToTooltip(frame, 1);
  3.     ... more code ...
  4. end

Blizz insert a blank line into 'sell price' part, and GameTooltip_ClearMoney(self) cant remove it
then I stuck here, any solutions?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Quest about remove 'sell price' part from tooltip

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off