add unregister messages to gladdy messages
This commit is contained in:
parent
83763aa016
commit
0d9e9735da
10
Gladdy.lua
10
Gladdy.lua
@ -191,6 +191,16 @@ function Gladdy:NewModule(name, priority, defaults)
|
|||||||
self.messages[message] = func or message
|
self.messages[message] = func or message
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module.UnregisterMessage = function(self, message)
|
||||||
|
self.messages[message] = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
module.UnregisterAllMessages = function(self)
|
||||||
|
for msg,_ in pairs(self.messages) do
|
||||||
|
self.messages[msg] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module.GetOptions = function()
|
module.GetOptions = function()
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
@ -53,6 +53,7 @@ function Announcements:Initialize()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Announcements:Reset()
|
function Announcements:Reset()
|
||||||
|
self:UnregisterAllMessages()
|
||||||
self.enemy = {}
|
self.enemy = {}
|
||||||
self.throttled = {}
|
self.throttled = {}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user