container_segments 424 error: now it is ensuring to wipe the combatObject that got removed from containerSegments

This commit is contained in:
Tercio Jose
2023-06-06 17:36:13 -03:00
parent c7a1e06638
commit 0c397b5816
16 changed files with 97 additions and 71 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
--parei (20/11) declarando o header, precisa agora modificar a config do header quando atualizar
--fazer uma função para alterar a config header.columns para adicionar ou remover attributos
--fazer uma função para alterar a config header.columns para add ou remover attributos
--próximo: ao criar uma janela AllInOne, precisa criar uma nova instancia no Details!
--na tabela de configuração precisa dizer que é uma all in one e o details vai chamar esse arquivo pra atualizar
@@ -7,7 +7,7 @@
--(ainda aqui) parei atualizando o height da titlebar
--proximo passo: atualizar o resto das propriedade da title bar
--fazer as funcções para setar os valores na titleBar
--verificar se precisa adicionar funcções no mixin dos bottões como SetTexture, SetVertexColor
--verificar se precisa add funcções no mixin dos bottões como SetTexture, SetVertexColor
--tem que fazer a função de ShowWindow() e ToggleWindows()
--fazer a criação do header e fazer o header ser redirecionado (aumentar ou diminuir o tamanho by dragging)
+3 -3
View File
@@ -8981,13 +8981,13 @@ end
gameCooltip:AddLine(Loc["STRING_ERASE_DATA_OVERALL"], nil, 1, "white", nil, Details.font_sizes.menus, Details.font_faces.menus)
gameCooltip:AddIcon([[Interface\Buttons\UI-StopButton]], 1, 1, 14, 14, 0, 1, 0, 1, "orange")
gameCooltip:AddMenu(1, Details.tabela_historico.resetar_overall)
gameCooltip:AddMenu(1, Details.tabela_historico.ResetOverallData)
gameCooltip:AddLine("$div", nil, 1, nil, -5, -11)
gameCooltip:AddLine(Loc["STRING_ERASE_DATA"], nil, 1, "white", nil, Details.font_sizes.menus, Details.font_faces.menus)
gameCooltip:AddIcon([[Interface\Buttons\UI-StopButton]], 1, 1, 14, 14, 0, 1, 0, 1, "red")
gameCooltip:AddMenu(1, Details.tabela_historico.resetar)
gameCooltip:AddMenu(1, Details.tabela_historico.ResetAllCombatData)
show_anti_overlap(self.instance, self, "top")
@@ -9720,7 +9720,7 @@ function gump:CriaCabecalho (baseframe, instancia)
end
else
if (not Details.disable_reset_button) then
Details.tabela_historico:resetar()
Details.tabela_historico:ResetAllCombatData()
else
Details:Msg(Loc["STRING_OPTIONS_DISABLED_RESET"])
end
+5 -5
View File
@@ -28,7 +28,7 @@ function _detalhes:OpenWelcomeWindow()
window:SetScript("OnMouseDown", function() window:StartMoving() end)
window:SetScript("OnMouseUp", function() window:StopMovingOrSizing() end)
window:SetScript("OnHide", function()
_detalhes.tabela_historico:resetar()
_detalhes.tabela_historico:ResetAllCombatData()
if (DetailsFramework.IsClassicWow()) then
local new_instance = Details:GetWindow (1)
@@ -321,7 +321,7 @@ local window_openned_at = time()
local instance1 = Details:GetInstance(1)
local instance2 = Details:GetInstance(2)
_detalhes.tabela_historico:resetar()
_detalhes.tabela_historico:ResetAllCombatData()
if (fixedParameter == 1) then --latin
if (instance1 and instance1:IsEnabled()) then
@@ -1043,7 +1043,7 @@ local window_openned_at = time()
local update_frame_alert = CreateFrame("frame", nil, window)
update_frame_alert:SetScript("OnShow", function()
_detalhes.tabela_historico:resetar()
_detalhes.tabela_historico:ResetAllCombatData()
created_test_bars = 0
_detalhes.zone_type = "pvp"
@@ -1297,7 +1297,7 @@ local window_openned_at = time()
local group_frame_alert = CreateFrame("frame", nil, window)
group_frame_alert:SetScript("OnShow", function()
_detalhes.tabela_historico:resetar()
_detalhes.tabela_historico:ResetAllCombatData()
created_test_bars = 0
end)
@@ -1342,7 +1342,7 @@ local window_openned_at = time()
local tooltip_frame = CreateFrame("frame", nil, window)
tooltip_frame:SetScript("OnShow", function(self)
_detalhes.tabela_historico:resetar()
_detalhes.tabela_historico:ResetAllCombatData()
created_test_bars = 0
local current_combat = _detalhes:GetCombat("current")