throttling

This commit is contained in:
Manuel Simon Hirsig
2017-01-03 20:16:16 +01:00
parent 1cc6ba0c9c
commit 981f88f9e7
+11 -1
View File
@@ -185,7 +185,17 @@ function hook.InboxFrameItem_OnEnter()
GameTooltip:Show()
end
CreateFrame('Frame', InboxFrame):SetScript('OnUpdate', function() if not Inbox_opening then CheckInbox() end end)
do
local x = 0
CreateFrame('Frame', InboxFrame):SetScript('OnUpdate', function()
if x > 0 then
x = x - 1
elseif not Inbox_opening then
x = 50
CheckInbox()
end
end)
end
function Inbox_Load()
MailItem1:SetPoint('TOPLEFT', InboxFrame, 'TOPLEFT', 48, -80)