- Report lines for deaths is now inverted. No need to scroll up the chat to see the cause of death anymore.
Fixed some annoyances with auto current feature where it was changing the segments even when the user were using the window.
This commit is contained in:
+19
-4
@@ -230,7 +230,7 @@
|
||||
--> internal functions
|
||||
-- _detalhes.statistics = {container_calls = 0, container_pet_calls = 0, container_unknow_pet = 0, damage_calls = 0, heal_calls = 0, absorbs_calls = 0, energy_calls = 0, pets_summons = 0}
|
||||
|
||||
-- ~start ~inicio
|
||||
-- ~start ~inicio ~novo ñovo
|
||||
function _detalhes:EntrarEmCombate (...)
|
||||
|
||||
if (_detalhes.debug) then
|
||||
@@ -333,7 +333,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
-- ~end
|
||||
-- ~end ~leave
|
||||
function _detalhes:SairDoCombate (bossKilled, from_encounter_end)
|
||||
|
||||
if (_detalhes.debug) then
|
||||
@@ -592,8 +592,8 @@
|
||||
_detalhes:CancelTimer (_detalhes.cloud_process)
|
||||
end
|
||||
|
||||
_detalhes.in_combat = false --sinaliza ao addon que não há combate no momento
|
||||
_detalhes.leaving_combat = false --sinaliza que não esta mais saindo do combate
|
||||
_detalhes.in_combat = false
|
||||
_detalhes.leaving_combat = false
|
||||
|
||||
_detalhes:OnCombatPhaseChanged()
|
||||
_table_wipe (_detalhes.tabela_vigente.PhaseData.damage_section)
|
||||
@@ -964,8 +964,23 @@
|
||||
end
|
||||
end
|
||||
|
||||
function _detalhes:PostponeInstanceToCurrent (instance)
|
||||
if ((instance.last_interaction+6 < _detalhes._tempo) and (not DetailsReportWindow or not DetailsReportWindow:IsShown())) then
|
||||
if (instance.segmento == 0) then
|
||||
return _detalhes:TrocaSegmentoAtual (instance)
|
||||
end
|
||||
end
|
||||
_detalhes:ScheduleTimer ("PostponeInstanceToCurrent", 2, instance)
|
||||
end
|
||||
|
||||
function _detalhes:TrocaSegmentoAtual (instancia)
|
||||
if (instancia.segmento == 0) then --> esta mostrando a tabela Atual
|
||||
|
||||
if ((instancia.last_interaction and (instancia.last_interaction+6 > _detalhes._tempo)) or (DetailsReportWindow and DetailsReportWindow:IsShown())) then
|
||||
--> postpone
|
||||
return _detalhes:ScheduleTimer ("PostponeInstanceToCurrent", 2, instancia)
|
||||
end
|
||||
|
||||
instancia.showing =_detalhes.tabela_vigente
|
||||
instancia:ResetaGump()
|
||||
_detalhes.gump:Fade (instancia, "in", nil, "barras")
|
||||
|
||||
@@ -566,6 +566,8 @@
|
||||
--> enter
|
||||
JoinChannelByName (room_name)
|
||||
_detalhes.is_connected = true
|
||||
|
||||
_detalhes:SendEvent ("REALM_CHANNEL_ENTER")
|
||||
end
|
||||
|
||||
function _detalhes:LeaveChatChannel()
|
||||
@@ -601,6 +603,8 @@
|
||||
_detalhes.is_connected = false
|
||||
|
||||
_detalhes.listener:UnregisterEvent ("CHAT_MSG_CHANNEL")
|
||||
|
||||
_detalhes:SendEvent ("REALM_CHANNEL_LEAVE")
|
||||
end
|
||||
|
||||
function _detalhes:DoZoneCheck()
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
--File Revision: 1
|
||||
--Last Modification: 27/07/2013
|
||||
-- Change Log:
|
||||
-- 27/07/2013: Finished alpha version.
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
+22
-11
@@ -188,9 +188,31 @@
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
--> reverse numerical table
|
||||
function _detalhes:reverse_table (t)
|
||||
local new = {}
|
||||
local index = 1
|
||||
for i = #t, 1, -1 do
|
||||
new [index] = t[i]
|
||||
index = index + 1
|
||||
end
|
||||
return new
|
||||
end
|
||||
|
||||
_detalhes.table = {}
|
||||
|
||||
function _detalhes.table.reverse (t)
|
||||
local new = {}
|
||||
local index = 1
|
||||
for i = #t, 1, -1 do
|
||||
new [index] = t[i]
|
||||
index = index + 1
|
||||
end
|
||||
return new
|
||||
end
|
||||
--yah, i know
|
||||
|
||||
function _detalhes.table.copy (t1, t2)
|
||||
local table_deepcopy = table_deepcopy
|
||||
for key, value in pairs (t2) do
|
||||
@@ -309,17 +331,6 @@
|
||||
return from > #s and "" or s:match(".*%S", from)
|
||||
end
|
||||
|
||||
--> reverse numerical table
|
||||
function _detalhes:reverse_table (t)
|
||||
local new = {}
|
||||
local index = 1
|
||||
for i = #t, 1, -1 do
|
||||
new [index] = t[i]
|
||||
index = index + 1
|
||||
end
|
||||
return new
|
||||
end
|
||||
|
||||
-- lua base64 codec (c) 2006-2008 by Alex Kloss - http://www.it-rfc.de - licensed under the terms of the LGPL2 - http://lua-users.org/wiki/BaseSixtyFour
|
||||
do
|
||||
_detalhes._encode = {}
|
||||
|
||||
Reference in New Issue
Block a user