WoW:UIHANDLER OnTooltipAddMoney: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
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.


----
----
{{Template:WoW API}}
{{WoW API}}
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. -->
[[Category:API Frame Functions|OnTooltipAddMoney]]

Revision as of 05:15, 4 January 2006

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