- Added an option to disable the all-displays window (right click on title bar).

- Added an option to suppress segment changes after killing a boss encounter (experimental).
- Fixed an issue with bar animations starting from the middle of the bar.
- Fixed buffs and spell cast start on weakauras creator tool.
This commit is contained in:
Tercio
2015-10-15 12:19:35 -03:00
parent 9f5d387938
commit f9271a6921
18 changed files with 432 additions and 142 deletions
+40
View File
@@ -1050,6 +1050,15 @@
_detalhes.switch:OnRemoveCustom (index)
end
--> export for plugins
function _detalhes:RemoveCustomObject (object_name)
for index, object in ipairs (_detalhes.custom) do
if (object.name == object_name) then
return atributo_custom:RemoveCustom (index)
end
end
end
function _detalhes:ResetCustomFunctionsCache()
table.wipe (_detalhes.custom_function_cache)
end
@@ -1097,6 +1106,37 @@
atributo_custom:UpdateDamageDoneBracket()
atributo_custom:UpdateHealingDoneBracket()
end
function _detalhes:InstallCustomObject (object)
local have = false
if (object.script_version) then
for _, custom in ipairs (_detalhes.custom) do
if (custom.name == object.name and (custom.script_version and custom.script_version >= object.script_version) ) then
have = true
break
end
end
else
for _, custom in ipairs (_detalhes.custom) do
if (custom.name == object.name) then
have = true
break
end
end
end
if (not have) then
for i, custom in ipairs (_detalhes.custom) do
if (custom.name == object.name) then
table.remove (_detalhes.custom, i)
break
end
end
setmetatable (object, _detalhes.atributo_custom)
object.__index = _detalhes.atributo_custom
_detalhes.custom [#_detalhes.custom+1] = object
end
end
function _detalhes:AddDefaultCustomDisplays()