UIHANDLER OnTooltipAddMoney

102,374pages on
this wiki
Revision as of 23:55, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API

Invoked when money information needs to be added to a tooltip.

Arguments Edit

Number - amount of money to add, in copper pieces.

Example Edit

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

Details Edit

This function was added in v1.7 and 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.

Around Wikia's network

Random Wiki