1.15.0 Test Version

- Implemented a early support for Dungeons:
the addon is now capable of distinguishing dungeon boss and trash mobs.
not all bosses are implemented yet, atm is:
*Mogu'Shan Palace
*Temple of the Jade Serpent
*Stormstout Brewery

- Implemented Overall Data: Options for it are under combat tab.

- Implemented spell targets on Player Details Window.
Also, fixed lots of small issues like showing damage done where clicking on a Dps bar.
This commit is contained in:
tercio
2014-05-28 18:04:24 -03:00
parent e9e1fe4dfd
commit 9dd43d676d
34 changed files with 1988 additions and 809 deletions
+20 -4
View File
@@ -5,7 +5,8 @@ do
local _rawget = rawget
local _setmetatable = setmetatable
local _ipairs = ipairs
--> default weaktable
_detalhes.weaktable = {__mode = "v"}
@@ -18,12 +19,27 @@ do
end
meus_links [#meus_links+1] = objeto
end
--> check if there is a link between tables
function _detalhes:EstaoLinkados (objeto)
local meus_links = _rawget (self, "links")
if (not meus_links) then
return false
end
for index, actor in _ipairs (meus_links) do
if (actor == objeto) then
return true
end
end
return false
end
--> create the link
function _detalhes:CriaLink (link)
--> se tiver a tabela no overall
if (link) then
link:FazLinkagem (self)
end
--if (link) then
-- link:FazLinkagem (self)
--end
end
end
+3
View File
@@ -271,6 +271,9 @@ function _detalhes:LoadConfig()
_detalhes.switch.slots = _detalhes_database.switchSaved.slots
_detalhes.switch.table = _detalhes_database.switchSaved.table
--> last boss
_detalhes.last_encounter = _detalhes_database.last_encounter
--> buffs
_detalhes.savedbuffs = _detalhes_database.savedbuffs
_detalhes.Buffs:BuildTables()
+5 -1
View File
@@ -564,8 +564,12 @@ local default_profile = {
--> cloud capture
cloud_capture = true,
--> combat time mim
--> combat
minimum_combat_time = 5,
overall_flag = 0xD,
overall_clear_newboss = true,
overall_clear_newchallenge = true,
--> skins
standard_skin = false, --?
+3
View File
@@ -482,6 +482,9 @@ function _detalhes:SaveConfig()
_detalhes_database.switchSaved.slots = _detalhes.switch.slots
_detalhes_database.switchSaved.table = _detalhes.switch.table
--> last boss
_detalhes_database.last_encounter = _detalhes.last_encounter
--> last versions
_detalhes_database.last_realversion = _detalhes.realversion --> core number
_detalhes_database.last_version = _detalhes.userversion --> version
+60
View File
@@ -92,6 +92,66 @@ function SlashCmdList.DETAILS (msg, editbox)
-------- debug ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
elseif (msg == "addcombat") then
local combat = _detalhes.combate:NovaTabela (true, _detalhes.tabela_overall, 1)
local self = combat[1]:PegarCombatente (UnitGUID ("player"), UnitName ("player"), 1297, true)
self.total = 100000
self.total_without_pet = 100000
if (not _detalhes.um___) then
_detalhes.um___ = 0
_detalhes.next_um = 3
end
local cima = true
_detalhes.um___ = _detalhes.um___ + 1
if (_detalhes.um___ == _detalhes.next_um) then
_detalhes.next_um = _detalhes.next_um + 3
cima = false
end
if (cima) then
local frostbolt = self.spell_tables:PegaHabilidade (116, true, "SPELL_DAMAGE")
local frostfirebolt = self.spell_tables:PegaHabilidade (44614, true, "SPELL_DAMAGE")
local icelance = self.spell_tables:PegaHabilidade (30455, true, "SPELL_DAMAGE")
self.spell_tables._ActorTable [116].total = 50000
self.spell_tables._ActorTable [44614].total = 25000
self.spell_tables._ActorTable [30455].total = 25000
else
local frostbolt = self.spell_tables:PegaHabilidade (84721, true, "SPELL_DAMAGE")
local frostfirebolt = self.spell_tables:PegaHabilidade (113092, true, "SPELL_DAMAGE")
local icelance = self.spell_tables:PegaHabilidade (122, true, "SPELL_DAMAGE")
self.spell_tables._ActorTable [84721].total = 50000
self.spell_tables._ActorTable [113092].total = 25000
self.spell_tables._ActorTable [122].total = 25000
end
combat.start_time = time()-30
combat.end_time = time()
combat.totals_grupo [1] = 100000
combat.totals [1] = 100000
--combat.instance_type = "raid"
--combat.is_trash = true
_detalhes.tabela_vigente = combat
_detalhes.tabela_historico:adicionar (combat)
_detalhes:InstanciaCallFunction (_detalhes.gump.Fade, "in", nil, "barras")
_detalhes:InstanciaCallFunction (_detalhes.AtualizaSegmentos) -- atualiza o instancia.showing para as novas tabelas criadas
_detalhes:InstanciaCallFunction (_detalhes.AtualizaSoloMode_AfertReset) -- verifica se precisa zerar as tabela da janela solo mode
_detalhes:InstanciaCallFunction (_detalhes.ResetaGump) --_detalhes:ResetaGump ("de todas as instancias")
_detalhes:AtualizaGumpPrincipal (-1, true) --atualiza todas as instancias
elseif (msg == "pets") then
local f = _detalhes:CreateListPanel()