This commit is contained in:
terciob19
2014-02-04 16:18:48 -02:00
parent 26fd8dbf0a
commit af5288840a
14 changed files with 301 additions and 77 deletions
@@ -960,6 +960,7 @@ function EncounterDetails:OpenAndRefresh()
if (not barra) then
barra = EncounterDetails:CreateRow (index, container)
barra:SetWidth (160)
barra._no_report = true
--> criar 2 botão: um para o dano que add deu e outro para o dano que o add tomou
@@ -1017,9 +1018,11 @@ function EncounterDetails:OpenAndRefresh()
end
barra.texto_esquerdo:SetText (addName)
barra.texto_direita:SetText (_detalhes:comma_value (esta_tabela.total))
_detalhes:name_space (barra)
--barra.texto_direita:SetText (_detalhes:comma_value (esta_tabela.total))
barra.texto_direita:SetText (_detalhes:ToK (esta_tabela.total))
barra.texto_esquerdo:SetSize (barra:GetWidth() - barra.texto_direita:GetStringWidth() - 34, 15)
barra.jogador = esta_tabela --> barra.jogador agora tem a tabela com --> [1] total dano causado [2] jogadores que foram alvos [3] jogadores que castaram essa magia [4] ID da magia
+5 -1
View File
@@ -32,10 +32,14 @@ Loc ["STRING_DEATH_LOG"] = "Death Log"
Loc ["STRING_FIGHT_SUMMARY"] = "fight details"
Loc ["STRING_FIGHT_GRAPHIC"] = "performance charts"
Loc ["STRING_TOOLTIP"] = "Show Encounter Details Window"
Loc ["STRING_"] = ""
Loc ["STRING_LAST_COOLDOWN"] = "last cooldown used"
Loc ["STRING_NOLAST_COOLDOWN"] = "no cooldown used"
Loc ["STRING_ADDS_HELP"] = "Mouse over |cFF00FF00Arrow Up|r for dmg received, |cFFFF0000Arrow Down|r for dmg dealt.\n|cFFFFFF00Click Arrow|r: Report the data shown on tooltip."
Loc ["STRING_INTERRIPT_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
Loc ["STRING_DISPELL_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
Loc ["STRING_DEATHS_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
--> mechanic types
Loc ["STRING_HEAL"] = "heal"
Loc ["STRING_LOWDPS"] = "lowdps"
+21 -1
View File
@@ -829,10 +829,15 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
mouseOver_adds_frame:SetScript ("OnEnter",
function()
_G.DetailsBubble:SetOwner (mouseOver_adds_frame.imagem, nil, nil, -45, -22)
_G.DetailsBubble:FlipHorizontal()
_G.DetailsBubble:SetBubbleText (Loc ["STRING_ADDS_HELP"])
_G.DetailsBubble:ShowBubble()
mouseOver_adds_frame.imagem:SetTexCoord (0.7734375, 0.99609375, 0.03125, 0.3671875)
end)
mouseOver_adds_frame:SetScript ("OnLeave",
function()
_G.DetailsBubble:HideBubble()
mouseOver_adds_frame.imagem:SetTexCoord (0.52734375, 0.7421875, 0.03125, 0.3671875)
end)
@@ -901,10 +906,15 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
mouseOver_interrupt_frame:SetScript ("OnEnter",
function()
_G.DetailsBubble:SetOwner (mouseOver_interrupt_frame.imagem, nil, nil, 40, -18)
--_G.DetailsBubble:FlipHorizontal()
_G.DetailsBubble:SetBubbleText (Loc ["STRING_INTERRIPT_HELP"])
_G.DetailsBubble:ShowBubble()
mouseOver_interrupt_frame.imagem:SetTexCoord (0.6015625, 1, 0.4296875, 0.6953125)
end)
mouseOver_interrupt_frame:SetScript ("OnLeave",
function()
_G.DetailsBubble:HideBubble()
mouseOver_interrupt_frame.imagem:SetTexCoord (0.6015625, 1, 0.734375, 0.9765625)
end)
@@ -973,10 +983,15 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
mouseOver_dispell_frame:SetScript ("OnEnter",
function()
_G.DetailsBubble:SetOwner (mouseOver_dispell_frame.imagem, nil, nil, -45, -22)
_G.DetailsBubble:FlipHorizontal()
_G.DetailsBubble:SetBubbleText (Loc ["STRING_DISPELL_HELP"])
_G.DetailsBubble:ShowBubble()
mouseOver_dispell_frame.imagem:SetTexCoord (0.1796875, 0.3359375, 0.4140625, 0.71875)
end)
mouseOver_dispell_frame:SetScript ("OnLeave",
function()
_G.DetailsBubble:HideBubble()
mouseOver_dispell_frame.imagem:SetTexCoord (0, 0.15625, 0.4140625, 0.71875)
end)
@@ -1046,12 +1061,17 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
mouseOver_dead_frame:SetScript ("OnEnter",
function()
_G.DetailsBubble:SetOwner (mouseOver_dead_frame.imagem, nil, nil, 40, -18)
--_G.DetailsBubble:FlipHorizontal()
_G.DetailsBubble:SetBubbleText (Loc ["STRING_DEATHS_HELP"])
_G.DetailsBubble:ShowBubble()
mouseOver_dead_frame.imagem:SetTexCoord (0.171875, 0.3359375, 0.03125, 0.34375)
end)
mouseOver_dead_frame:SetScript ("OnLeave",
function()
_G.DetailsBubble:HideBubble()
mouseOver_dead_frame.imagem:SetTexCoord (0, 0.1640625, 0.03125, 0.34375)
end)
end)
container_dead_frame:SetScript ("OnMouseDown", mouse_down)
container_dead_frame:SetScript ("OnMouseUp", mouse_up)
+6 -1
View File
@@ -33,7 +33,12 @@ Loc ["STRING_FIGHT_GRAPHIC"] = "graficos da performance"
Loc ["STRING_TOOLTIP"] = "Mostrar os detalhes do combate"
Loc ["STRING_LAST_COOLDOWN"] = "ultimo cooldown usado"
Loc ["STRING_NOLAST_COOLDOWN"] = "nenhum cooldown usado"
Loc ["STRING_ADDS_HELP"] = "Passe o mouse |cFF00FF00Flecha|r dano recebido, |cFFFF0000Flecha|r dano feito.\n|cFFFFFF00Clique|r: Reporta os dados no tooltip."
Loc ["STRING_INTERRIPT_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
Loc ["STRING_DISPELL_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
Loc ["STRING_DEATHS_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
--> mechanic types
Loc ["STRING_HEAL"] = "cura"
Loc ["STRING_LOWDPS"] = "dpsbaixo"
@@ -821,7 +821,8 @@ local siege_of_orgrimmar = {
phases = {
{ --> phase 1: Might of the Kor'kron
adds = {
71454 --Malkorok
71454, --Malkorok
71644 --living corruption
},
spells = {
142861, --Ancient Miasma
@@ -80,6 +80,7 @@ local function CreatePluginFrames (data)
SpellDetails:Refresh()
elseif (event == "COMBAT_PLAYER_TIMESTARTED") then --> combat started
if (not SpellDetailsFrame:GetScript ("OnUpdate")) then
_detalhes:RegisterEvent (SpellDetails, "BUFF_UPDATE") --> register buffs on player
_detalhes:RegisterEvent (SpellDetails, "BUFF_UPDATE_DEBUFFPOWER") --> register debuffs wich player cast on oponents
@@ -956,10 +957,10 @@ local function CreatePluginFrames (data)
local MySelf
if (_detalhes.SoloTables.CombatID == _detalhes:NumeroCombate()) then
MySelf = _detalhes.tabela_vigente (_detalhes.SoloTables.Attribute, _detalhes.playername)
MySelf = _detalhes.tabela_vigente (DETAILS_ATTRIBUTE_DAMAGE, _detalhes.playername)
else
local vigente = _detalhes.tabela_historico.tabelas[_detalhes:NumeroCombate() - _detalhes.SoloTables.CombatID]
MySelf = vigente (_detalhes.SoloTables.Attribute, _detalhes.playername)
MySelf = vigente (DETAILS_ATTRIBUTE_DAMAGE, _detalhes.playername)
end
if (MySelf) then
@@ -984,7 +985,7 @@ local function CreatePluginFrames (data)
end
function SpellDetails:ForceUpdateUpDisplay()
local MySelf = _detalhes.tabela_vigente (_detalhes.SoloTables.Attribute, _detalhes.playername)
local MySelf = _detalhes.tabela_vigente (DETAILS_ATTRIBUTE_DAMAGE, _detalhes.playername)
if (MySelf and MySelf.end_time and MySelf.start_time) then
local tempo_in_combat = MySelf.end_time - MySelf.start_time
SpellDetails.SummaryLine.time:SetText (Loc ["STRING_TEMPO"]..":".." ".._string_format ("%.1f", tempo_in_combat))
@@ -1036,7 +1037,7 @@ local function CreatePluginFrames (data)
end
-- self.atributo <- retorna o que esta sendo mostrado na instancia
local atributo = _detalhes.SoloTables.Attribute
local atributo = DETAILS_ATTRIBUTE_DAMAGE
local MySelf
if (_detalhes.SoloTables.CombatID == _detalhes:NumeroCombate()) then
@@ -1126,7 +1127,7 @@ local function CreatePluginFrames (data)
local MySelf
if (SoloCombatID == _detalhes:NumeroCombate()) then
MySelf = _detalhes.tabela_vigente (_detalhes.SoloTables.Attribute, _detalhes.playername)
MySelf = _detalhes.tabela_vigente (DETAILS_ATTRIBUTE_DAMAGE, _detalhes.playername)
CombatTable = _detalhes.tabela_vigente
else
if (_detalhes.SoloTables.CombatID == 0) then
@@ -1138,7 +1139,7 @@ local function CreatePluginFrames (data)
--print ("!Vigente> solo_id = "..SoloCombatID.." <> " .. _detalhes:NumeroCombate() .. " table: " .. (_detalhes:NumeroCombate() - SoloCombatID))
return
end
MySelf = vigente (_detalhes.SoloTables.Attribute, _detalhes.playername)
MySelf = vigente (DETAILS_ATTRIBUTE_DAMAGE, _detalhes.playername)
CombatTable = vigente
end