- Plugin Tiny Threat received a options panel and also a minor revamp.
- Timeline plugin got some rework and now its window can be open while in combat. - Plugin You Are Not Prepared, got a options panel. - Added Data Broker for: Combat Time, Player Dps and Player Hps. - Fixed non formatted numbers where it shows its fractional part. - Texts on options panel now auto-resizes depending on the test's lengh. - Slash commands now are multi language, accepting both english and the localized language. - New API: framework:BuildMenu (parent, menu, x_offset, y_offset, height), auto build menu, similar to Ace3 GUI.
This commit is contained in:
@@ -76,18 +76,19 @@ local common_events = {
|
||||
["COMBAT_BOSS_FOUND"] = true,
|
||||
["GROUP_ONENTER"] = true,
|
||||
["GROUP_ONLEAVE"] = true,
|
||||
["ZONE_TYPE_CHANGED"] = true,
|
||||
}
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> register a event
|
||||
|
||||
function _detalhes:RegisterEvent (object, event, func)
|
||||
|
||||
|
||||
if (not _detalhes.RegistredEvents [event]) then
|
||||
if (object.Msg) then
|
||||
object:Msg ("(debug) unknown event", event)
|
||||
object:DelayMsg ("(debug) unknown event", event)
|
||||
else
|
||||
_detalhes:Msg ("(debug) unknown event", event)
|
||||
_detalhes:DelayMsg ("(debug) unknown event", event)
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -197,12 +198,10 @@ local common_events = {
|
||||
function _detalhes:SendEvent (event, object, ...)
|
||||
|
||||
--> send event to all registred plugins
|
||||
|
||||
if (event == "PLUGIN_DISABLED" or event == "PLUGIN_ENABLED") then
|
||||
return object:OnDetailsEvent (event, ...)
|
||||
|
||||
elseif (not object) then
|
||||
|
||||
for _, PluginObject in ipairs (_detalhes.RegistredEvents[event]) do
|
||||
if (PluginObject.__eventtable) then
|
||||
if (PluginObject [1].Enabled and PluginObject [1].__enabled) then
|
||||
|
||||
Reference in New Issue
Block a user