Lore archive · Warcraft Wiki, 2023 dump
UIHANDLER OnTooltipAddMoney
Last wiki revision 2022-10-20
Invoked when money information needs to be added to a tooltip.
- arg1: Number - amount of money to add, in copper pieces.
-- 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
- 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.
Source
https://warcraft.wiki.gg/wiki/UIHANDLER_OnTooltipAddMoney · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.