聊天重做前缓存
This commit is contained in:
@@ -1364,20 +1364,6 @@ function GS:HookTooltips()
|
||||
end
|
||||
end
|
||||
|
||||
local origRef = SetItemRef
|
||||
if origRef then
|
||||
SetItemRef = function(link, text, button)
|
||||
origRef(link, text, button)
|
||||
if IsAltKeyDown() or IsShiftKeyDown() or IsControlKeyDown() then return end
|
||||
pcall(function()
|
||||
local _, _, itemStr = string.find(link or "", "(item:[%-?%d:]+)")
|
||||
if itemStr then
|
||||
ItemRefTooltip._gsScoreAdded = nil
|
||||
GS:AddScoreToTooltip(ItemRefTooltip, itemStr)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user