WoW:UIHANDLER OnTooltipAddMoney: Difference between revisions
Jump to navigation
Jump to search
GameTooltip:OnTooltipAddMoney -Documentation by Greenman-
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
: 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. | : 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. | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:15, 4 January 2006
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.