WoW:UIHANDLER OnTooltipAddMoney: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Rewrite to better describe what actually happens - it's a script handler, not a function!) |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
Invoked when money information needs to be added to a tooltip. | |||
== Arguments == | |||
- | :;arg1: Number - amount of money to add, in copper pieces. | ||
== Example == | |||
-- overload the base function with a custom routine | -- overload the base function with a custom routine | ||
Line 34: | Line 19: | ||
== Details == | |||
: 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. | |||
: This function | |||
Revision as of 05:41, 7 August 2006
← Widget API ← OnTooltipAddMoney < OnTooltipAddMoney
Invoked when money information needs to be added to a tooltip.
Arguments
- arg1
- Number - amount of money to add, in copper pieces.
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 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.