- Encounter Details plugin updates.

This commit is contained in:
Tercio
2015-02-19 15:20:44 -02:00
parent 4619612c1c
commit cb09a6dc82
22 changed files with 603 additions and 72 deletions
+3 -3
View File
@@ -220,15 +220,15 @@ local common_events = {
elseif (not object) then
for _, PluginObject in ipairs (_detalhes.RegistredEvents[event]) do
if (PluginObject.__eventtable) then
if (PluginObject.__eventtable) then --if passed a function to callback
if (PluginObject [1].Enabled and PluginObject [1].__enabled) then
if (type (PluginObject [2]) == "function") then
PluginObject [2] (event, ...)
else
PluginObject [1] [PluginObject [2]] (event, ...)
PluginObject [1] [PluginObject [2]] (PluginObject, event, ...)
end
end
else
else --if no function (only registred the event) sent the event to OnDetailsEvent
if (PluginObject.Enabled and PluginObject.__enabled) then
PluginObject:OnDetailsEvent (event, ...)
end