WoW:UIHANDLER OnTooltipAddMoney

From AddOn Studio
Revision as of 13:19, 15 September 2005 by WoWWiki>WoWWiki-Greenman
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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