More fixes
This commit is contained in:
@@ -66,6 +66,14 @@ info.currentTabsInUse = {}
|
||||
--self = instancia
|
||||
--jogador = classe_damage ou classe_heal
|
||||
|
||||
do
|
||||
local gradientStartColor = Details222.ColorScheme.GetColorFor("gradient-background")
|
||||
local gradientUp = DetailsFramework:CreateTexture(info, {gradient = "vertical", fromColor = "transparent", toColor = gradientStartColor}, 1, 300, "artwork", {0, 1, 0, 1})
|
||||
gradientUp:SetPoint("tops", 1, 1)
|
||||
local gradientDown = DetailsFramework:CreateTexture(info, {gradient = "vertical", fromColor = gradientStartColor, toColor = "transparent"}, 1, 50, "artwork", {0, 1, 0, 1})
|
||||
gradientDown:SetPoint("bottoms")
|
||||
end
|
||||
|
||||
function Details:GetBreakdownTabsInUse()
|
||||
return info.currentTabsInUse
|
||||
end
|
||||
@@ -619,7 +627,9 @@ function gump:CriaDetalheInfo(index)
|
||||
spellInfoBlock.GetFrame = getFrameFromDetailInfoBlock
|
||||
|
||||
spellInfoBlock.bg = CreateFrame("StatusBar", "DetailsPlayerDetailsWindow_DetalheInfoBG" .. index, _detalhes.playerDetailWindow.container_detalhes, "BackdropTemplate")
|
||||
spellInfoBlock.bg:SetStatusBarTexture("Interface\\AddOns\\Details\\images\\bar_detalhes2")
|
||||
--spellInfoBlock.bg:SetStatusBarTexture("") --Interface\\AddOns\\Details\\images\\bar_detalhes2
|
||||
--bar_detalhes2 bar_background
|
||||
spellInfoBlock.bg:SetStatusBarTexture("Interface\\AddOns\\Details\\images\\bar_background") --Interface\\AddOns\\Details\\images\\bar_detalhes2
|
||||
spellInfoBlock.bg:SetStatusBarColor(1, 1, 1, .84)
|
||||
spellInfoBlock.bg:SetMinMaxValues(0, 100)
|
||||
spellInfoBlock.bg:SetValue(100)
|
||||
@@ -655,7 +665,7 @@ function gump:CriaDetalheInfo(index)
|
||||
spellInfoBlock.bg.reportar:SetScript("OnLeave", detalhes_inforeport_onleave)
|
||||
|
||||
spellInfoBlock.bg_end = spellInfoBlock.bg:CreateTexture("DetailsPlayerDetailsWindow_DetalheInfoBG_bg_end" .. index, "BACKGROUND")
|
||||
spellInfoBlock.bg_end:SetHeight(47)
|
||||
spellInfoBlock.bg_end:SetHeight(40)
|
||||
spellInfoBlock.bg_end:SetTexture("Interface\\AddOns\\Details\\images\\bar_detalhes2_end")
|
||||
|
||||
_detalhes.playerDetailWindow.grupos_detalhes[index] = spellInfoBlock
|
||||
@@ -749,7 +759,7 @@ function gump:SetaDetalheInfoAltura(index, xmod, ymod)
|
||||
spellInfoBlock.bg:SetWidth(background:GetWidth())
|
||||
|
||||
spellInfoBlock.bg_end:SetPoint("LEFT", spellInfoBlock.bg, "LEFT", spellInfoBlock.bg:GetValue()*2.19, 0)
|
||||
spellInfoBlock.bg_end:SetHeight(background:GetHeight()+2)
|
||||
spellInfoBlock.bg_end:SetHeight(background:GetHeight()-2)
|
||||
spellInfoBlock.bg_end:SetWidth(6)
|
||||
spellInfoBlock.bg_end:SetAlpha(.75)
|
||||
|
||||
@@ -1211,7 +1221,7 @@ local default_skin = function()
|
||||
end
|
||||
|
||||
--info container
|
||||
info:SetDetailInfoConfigs("Interface\\AddOns\\Details\\images\\bar_detalhes2", {1, 1, 1, 0.5}, 0, 0)
|
||||
info:SetDetailInfoConfigs("Interface\\AddOns\\Details\\images\\bar_background_dark_dark", {1, 1, 1, 0.5}, 0, 0)
|
||||
|
||||
window.bg1_sec_texture:SetPoint("topleft", window.bg1, "topleft", 348, -86)
|
||||
window.bg1_sec_texture:SetHeight(262)
|
||||
@@ -1441,7 +1451,7 @@ local elvui_skin = function()
|
||||
end
|
||||
|
||||
--seta configs dos 5 blocos da direita
|
||||
info:SetDetailInfoConfigs("Interface\\AddOns\\Details\\images\\bar_serenity", {1, 1, 1, 0.35}, -6 + 100, 0)
|
||||
info:SetDetailInfoConfigs("Interface\\AddOns\\Details\\images\\bar_background_dark", {1, 1, 1, 0.35}, -6 + 100, 0)
|
||||
|
||||
window.bg1_sec_texture:SetPoint("topleft", window.bg1, "topleft", 446, -86)
|
||||
window.bg1_sec_texture:SetWidth(337)
|
||||
@@ -1818,6 +1828,9 @@ function gump:CriaJanelaInfo()
|
||||
right_background1:SetSize(220, 43)
|
||||
Details.gump:ApplyStandardBackdrop(right_background1)
|
||||
este_gump ["right_background" .. i] = right_background1
|
||||
|
||||
local gradientDown = DetailsFramework:CreateTexture(right_background1, {gradient = "vertical", fromColor = {0, 0, 0, 0.1}, toColor = "transparent"}, 1, 43, "artwork", {0, 1, 0, 1})
|
||||
gradientDown:SetPoint("bottoms")
|
||||
end
|
||||
|
||||
-- fundos especiais de friendly fire e outros
|
||||
@@ -2927,6 +2940,11 @@ function gump:CriaJanelaInfo()
|
||||
DF:ReskinSlider(debuffScroll)
|
||||
|
||||
tab.DebuffScroll = debuffScroll
|
||||
|
||||
if (not frame.__background) then
|
||||
DetailsFramework:ApplyStandardBackdrop(frame)
|
||||
frame.__background:SetAlpha(0.6)
|
||||
end
|
||||
end
|
||||
|
||||
local auras_tab_fill = function(tab, player, combat)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
local Details = _G.Details
|
||||
local detailsFramework = _G.DetailsFramework
|
||||
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
|
||||
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
|
||||
local addonName, Details222 = ...
|
||||
|
||||
local breakdownWindowPlayerList = {}
|
||||
@@ -49,6 +49,7 @@
|
||||
if (playerObject) then
|
||||
local line = self:GetLine(i)
|
||||
line.playerObject = playerObject
|
||||
line.combatObject = combatObject
|
||||
line.index = index
|
||||
line:UpdateLine(topResult, encounterId, difficultyId)
|
||||
end
|
||||
@@ -124,7 +125,7 @@
|
||||
self.roleIcon:SetTexture("")
|
||||
end
|
||||
|
||||
local playerGear = openRaidLib.GetUnitGear(self.playerObject.nome)
|
||||
local playerGear = openRaidLib and openRaidLib.GetUnitGear(self.playerObject.nome)
|
||||
|
||||
--do not show the role icon
|
||||
self.roleIcon:SetTexture("") --not in use
|
||||
@@ -141,17 +142,26 @@
|
||||
|
||||
local actorSpecId = self.playerObject.spec
|
||||
local actorTotal = self.playerObject.total
|
||||
local combatObject = self.combatObject
|
||||
|
||||
--warcraftlogs percentile
|
||||
if (self.playerObject.tipo == DETAILS_ATTRIBUTE_DAMAGE) then
|
||||
local parcePercent = Details222.WarcraftLogs.GetDamageParsePercent(encounterId, difficultyId, actorSpecId, actorTotal)
|
||||
if (parcePercent) then
|
||||
self.percentileText:SetText(math.floor(parcePercent))
|
||||
local actorDPS = self.playerObject.total / combatObject:GetCombatTime()
|
||||
|
||||
local parsePercent = Details222.WarcraftLogs.GetDamageParsePercent(encounterId, difficultyId, actorSpecId, actorDPS)
|
||||
if (parsePercent) then
|
||||
parsePercent = math.floor(parsePercent)
|
||||
local colorName = Details222.WarcraftLogs.GetParseColor(parsePercent)
|
||||
self.percentileText:SetTextColor(detailsFramework:ParseColors(colorName))
|
||||
self.percentileText:SetText(math.floor(parsePercent))
|
||||
self.percentileText.alpha = 1
|
||||
else
|
||||
parcePercent = Details222.ParsePercent.GetPercent(DETAILS_ATTRIBUTE_DAMAGE, difficultyId, encounterId, actorSpecId, actorTotal)
|
||||
if (parcePercent) then
|
||||
self.percentileText:SetText(math.floor(parcePercent))
|
||||
parsePercent = Details222.ParsePercent.GetPercent(DETAILS_ATTRIBUTE_DAMAGE, difficultyId, encounterId, actorSpecId, actorDPS)
|
||||
if (parsePercent) then
|
||||
parsePercent = math.floor(parsePercent)
|
||||
local colorName = Details222.WarcraftLogs.GetParseColor(parsePercent)
|
||||
self.percentileText:SetTextColor(detailsFramework:ParseColors(colorName))
|
||||
self.percentileText:SetText(math.floor(parsePercent))
|
||||
self.percentileText.alpha = 1
|
||||
else
|
||||
self.percentileText:SetText("#.def")
|
||||
@@ -225,6 +235,7 @@
|
||||
playerName.outline = fontOutline
|
||||
end
|
||||
|
||||
--~create
|
||||
playerName.textcolor = {1, 1, 1, .9}
|
||||
|
||||
local className = detailsFramework:CreateLabel(upFrame, "", "GameFontNormal")
|
||||
@@ -244,7 +255,7 @@
|
||||
rankText.textsize = fontSize
|
||||
|
||||
local totalStatusBar = CreateFrame("statusbar", nil, line)
|
||||
totalStatusBar:SetSize(scrollbox_size[1]-19-player_line_height, 4)
|
||||
totalStatusBar:SetSize(scrollbox_size[1]-player_line_height, 4)
|
||||
totalStatusBar:SetMinMaxValues(0, 100)
|
||||
totalStatusBar:SetStatusBarTexture([[Interface\AddOns\Details\images\bar_skyline]])
|
||||
totalStatusBar:SetFrameLevel(line:GetFrameLevel()+1)
|
||||
@@ -297,6 +308,11 @@
|
||||
f.Header:SetPoint("topleft", playerScroll, "topleft", 0, -1)
|
||||
f.Header:SetPoint("topright", playerScroll, "topright", 0, -1)
|
||||
|
||||
detailsFramework:ApplyStandardBackdrop(f.Header)
|
||||
f.Header.__background:SetColorTexture(.60, .60, .60)
|
||||
|
||||
--print(f.Header:GetSize())
|
||||
|
||||
local playerSelectionLabel = detailsFramework:CreateLabel(playerScroll, "click to select a player", 14)
|
||||
playerSelectionLabel:SetPoint("bottom", playerScroll, "bottom", 0, 7)
|
||||
|
||||
@@ -367,6 +383,18 @@
|
||||
f:HookScript("OnShow", function()
|
||||
Details:UpdateBreakdownPlayerList()
|
||||
end)
|
||||
|
||||
f:HookScript("OnHide", function()
|
||||
for lineIndex, line in ipairs(f.playerScrollBox:GetLines()) do
|
||||
line.playerObject = nil
|
||||
line.combatObject = nil
|
||||
end
|
||||
end)
|
||||
|
||||
local gradientStartColor = Details222.ColorScheme.GetColorFor("gradient-background")
|
||||
local gradientBelow = DetailsFramework:CreateTexture(f.playerScrollBox,
|
||||
{gradient = "vertical", fromColor = gradientStartColor, toColor = "transparent"}, 1, 90, "artwork", {0, 1, 0, 1})
|
||||
gradientBelow:SetPoint("bottoms", 1, 1)
|
||||
end
|
||||
|
||||
function Details.PlayerBreakdown.CreatePlayerListFrame()
|
||||
|
||||
Reference in New Issue
Block a user