Commit 0710883c authored by Robin Schoonover's avatar Robin Schoonover

Clean up/fix some of the id types.

parent a5549906
local function AddIDLine(tip, name, id)
if not tip._alltheid then
if id and not tip._alltheid then
tip._alltheid = name
tip:AddLine(format("|cff33cc44%s ID:|r %s", name, id))
......@@ -76,42 +76,24 @@ HookTip("SetCurrencyByID", function(self, id)
end)
HookTip("SetCurrencyToken", function(self, idx)
TODO(self, "SetCurrencyToken")
-- TODO There doesn't seem to be a reasonable way to get this
end)
HookTip("SetGlyph", function(self, socket, talent)
TODO(self, "SetGlyph", socket, talent)
local link = GetGlyphLink(socket, talent)
local _,_, id = strfind(link, "|Hglyph:(%d+)|")
AddIDLine(self, "Glyph", id)
end)
HookTip("SetGlyphByID", function(self, id)
AddIDLine(self, "Glyph", id)
end)
HookTip("SetGuildBankItem", function(self, tab, slot)
TODO(self, "SetGuildBankItem")
end)
HookTip("SetHyperlink", function(self, link)
local _, _, name, id = strfind(link, "(%w+):(%d+)")
AddIDLine(self, name:gsub("^%l", string.upper), id)
end)
HookTip("SetInboxItem", function(self, mail, attach)
TODO(self, "SetInboxItem")
end)
HookTip("SetInventoryItem", function(self, unit, slot, nameOnly)
TODO(self, "SetInventoryItem")
end)
HookTip("SetInventoryItemByID", function(self, id)
TODO(self, "SetInventoryItemByID")
end)
HookTip("SetItemByID", function(self, id)
AddIDLine(self, "Item", id)
end)
HookTip("SetLFGCompletionReward", function(self)
TODO(self, "SetLFGCompletionReward")
end)
......@@ -120,10 +102,6 @@ HookTip("SetLFGDungeonReward", function(self)
TODO(self, "SetLFGDungeonReward")
end)
HookTip("SetLFGDungeonShortageReward", function(self)
TODO(self, "SetLFGDungeonShortageReward")
end)
HookTip("SetLootCurrency", function(self)
TODO(self, "SetLootCurrency")
end)
......@@ -148,10 +126,6 @@ HookTip("SetMissingLootItem", function(self)
TODO(self, "SetMissingLootItem")
end)
HookTip("SetPetAction", function(self, idx)
TODO(self, "SetPetAction")
end)
HookTip("SetPossession", function(self, idx)
TODO(self, "SetPossession")
end)
......@@ -204,10 +178,6 @@ HookTip("SetSocketedItem", function(self, ...)
TODO(self, "SetSocketedItem", ...)
end)
HookTip("SetSpellBookItem", function(self, ...)
TODO(self, "SetSpellBookItem", ...)
end)
HookTip("SetTotem", function(self, slot)
TODO(self, "SetTotem", slot)
end)
......
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