WoW:UIHANDLER OnTooltipAddMoney

Revision as of 05:15, 4 January 2006 by WoWWiki>Muert
GameTooltip:OnTooltipAddMoney -Documentation by Greenman-
GameTooltip:OnTooltipAddMoney(money);

Called when the money amount and graphics are added to the tooltip text.


Arguments
(money)
money
integer - amount of money to add, in copper pieces.

Returns
The function returns nothing.

Example
-- overload the base function with a custom routine
Saved_OnTooltipAddMoney = MyTooltip:GetScript("OnTooltipAddMoney");
MyTooltip:SetScript("OnTooltipAddMoney", My_OnTooltipAddMoney);
-- my custom routine
function My_OnTooltipAddMoney ()
  Saved_OnTooltipAddMoney();
  -- do something extra with the money amount in arg1
end



Details
This function is new for 1700. It replaces the functionality that used to be provided by trapping the TOOLTIP_ADD_MONEY event. It is most commonly used to get merchant sell values when you scan the items in the inventory.



Template:WoW API