- Added a minimize button on the mythic dungeon chart window.

- API: added Details:ResetSegmentData()
- API: added Details:ResetSegmentOverallData()
This commit is contained in:
Tercio
2018-04-06 13:52:50 -03:00
parent 57393e4076
commit 9119b2e287
5 changed files with 142 additions and 37 deletions
+27 -7
View File
@@ -15,6 +15,33 @@ local barra_total = _detalhes.barra_total
local container_pets = _detalhes.container_pets
local timeMachine = _detalhes.timeMachine
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> API
--> reset only the overall data
function _detalhes:ResetSegmentOverallData()
return historico:resetar_overall()
end
--> reset segments and overall data
function _detalhes:ResetSegmentData()
return historico:resetar()
end
--> returns the current active segment
function _detalhes:GetCurrentCombat()
return _detalhes.tabela_vigente
end
--> returns a private table containing all stored segments
function _detalhes:GetCombatSegments()
return _detalhes.tabela_historico.tabelas
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> internal
function historico:NovoHistorico()
local esta_tabela = {tabelas = {}}
_setmetatable (esta_tabela, historico)
@@ -118,13 +145,6 @@ function historico:adicionar_overall (tabela)
end
function _detalhes:GetCurrentCombat()
return _detalhes.tabela_vigente
end
function _detalhes:GetCombatSegments()
return _detalhes.tabela_historico.tabelas
end
function _detalhes:ScheduleAddCombatToOverall (combat)
local canAdd = _detalhes:CanAddCombatToOverall (combat)
if (canAdd) then