Run when an amount of money should be added to the tooltip.
Run when an amount of money should be added to the tooltip. This happens when the tooltip is set to display an item for which an amount of money is displayed (e.g. an item with a vendor sell price, or an equipped item while the cursor is in item-repair mode).
OnTooltipAddMoney(self, amount, maxAmount)
self - Reference to the widget for which the script was run (gametooltip)
amount - Amount of money to be added to the tooltip (in copper) (number)
maxAmount - A second amount of money to be added to the tooltip (in copper); if non-nil, the first amount is treated as the minimum and this amount as the maximum of a price range (number)
Examples: -- Display the amount of copper that is added to the tooltip GameTooltip:HookScript("OnTooltipAddMoney", function(self, amount) DEFAULT_CHAT_FRAME:AddMessage(format("Money: %d", amount)) end)