- Custom display 'My Spells' now get the player role from the current spec the character is using.
- Framework: table copy won't try to copy '__index' meta table.
This commit is contained in:
@@ -1546,6 +1546,65 @@ Damage Update Status: @INSTANCEDAMAGESTATUS
|
||||
elseif (msg == "update") then
|
||||
_detalhes:CopyPaste ([[https://www.wowinterface.com/downloads/info23056-DetailsDamageMeter8.07.3.5.html]])
|
||||
|
||||
|
||||
elseif (msg == "share") then
|
||||
|
||||
local f = {}
|
||||
|
||||
local elapsed = GetTime()
|
||||
|
||||
local ignoredKeys = {
|
||||
minha_barra = true,
|
||||
__index = true,
|
||||
shadow = true,
|
||||
links = true,
|
||||
__call = true,
|
||||
_combat_table = true,
|
||||
previous_combat = true,
|
||||
owner = true,
|
||||
}
|
||||
|
||||
local keys = {}
|
||||
|
||||
--> copy from table2 to table1 overwriting values
|
||||
function f.copy (t1, t2)
|
||||
if (t1.Timer) then
|
||||
t1, t2 = t1.t1, t1.t2
|
||||
end
|
||||
for key, value in pairs (t2) do
|
||||
if (not ignoredKeys [key] and type (value) ~= "function") then
|
||||
if (key == "targets") then
|
||||
t1 [key] = {}
|
||||
|
||||
elseif (type (value) == "table") then
|
||||
t1 [key] = t1 [key] or {}
|
||||
|
||||
--print (key, value)
|
||||
--local d = C_Timer.NewTimer (1, f.copy)
|
||||
--d.t1 = t1 [key]
|
||||
--d.t2 = t2 [key]
|
||||
--d.Timer = true
|
||||
|
||||
keys [key] = true
|
||||
|
||||
f.copy (t1 [key], t2 [key])
|
||||
else
|
||||
t1 [key] = value
|
||||
end
|
||||
end
|
||||
end
|
||||
return t1
|
||||
end
|
||||
|
||||
--local copySegment = f.copy ({}, _detalhes.tabela_vigente)
|
||||
local copySegment = f.copy ({}, _detalhes.tabela_historico.tabelas [2])
|
||||
|
||||
--the segment received is raw and does not have metatables, need to refresh them
|
||||
local zipData = Details:CompressData (copySegment, "print")
|
||||
|
||||
--print (zipData)
|
||||
--Details:Dump (keys)
|
||||
Details:Dump ({zipData})
|
||||
else
|
||||
|
||||
--if (_detalhes.opened_windows < 1) then
|
||||
|
||||
Reference in New Issue
Block a user