PHP код:
local iconFrame = CreateFrame("Frame", nil, ItemRefTooltip)
iconFrame:SetWidth(30)
iconFrame:SetHeight(30)
iconFrame:SetPoint("TOPRIGHT", ItemRefTooltip, "TOPLEFT", -3, 0)
iconFrame:SetBackdrop(backdrop)
iconFrame:SetBackdropColor(0, 0, 0, 0.5)
iconFrame:SetBackdropBorderColor(0, 0, 0, 1)
iconFrame.icon = iconFrame:CreateTexture(nil, "DIALOG")
iconFrame.icon:SetPoint("TOPLEFT", 1, -1)
iconFrame.icon:SetPoint("BOTTOMRIGHT", -1, 1)
iconFrame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93)
hooksecurefunc("SetItemRef", function(link, text, button)
if iconFrame:IsShown() then
iconFrame:Hide()
end
local type, id = string.match(link, "(%l+):(%d+)")
if type == "item" then
iconFrame.icon:SetTexture(select(10, GetItemInfo(id)))
iconFrame:Show()
elseif type == "spell" then
iconFrame.icon:SetTexture(select(3, GetSpellInfo(id)))
iconFrame:Show()
elseif type == "achievement" then
iconFrame.icon:SetTexture(select(10, GetAchievementInfo(id)))
iconFrame:Show()
end
end)
в какой нибудь аддон пихаешь или делаешь своё http://forum.wowcircle.com/showthread.php?t=397475