This commit is contained in:
Bunny67
2018-06-23 12:32:10 +03:00
parent aed8bec10e
commit 87e43e9a1c
11 changed files with 42 additions and 60 deletions
+8 -8
View File
@@ -84,17 +84,17 @@ function D:Distribute(target, otherServer, isGlobal)
E:StaticPopup_Show("DISTRIBUTOR_WAITING")
end
function D:CHAT_MSG_ADDON(_, _, message, _, sender)
if not Downloads[sender] then return end
local cur = len(message)
local max = Downloads[sender].length
Downloads[sender].current = Downloads[sender].current + cur
function D:CHAT_MSG_ADDON()
if not Downloads[arg4] then return end
local cur = len(arg2)
local max = Downloads[arg4].length
Downloads[arg4].current = Downloads[arg4].current + cur
if Downloads[sender].current > max then
Downloads[sender].current = max
if Downloads[arg4].current > max then
Downloads[arg4].current = max
end
self.statusBar:SetValue(Downloads[sender].current)
self.statusBar:SetValue(Downloads[arg4].current)
end
function D:OnCommReceived(prefix, msg, dist, sender)