Show small damage chart for each spell of the player

This commit is contained in:
Tercio Jose
2022-11-22 16:53:54 -03:00
parent 2ca8ce36ea
commit 483e69529c
6 changed files with 250 additions and 4 deletions
+12
View File
@@ -6,6 +6,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local gump = _detalhes.gump
local _
local addonName, Details222 = ...
--lua locals
--local _string_len = string.len
local _math_floor = math.floor
@@ -609,8 +610,13 @@ local detalhes_inforeport_onleave = function(self)
Details.FadeHandler.Fader(self, "IN")
end
local getFrameFromDetailInfoBlock = function(self)
return self.bg
end
function gump:CriaDetalheInfo(index)
local spellInfoBlock = {}
spellInfoBlock.GetFrame = getFrameFromDetailInfoBlock
spellInfoBlock.bg = CreateFrame("StatusBar", "DetailsPlayerDetailsWindow_DetalheInfoBG" .. index, _detalhes.playerDetailWindow.container_detalhes, "BackdropTemplate")
spellInfoBlock.bg:SetStatusBarTexture("Interface\\AddOns\\Details\\images\\bar_detalhes2")
@@ -674,6 +680,12 @@ end
--determina qual a pociso que a barra de detalhes vai ocupar
------------------------------------------------------------------------------------------------------------------------------
--namespace
Details222.BreakdownWindow = {}
function Details222.BreakdownWindow.GetBlockIndex(index)
return Details.playerDetailWindow.grupos_detalhes[index]
end
function gump:SetaDetalheInfoAltura(index, xmod, ymod)
local spellInfoBlock = _detalhes.playerDetailWindow.grupos_detalhes[index]
--local janela = _detalhes.playerDetailWindow.container_detalhes