Code changes, see commit description
Combat Objects which has been discarded due to any reason will have the boolean member: __destroyed set to true. With this change, 3rd party code can see if the data cached is up to date or obsolete. - Removed several deprecated code from March 2023 and earlier. - Large amount of code cleanup and refactoring, some functions got renamed, they are listed below: * TravarTempos renamed to LockActivityTime. * ClearTempTables renamed to ClearCacheTables. * SpellIsDot renamed to SetAsDotSpell. * FlagCurrentCombat remamed to FlagNewCombat_PVPState. * UpdateContainerCombatentes renamed to UpdatePetCache. * segmentClass:AddCombat(combatObject) renamed to Details222.Combat.AddCombat(combatToBeAdded) - CurrentCombat.verifica_combate timer is now obsolete. - Details.last_closed_combat is now obsolete. - Details.EstaEmCombate is now obsolete. - Details.options is now obsolete. - Added: Details:RemoveSegmentByCombatObject(combatObject) - Spec Guess Timers are now stored within Details222.GuessSpecSchedules.Schedules, all timers are killed at the end of the combat or at a data reset. - Initial time to send startup signal reduced from 5 to 4 seconds. - Fixed some division by zero on ptr 10.1.5. - Fixed DETAILS_STARTED event not triggering in some cases due to 'event not registered'.
This commit is contained in:
@@ -2525,17 +2525,22 @@ function Details:UpdateCombatObjectInUse(instance)
|
||||
end
|
||||
end
|
||||
|
||||
function Details:AtualizaSegmentos_AfterCombat (instancia, historico)
|
||||
function Details:AtualizaSegmentos_AfterCombat(instancia)
|
||||
if (instancia.freezed) then
|
||||
return --se esta congelada n�o tem o que fazer
|
||||
return
|
||||
end
|
||||
|
||||
local segmento = instancia.segmento
|
||||
|
||||
---@type combat[]
|
||||
local segmentsTable = Details:GetCombatSegments()
|
||||
|
||||
local _fadeType, _fadeSpeed = _unpack(Details.row_fade_in)
|
||||
|
||||
--todo: translate comments here
|
||||
|
||||
if (segmento == Details.segments_amount) then --significa que o index [5] passou a ser [6] com a entrada da nova tabela
|
||||
instancia.showing = historico.tabelas [Details.segments_amount] --ent�o ele volta a pegar o index [5] que antes era o index [4]
|
||||
instancia.showing = segmentsTable[Details.segments_amount] --ent�o ele volta a pegar o index [5] que antes era o index [4]
|
||||
--print("==> Changing the Segment now! - classe_instancia.lua 1942")
|
||||
Details.FadeHandler.Fader(instancia, _fadeType, _fadeSpeed, "barras")
|
||||
instancia.showing[instancia.atributo].need_refresh = true
|
||||
@@ -2545,7 +2550,7 @@ function Details:AtualizaSegmentos_AfterCombat (instancia, historico)
|
||||
Details:AtualizarJanela (instancia)
|
||||
|
||||
elseif (segmento < Details.segments_amount and segmento > 0) then
|
||||
instancia.showing = historico.tabelas [segmento]
|
||||
instancia.showing = segmentsTable[segmento]
|
||||
--print("==> Changing the Segment now! - classe_instancia.lua 1952")
|
||||
|
||||
Details.FadeHandler.Fader(instancia, _fadeType, _fadeSpeed, "barras") --"in", nil
|
||||
|
||||
Reference in New Issue
Block a user