Commit 38a31b56 authored by Robin Schoonover's avatar Robin Schoonover

Show Currency ID for currency pane.

parent 86ff4da1
......@@ -71,8 +71,12 @@ addon:HookTip("SetCurrencyByID", function(self, id)
addon:AddIDLine(self, "Currency", id)
end)
addon:HookTip("SetCurrencyToken", function(self, idx)
-- TODO There doesn't seem to be a reasonable way to get this
addon:HookTip("SetCurrencyToken", function(tip, idx)
local link = GetCurrencyListLink(idx)
if link then
local _, _, name, id = strfind(link, "|H(%w+):(%d+)")
addon:AddIDLine(tip, name:gsub("^%l", string.upper), id)
end
end)
addon:HookTip("SetGlyph", function(self, socket, talent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment