More bug fixes
This commit is contained in:
@@ -26,7 +26,7 @@ f:SetScript("OnEvent", function(self, event, addonName)
|
||||
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
||||
--do revisions
|
||||
if (DetailsDataStorage.VERSION < 5) then
|
||||
table.wipe (DetailsDataStorage)
|
||||
table.wipe(DetailsDataStorage)
|
||||
DetailsDataStorage = _detalhes:CreateStorageDB()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -227,7 +227,7 @@ local function CreatePluginFrames (data)
|
||||
end
|
||||
|
||||
--wipe emotes
|
||||
table.wipe (EncounterDetails.boss_emotes_table)
|
||||
table.wipe(EncounterDetails.boss_emotes_table)
|
||||
|
||||
elseif (event == "GROUP_ONENTER") then
|
||||
if (EncounterDetails.db.show_icon == 2) then
|
||||
@@ -318,7 +318,7 @@ local function CreatePluginFrames (data)
|
||||
if (_G.DBM) then
|
||||
local dbm_timer_callback = function(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
|
||||
--print(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
|
||||
local spell = tostring (spellId)
|
||||
local spell = tostring(spellId)
|
||||
if (spell and not current_table_dbm [spell]) then
|
||||
current_table_dbm [spell] = {spell, id, msg, timer, icon, bartype, spellId, colorId, modid}
|
||||
end
|
||||
@@ -329,7 +329,7 @@ local function CreatePluginFrames (data)
|
||||
if (BigWigsLoader) then
|
||||
function EncounterDetails:BigWigs_StartBar (event, module, spellid, bar_text, time, icon, ...)
|
||||
--print(event, module, spellid, bar_text, time, icon, ...)
|
||||
spellid = tostring (spellid)
|
||||
spellid = tostring(spellid)
|
||||
if (not current_table_bigwigs [spellid]) then
|
||||
current_table_bigwigs [spellid] = {(type(module) == "string" and module) or (module and module.moduleName) or "", spellid or "", bar_text or "", time or 0, icon or ""}
|
||||
end
|
||||
@@ -656,8 +656,8 @@ end
|
||||
overkill = ""
|
||||
end
|
||||
|
||||
if (source:find ("%[")) then
|
||||
source = source:gsub ("%[%*%] ", "")
|
||||
if (source:find("%[")) then
|
||||
source = source:gsub("%[%*%] ", "")
|
||||
end
|
||||
|
||||
GameCooltip:AddLine("" .. _cstr ("%.1f", timeInSeconds - hora_da_morte) .. "s " .. spellname .. " (" .. source .. ")", "-" .. _detalhes:ToK (amount) .. overkill .. " (" .. hp .. "%)", 1, "white", "white")
|
||||
@@ -672,7 +672,7 @@ end
|
||||
end
|
||||
else
|
||||
--heal
|
||||
local class = Details:GetClass (source)
|
||||
local class = Details:GetClass(source)
|
||||
local spec = Details:GetSpec (source)
|
||||
|
||||
GameCooltip:AddLine("" .. _cstr ("%.1f", timeInSeconds - hora_da_morte) .. "s " .. spellname .. " (" .. Details:GetOnlyName(Details:AddClassOrSpecIcon (source, class, spec, 16, true)) .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%)", 1, "white", "white")
|
||||
@@ -697,8 +697,8 @@ end
|
||||
|
||||
elseif (evtype == 4) then
|
||||
--debuff
|
||||
if (source:find ("%[")) then
|
||||
source = source:gsub ("%[%*%] ", "")
|
||||
if (source:find("%[")) then
|
||||
source = source:gsub("%[%*%] ", "")
|
||||
end
|
||||
|
||||
GameCooltip:AddLine("" .. _cstr ("%.1f", timeInSeconds - hora_da_morte) .. "s [x" .. amount .. "] " .. spellname .. " (" .. source .. ")", "debuff (" .. hp .. "%)", 1, "white", "white")
|
||||
@@ -856,10 +856,10 @@ local function EnemySkills (habilidade, barra)
|
||||
for index, tabela in ipairs(tabela_jogadores) do
|
||||
local coords = EncounterDetails.class_coords [tabela[3]]
|
||||
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(tabela[1]), ToK (_, tabela[2]) .. " (" .. format ("%.1f", tabela[2] / total * 100) .. "%)", 1, "white")
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(tabela[1]), ToK (_, tabela[2]) .. " (" .. format("%.1f", tabela[2] / total * 100) .. "%)", 1, "white")
|
||||
local r, g, b, a = unpack(_detalhes.tooltip.background)
|
||||
|
||||
local actorClass = Details:GetClass (tabela[1])
|
||||
local actorClass = Details:GetClass(tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
GameCooltip:AddStatusBar (tabela[2] / topValue * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
@@ -979,7 +979,7 @@ function _detalhes:BossInfoRowClick (barra, param1)
|
||||
local texto_left, texto_right = GameCooltip:GetText (i)
|
||||
|
||||
if (texto_left and texto_right) then
|
||||
texto_left = texto_left:gsub (("|T(.*)|t "), "")
|
||||
texto_left = texto_left:gsub(("|T(.*)|t "), "")
|
||||
reportar [#reportar+1] = ""..texto_left.." "..texto_right..""
|
||||
end
|
||||
end
|
||||
@@ -999,7 +999,7 @@ function _detalhes:BossInfoRowClick (barra, param1)
|
||||
texto_right = texto_right:GetText()
|
||||
|
||||
if (texto_left and texto_right) then
|
||||
texto_left = texto_left:gsub (("|T(.*)|t "), "")
|
||||
texto_left = texto_left:gsub(("|T(.*)|t "), "")
|
||||
reportar [#reportar+1] = ""..texto_left.." "..texto_right..""
|
||||
end
|
||||
end
|
||||
@@ -1254,20 +1254,20 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
if (L) then
|
||||
EncounterDetailsFrame.boss_icone:SetTexture(Texture)
|
||||
EncounterDetailsFrame.boss_icone:SetTexCoord (L, R, T, B)
|
||||
EncounterDetailsFrame.boss_icone:SetTexCoord(L, R, T, B)
|
||||
else
|
||||
EncounterDetailsFrame.boss_icone:SetTexture([[Interface\CHARACTERFRAME\TempPortrait]])
|
||||
EncounterDetailsFrame.boss_icone:SetTexCoord (0, 1, 0, 1)
|
||||
EncounterDetailsFrame.boss_icone:SetTexCoord(0, 1, 0, 1)
|
||||
end
|
||||
|
||||
--[=[
|
||||
local file, L, R, T, B = EncounterDetails:GetRaidBackground (_combat_object.is_boss.mapid)
|
||||
if (file) then
|
||||
EncounterDetailsFrame.raidbackground:SetTexture(file)
|
||||
EncounterDetailsFrame.raidbackground:SetTexCoord (L, R, T, B)
|
||||
EncounterDetailsFrame.raidbackground:SetTexCoord(L, R, T, B)
|
||||
else
|
||||
EncounterDetailsFrame.raidbackground:SetTexture([[Interface\Glues\LOADINGSCREENS\LoadScreenDungeon]])
|
||||
EncounterDetailsFrame.raidbackground:SetTexCoord (0, 1, 120/512, 408/512)
|
||||
EncounterDetailsFrame.raidbackground:SetTexCoord(0, 1, 120/512, 408/512)
|
||||
end
|
||||
--]=]
|
||||
|
||||
@@ -1306,8 +1306,8 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra.report_text = Loc ["STRING_PLUGIN_NAME"].."! "..Loc ["STRING_DAMAGE_TAKEN_REPORT"]
|
||||
end
|
||||
|
||||
if (jogador.nome:find ("-")) then
|
||||
barra.lineText1:SetText(jogador.nome:gsub (("-.*"), ""))
|
||||
if (jogador.nome:find("-")) then
|
||||
barra.lineText1:SetText(jogador.nome:gsub(("-.*"), ""))
|
||||
else
|
||||
barra.lineText1:SetText(jogador.nome)
|
||||
end
|
||||
@@ -1318,7 +1318,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
barra.jogador = jogador
|
||||
|
||||
barra.textura:SetStatusBarColor (_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
barra.textura:SetStatusBarColor(_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
|
||||
if (index == 1) then
|
||||
barra.textura:SetValue(100)
|
||||
@@ -1331,11 +1331,11 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
barra.icone:SetTexture(texture)
|
||||
barra.icone:SetTexCoord (l, r, t, b)
|
||||
barra.icone:SetTexCoord(l, r, t, b)
|
||||
else
|
||||
barra.icone:SetTexture("Interface\\AddOns\\Details\\images\\classes_small")
|
||||
if (EncounterDetails.class_coords [jogador.classe]) then
|
||||
barra.icone:SetTexCoord (_unpack(EncounterDetails.class_coords [jogador.classe]))
|
||||
barra.icone:SetTexCoord(_unpack(EncounterDetails.class_coords [jogador.classe]))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1535,7 +1535,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra.jogador = habilidade --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
|
||||
|
||||
local spellSchool = _detalhes.spell_school_cache [nome_magia] or 1
|
||||
local r, g, b = _detalhes:GetSpellSchoolColor (spellSchool)
|
||||
local r, g, b = _detalhes:GetSpellSchoolColor(spellSchool)
|
||||
|
||||
barra.t:SetVertexColor(r, g, b)
|
||||
|
||||
@@ -1547,7 +1547,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
end
|
||||
|
||||
barra.icone:SetTexture(icone_magia)
|
||||
barra.icone:SetTexCoord (.1, .9, .1, .9)
|
||||
barra.icone:SetTexCoord(.1, .9, .1, .9)
|
||||
|
||||
barra:Show()
|
||||
quantidade = quantidade + 1
|
||||
@@ -1601,7 +1601,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local nome = jogador.nome
|
||||
|
||||
if (not nome:find ("%*")) then
|
||||
if (not nome:find("%*")) then
|
||||
local tabela = {nome = nome, total = 0, dano_em = {}, dano_em_total = 0, damage_from = {}, damage_from_total = 0}
|
||||
|
||||
--total de dano que ele causou
|
||||
@@ -1673,7 +1673,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
GameCooltip:AddIcon ([[Interface\AddOns\Details\images\classes_small]], 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, (coords[1]), (coords[2]), (coords[3]), (coords[4]))
|
||||
end
|
||||
|
||||
local actorClass = Details:GetClass (esta_tabela[1])
|
||||
local actorClass = Details:GetClass(esta_tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
@@ -1722,7 +1722,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
GameCooltip:AddIcon ([[Interface\AddOns\Details\images\classes_small]], 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, (coords[1]), (coords[2]), (coords[3]), (coords[4]))
|
||||
end
|
||||
|
||||
local actorClass = Details:GetClass (esta_tabela[1])
|
||||
local actorClass = Details:GetClass(esta_tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
@@ -1822,8 +1822,8 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
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
|
||||
|
||||
--barra.textura:SetStatusBarColor (_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
barra.textura:SetStatusBarColor (1, 1, 1, 1) --a cor pode ser a spell school da magia
|
||||
--barra.textura:SetStatusBarColor(_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
barra.textura:SetStatusBarColor(1, 1, 1, 1) --a cor pode ser a spell school da magia
|
||||
barra.textura:SetValue(100)
|
||||
|
||||
barra:Show()
|
||||
@@ -1923,7 +1923,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
barra.jogador = tabela
|
||||
|
||||
--barra.textura:SetStatusBarColor (_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
--barra.textura:SetStatusBarColor(_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
|
||||
if (index == 1) then
|
||||
barra.textura:SetValue(100)
|
||||
@@ -1933,7 +1933,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
end
|
||||
|
||||
barra.icone:SetTexture(icone_magia)
|
||||
barra.icone:SetTexCoord (.1, .9, .1, .9)
|
||||
barra.icone:SetTexCoord(.1, .9, .1, .9)
|
||||
|
||||
barra:Show()
|
||||
|
||||
@@ -2026,7 +2026,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
barra.jogador = tabela
|
||||
|
||||
--barra.textura:SetStatusBarColor (_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
--barra.textura:SetStatusBarColor(_unpack(_detalhes.class_colors [jogador.classe]))
|
||||
|
||||
if (index == 1) then
|
||||
barra.textura:SetValue(100)
|
||||
@@ -2036,7 +2036,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
end
|
||||
|
||||
barra.icone:SetTexture(icone_magia)
|
||||
barra.icone:SetTexCoord (.1, .9, .1, .9)
|
||||
barra.icone:SetTexCoord(.1, .9, .1, .9)
|
||||
|
||||
barra:Show()
|
||||
|
||||
@@ -2078,14 +2078,14 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local overlayTexture = barra:CreateTexture(nil, "overlay")
|
||||
overlayTexture:SetAllPoints()
|
||||
overlayTexture:SetColorTexture (1, 1, 1)
|
||||
overlayTexture:SetColorTexture(1, 1, 1)
|
||||
overlayTexture:SetAlpha(1)
|
||||
overlayTexture:Hide()
|
||||
barra.OverlayTexture = overlayTexture
|
||||
end
|
||||
|
||||
if (tabela [3]:find ("-")) then
|
||||
barra.lineText1:SetText(index..". "..tabela [3]:gsub (("-.*"), ""))
|
||||
if (tabela [3]:find("-")) then
|
||||
barra.lineText1:SetText(index..". "..tabela [3]:gsub(("-.*"), ""))
|
||||
else
|
||||
barra.lineText1:SetText(index..". "..tabela [3])
|
||||
end
|
||||
@@ -2097,11 +2097,11 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra.jogador = tabela
|
||||
barra.extra = habilidades_info
|
||||
|
||||
barra.textura:SetStatusBarColor (_unpack(_detalhes.class_colors [tabela [4]]))
|
||||
barra.textura:SetStatusBarColor(_unpack(_detalhes.class_colors [tabela [4]]))
|
||||
barra.textura:SetValue(100)
|
||||
|
||||
barra.icone:SetTexture("Interface\\AddOns\\Details\\images\\classes_small")
|
||||
barra.icone:SetTexCoord (_unpack(EncounterDetails.class_coords [tabela [4]]))
|
||||
barra.icone:SetTexCoord(_unpack(EncounterDetails.class_coords [tabela [4]]))
|
||||
|
||||
barra:Show()
|
||||
|
||||
|
||||
@@ -186,18 +186,18 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
row.t = t
|
||||
row.textura:SetStatusBarTexture (t)
|
||||
row.textura:SetStatusBarColor (.5, .5, .5, 0)
|
||||
row.textura:SetStatusBarColor(.5, .5, .5, 0)
|
||||
row.textura:SetMinMaxValues(0,100)
|
||||
|
||||
row.lineText1 = row.textura:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText1:SetPoint("LEFT", row.textura, "LEFT", 22, -1)
|
||||
row.lineText1:SetJustifyH("LEFT")
|
||||
row.lineText1:SetTextColor (1,1,1,1)
|
||||
row.lineText1:SetTextColor(1,1,1,1)
|
||||
|
||||
row.lineText4 = row.textura:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText4:SetPoint("RIGHT", row.textura, "RIGHT", -2, 0)
|
||||
row.lineText4:SetJustifyH("RIGHT")
|
||||
row.lineText4:SetTextColor (1,1,1,1)
|
||||
row.lineText4:SetTextColor(1,1,1,1)
|
||||
|
||||
row.textura:Show()
|
||||
end
|
||||
@@ -507,7 +507,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
--time of death and player name
|
||||
GameCooltip:AddLine(vRowFrame.dead[6].." "..vRowFrame.dead[3])
|
||||
local class, l, r, t, b = _detalhes:GetClass (vRowFrame.dead[3])
|
||||
local class, l, r, t, b = _detalhes:GetClass(vRowFrame.dead[3])
|
||||
if (class) then
|
||||
GameCooltip:AddIcon ([[Interface\AddOns\Details\images\classes_small]], 1, 1, 12, 12, l, r, t, b)
|
||||
end
|
||||
@@ -552,7 +552,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
vRowFrame.icon = vRowFrame:CreateTexture(nil, "overlay")
|
||||
vRowFrame.icon:SetTexture("Interface\\WorldStateFrame\\SkullBones")
|
||||
vRowFrame.icon:SetTexCoord (0.046875, 0.453125, 0.046875, 0.46875)
|
||||
vRowFrame.icon:SetTexCoord(0.046875, 0.453125, 0.046875, 0.46875)
|
||||
vRowFrame.icon:SetWidth(16)
|
||||
vRowFrame.icon:SetHeight(16)
|
||||
vRowFrame.icon:SetPoint("center", "DetailsEncountersVerticalLine"..i, "center")
|
||||
@@ -762,7 +762,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
dlabel.lefttext.text = EncounterDetails:GetOnlyName(player [1])
|
||||
dlabel.righttext.text = _detalhes:ToK (_math_floor(player [2]))
|
||||
|
||||
local class = EncounterDetails:GetClass (player [1])
|
||||
local class = EncounterDetails:GetClass(player [1])
|
||||
local spec = EncounterDetails:GetSpec (player [1])
|
||||
|
||||
if (spec) then
|
||||
@@ -775,7 +775,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
else
|
||||
dlabel.icon.texture = [[Interface\LFGFRAME\LFGROLE_BW]]
|
||||
dlabel.icon:SetTexCoord (.25, .5, 0, 1)
|
||||
dlabel.icon:SetTexCoord(.25, .5, 0, 1)
|
||||
end
|
||||
|
||||
dlabel.lefttext:Show()
|
||||
@@ -799,13 +799,13 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
hlabel.lefttext.text = EncounterDetails:GetOnlyName(player [1])
|
||||
hlabel.righttext.text = _detalhes:ToK (_math_floor(player [2]))
|
||||
|
||||
local classe = _detalhes:GetClass (player [1])
|
||||
local classe = _detalhes:GetClass(player [1])
|
||||
if (classe) then
|
||||
hlabel.icon:SetTexture([[Interface\AddOns\Details\images\classes_small_alpha]])
|
||||
hlabel.icon:SetTexCoord (unpack(_detalhes.class_coords [classe]))
|
||||
hlabel.icon:SetTexCoord(unpack(_detalhes.class_coords [classe]))
|
||||
else
|
||||
hlabel.icon:SetTexture([[Interface\LFGFRAME\LFGROLE_BW]])
|
||||
hlabel.icon:SetTexCoord (.25, .5, 0, 1)
|
||||
hlabel.icon:SetTexCoord(.25, .5, 0, 1)
|
||||
end
|
||||
|
||||
hlabel.lefttext:Show()
|
||||
@@ -831,8 +831,8 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
end
|
||||
local phase_on_leave = function(self)
|
||||
table.wipe (self.damage_actors)
|
||||
table.wipe (self.heal_actors)
|
||||
table.wipe(self.damage_actors)
|
||||
table.wipe(self.heal_actors)
|
||||
|
||||
for _, f in ipairs(g.PhaseTextures) do
|
||||
f.texture:SetBlendMode("BLEND")
|
||||
@@ -896,7 +896,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
local t = f:CreateTexture(nil, "artwork")
|
||||
t:SetAllPoints()
|
||||
t:SetColorTexture (1, 1, 1, phase_alpha)
|
||||
t:SetColorTexture(1, 1, 1, phase_alpha)
|
||||
t.original_color = {1, 1, 1}
|
||||
f.texture = t
|
||||
|
||||
@@ -970,7 +970,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
--create lines for damage and time
|
||||
for i = 1, 8, 1 do
|
||||
local line = g:CreateTexture(nil, "overlay")
|
||||
line:SetColorTexture (unpack(CONST_DAMAGE_LINES_COLOR))
|
||||
line:SetColorTexture(unpack(CONST_DAMAGE_LINES_COLOR))
|
||||
line:SetWidth(CONST_CHART_WIDTH)
|
||||
line:SetHeight(1)
|
||||
|
||||
@@ -993,7 +993,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
texture:SetWidth(9)
|
||||
texture:SetHeight(9)
|
||||
texture:SetPoint("TOPLEFT", EncounterDetails.Frame, "TOPLEFT", (i*65) + 499, -81)
|
||||
texture:SetColorTexture (unpack(grafico_cores[i]))
|
||||
texture:SetColorTexture(unpack(grafico_cores[i]))
|
||||
local text = g:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
text:SetPoint("LEFT", texture, "right", 2, 0)
|
||||
text:SetJustifyH("LEFT")
|
||||
@@ -1011,7 +1011,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
v:SetHeight(CONST_CHART_HEIGHT + 1)
|
||||
v:SetPoint("top", g, "top", 0, 1)
|
||||
v:SetPoint("left", g, "left", CONST_CHART_DAMAGELINE_X_POSITION + 30, 0) --leave 30 pixels for the damage text
|
||||
v:SetColorTexture (1, 1, 1, 1)
|
||||
v:SetColorTexture(1, 1, 1, 1)
|
||||
|
||||
--horizontal line at the bottom side
|
||||
local h = g:CreateTexture(nil, "overlay")
|
||||
@@ -1019,7 +1019,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
h:SetHeight(1)
|
||||
h:SetPoint("top", g, "top", 0, -CONST_CHART_HEIGHT + CONST_PHASE_BAR_HEIGHT*2)
|
||||
h:SetPoint("left", g, "left")
|
||||
h:SetColorTexture (1, 1, 1, 1)
|
||||
h:SetColorTexture(1, 1, 1, 1)
|
||||
end
|
||||
|
||||
-- ~start ~main ~frame ~baseframe ~bossframe
|
||||
@@ -1063,7 +1063,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
local name_bg_texture = BossFrame:CreateTexture(nil, "background")
|
||||
name_bg_texture:SetTexture([[Interface\PetBattles\_PetBattleHorizTile]], true)
|
||||
name_bg_texture:SetHorizTile(true)
|
||||
name_bg_texture:SetTexCoord (0, 1, 126/256, 19/256)
|
||||
name_bg_texture:SetTexCoord(0, 1, 126/256, 19/256)
|
||||
name_bg_texture:SetPoint("topleft", BossFrame, "topleft", 2, -22)
|
||||
name_bg_texture:SetPoint("bottomright", BossFrame, "bottomright")
|
||||
name_bg_texture:SetHeight(54)
|
||||
@@ -1126,7 +1126,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
BossFrame.raidbackground = BossFrame:CreateTexture(nil, "BORDER")
|
||||
BossFrame.raidbackground:SetPoint("TOPLEFT", BossFrame, "TOPLEFT", 0, -74)
|
||||
BossFrame.raidbackground:SetPoint("bottomright", BossFrame, "bottomright", 0, 0)
|
||||
BossFrame.raidbackground:SetDrawLayer ("BORDER", 2)
|
||||
BossFrame.raidbackground:SetDrawLayer("BORDER", 2)
|
||||
BossFrame.raidbackground:SetAlpha(0.1)
|
||||
|
||||
--bot�o fechar
|
||||
@@ -1445,7 +1445,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
local i = 0
|
||||
local lower = string.lower
|
||||
for index, data in ipairs(emote_pool) do
|
||||
if (lower (data [2]):find (lower(searching))) then
|
||||
if (lower (data [2]):find(lower(searching))) then
|
||||
i = i + 1
|
||||
emote_search_table [i] = data
|
||||
end
|
||||
@@ -1485,9 +1485,9 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
local color_string = EncounterDetails.BossWhispColors [data [4]]
|
||||
local color_table = ChatTypeInfo [color_string]
|
||||
|
||||
bar.righttext:SetTextColor (color_table.r, color_table.g, color_table.b)
|
||||
bar.righttext:SetTextColor(color_table.r, color_table.g, color_table.b)
|
||||
bar.icon:SetTexture([[Interface\CHARACTERFRAME\UI-StateIcon]])
|
||||
bar.icon:SetTexCoord (0, 0.5, 0.5, 1)
|
||||
bar.icon:SetTexCoord(0, 0.5, 0.5, 1)
|
||||
bar.icon:SetBlendMode("ADD")
|
||||
else
|
||||
bar:Hide()
|
||||
@@ -1545,20 +1545,20 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
local reportFunc = function()
|
||||
-- remove textures
|
||||
text = text:gsub ("(|T).*(|t)", "")
|
||||
text = text:gsub("(|T).*(|t)", "")
|
||||
-- remove colors
|
||||
text = text:gsub ("|c%x?%x?%x?%x?%x?%x?%x?%x?", "")
|
||||
text = text:gsub ("|r", "")
|
||||
text = text:gsub("|c%x?%x?%x?%x?%x?%x?%x?%x?", "")
|
||||
text = text:gsub("|r", "")
|
||||
-- replace links
|
||||
for _, spellid in text:gmatch ("(|Hspell:)(.-)(|h)") do
|
||||
local spell = tonumber (spellid)
|
||||
local spell = tonumber(spellid)
|
||||
local link = GetSpellLink(spell)
|
||||
text = text:gsub ("(|Hspell).*(|h)", link)
|
||||
text = text:gsub("(|Hspell).*(|h)", link)
|
||||
end
|
||||
-- remove unit links
|
||||
text = text:gsub ("(|Hunit).-(|h)", "")
|
||||
text = text:gsub("(|Hunit).-(|h)", "")
|
||||
-- remove the left space
|
||||
text = text:gsub ("^%s$", "")
|
||||
text = text:gsub("^%s$", "")
|
||||
|
||||
EncounterDetails:SendReportLines ({"Details! Encounter Emote at " .. timeString, "\"" .. text .. "\""})
|
||||
end
|
||||
@@ -1695,20 +1695,20 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
--"|Hunit:77182:Oregorger|hOregorger prepares to cast |cFFFF0000|Hspell:156879|h[Blackrock Barrage]|h|r."
|
||||
|
||||
-- remove textures
|
||||
text = text:gsub ("(|T).*(|t)", "")
|
||||
text = text:gsub("(|T).*(|t)", "")
|
||||
-- remove colors
|
||||
text = text:gsub ("|c%x?%x?%x?%x?%x?%x?%x?%x?", "")
|
||||
text = text:gsub ("|r", "")
|
||||
text = text:gsub("|c%x?%x?%x?%x?%x?%x?%x?%x?", "")
|
||||
text = text:gsub("|r", "")
|
||||
-- replace links
|
||||
for _, spellid in text:gmatch ("(|Hspell:)(.-)(|h)") do
|
||||
local spell = tonumber (spellid)
|
||||
local spell = tonumber(spellid)
|
||||
local link = GetSpellLink(spell)
|
||||
text = text:gsub ("(|Hspell).*(|h)", link)
|
||||
text = text:gsub("(|Hspell).*(|h)", link)
|
||||
end
|
||||
-- remove unit links
|
||||
text = text:gsub ("(|Hunit).-(|h)", "")
|
||||
text = text:gsub("(|Hunit).-(|h)", "")
|
||||
-- remove the left space
|
||||
text = text:gsub ("^%s$", "")
|
||||
text = text:gsub("^%s$", "")
|
||||
|
||||
tinsert(EncounterDetails.report_lines, timeString .. " " .. text)
|
||||
added = added + 1
|
||||
@@ -1842,10 +1842,10 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
for i = 1, CONST_MAX_AURA_LINES do
|
||||
local anchor_frame = CreateFrame("frame", "BossFrameBossModsAnchor" .. i, BossFrame, "BackdropTemplate")
|
||||
|
||||
local spellicon = DetailsFrameWork:NewImage (anchor_frame, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
local spellicon = DetailsFrameWork:NewImage(anchor_frame, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
|
||||
--timerId
|
||||
local spellid = DetailsFrameWork:CreateTextEntry (anchor_frame, EncounterDetails.empty_function, 80, 20, nil, "$parentSpellId")
|
||||
local spellid = DetailsFrameWork:CreateTextEntry(anchor_frame, EncounterDetails.empty_function, 80, 20, nil, "$parentSpellId")
|
||||
spellid:SetTemplate(AurasButtonTemplate)
|
||||
spellid:SetHook("OnEditFocusGained", on_focus_gain)
|
||||
spellid:SetHook("OnEditFocusLost", on_focus_lost)
|
||||
@@ -1853,7 +1853,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
spellid:SetHook("OnLeave", on_leave_spell)
|
||||
|
||||
--ability name
|
||||
local spellname = DetailsFrameWork:CreateTextEntry (anchor_frame, EncounterDetails.empty_function, 180, 20, nil, "$parentSpellName")
|
||||
local spellname = DetailsFrameWork:CreateTextEntry(anchor_frame, EncounterDetails.empty_function, 180, 20, nil, "$parentSpellName")
|
||||
spellname:SetTemplate(AurasButtonTemplate)
|
||||
spellname:SetHook("OnEditFocusGained", on_focus_gain)
|
||||
spellname:SetHook("OnEditFocusLost", on_focus_lost)
|
||||
@@ -1887,16 +1887,16 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
for i = 1, CONST_MAX_AURA_LINES do
|
||||
local anchor_frame = CreateFrame("frame", "BossFrameSpellAnchor" .. i, BossFrame, "BackdropTemplate")
|
||||
|
||||
local spellicon = DetailsFrameWork:NewImage (anchor_frame, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
local spellicon = DetailsFrameWork:NewImage(anchor_frame, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
|
||||
local spellid = DetailsFrameWork:CreateTextEntry (anchor_frame, EncounterDetails.empty_function, 80, 20)
|
||||
local spellid = DetailsFrameWork:CreateTextEntry(anchor_frame, EncounterDetails.empty_function, 80, 20)
|
||||
spellid:SetTemplate(AurasButtonTemplate)
|
||||
spellid:SetHook("OnEditFocusGained", on_focus_gain)
|
||||
spellid:SetHook("OnEditFocusLost", on_focus_lost)
|
||||
spellid:SetHook("OnEnter", on_enter_spell)
|
||||
spellid:SetHook("OnLeave", on_leave_spell)
|
||||
|
||||
local spellname = DetailsFrameWork:CreateTextEntry (anchor_frame, EncounterDetails.empty_function, 160, 20)
|
||||
local spellname = DetailsFrameWork:CreateTextEntry(anchor_frame, EncounterDetails.empty_function, 160, 20)
|
||||
spellname:SetTemplate(AurasButtonTemplate)
|
||||
spellname:SetHook("OnEditFocusGained", on_focus_gain)
|
||||
spellname:SetHook("OnEditFocusLost", on_focus_lost)
|
||||
@@ -2133,9 +2133,9 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
if (timer_table.id == encounter_id) then
|
||||
local spell = timer_id
|
||||
if (spell and not already_added [spell]) then
|
||||
local int_spell = tonumber (spell)
|
||||
local int_spell = tonumber(spell)
|
||||
if (not int_spell) then
|
||||
local spellname = timer_table [2]:gsub (" %(.%)", "")
|
||||
local spellname = timer_table [2]:gsub(" %(.%)", "")
|
||||
tinsert(t, {label = spellname, value = {timer_table [2], spellname, timer_table [5], timer_table.id}, icon = timer_table [5], onclick = on_select_bw_bar})
|
||||
elseif (int_spell < 0) then
|
||||
local title, description, depth, abilityIcon, displayInfo, siblingID, nextSectionID, filteredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = C_EncounterJournal.GetSectionInfo (abs(int_spell))
|
||||
@@ -2182,8 +2182,8 @@ function PhaseFrame:ClearAll()
|
||||
end
|
||||
|
||||
--update damage and healing scrolls
|
||||
table.wipe (PhaseFrame.DamageTable)
|
||||
table.wipe (PhaseFrame.HealingTable)
|
||||
table.wipe(PhaseFrame.DamageTable)
|
||||
table.wipe(PhaseFrame.HealingTable)
|
||||
|
||||
--refresh the scroll
|
||||
PhaseFrame.Damage_Scroll:Refresh()
|
||||
@@ -2239,13 +2239,13 @@ function PhaseFrame.OnSelectPhase (phaseSelected)
|
||||
end
|
||||
|
||||
--update damage and healing scrolls
|
||||
table.wipe (PhaseFrame.DamageTable)
|
||||
table.wipe(PhaseFrame.DamageTable)
|
||||
for charName, amount in pairs(phaseData.damage [phaseSelected]) do
|
||||
tinsert(PhaseFrame.DamageTable, {charName, amount})
|
||||
end
|
||||
table.sort (PhaseFrame.DamageTable, function(a, b) return a[2] > b[2] end)
|
||||
|
||||
table.wipe (PhaseFrame.HealingTable)
|
||||
table.wipe(PhaseFrame.HealingTable)
|
||||
for charName, amount in pairs(phaseData.heal [phaseSelected]) do
|
||||
tinsert(PhaseFrame.HealingTable, {charName, amount})
|
||||
end
|
||||
@@ -2339,11 +2339,11 @@ local ScrollRefresh = function(self, data, offset, total_lines)
|
||||
local texture, L, R, T, B = _detalhes:GetPlayerIcon (player[1], PhaseFrame.CurrentSegment)
|
||||
|
||||
line.icon:SetTexture(texture)
|
||||
line.icon:SetTexCoord (L, R, T, B)
|
||||
line.icon:SetTexCoord(L, R, T, B)
|
||||
line.name:SetText(index .. ". " .. removeRealm (_, player[1]))
|
||||
line.done:SetText(formatToK (_, player[2]) .. " (" .. format ("%.1f", player[2] / topValue * 100) .. "%)")
|
||||
line.done:SetText(formatToK (_, player[2]) .. " (" .. format("%.1f", player[2] / topValue * 100) .. "%)")
|
||||
line.statusbar:SetValue(player[2] / topValue * 100)
|
||||
local actorClass = Details:GetClass (player[1])
|
||||
local actorClass = Details:GetClass(player[1])
|
||||
if (actorClass) then
|
||||
line.statusbar:SetColor (actorClass)
|
||||
else
|
||||
@@ -2642,7 +2642,7 @@ end
|
||||
options:SetIcon ([[Interface\Buttons\UI-OptionsButton]], 14, 14, nil, {0, 1, 0, 1}, nil, 3)
|
||||
|
||||
--macro box
|
||||
BossFrame.MacroEditBox = DetailsFrameWork:CreateTextEntry (frame, function()end, 300, 20)
|
||||
BossFrame.MacroEditBox = DetailsFrameWork:CreateTextEntry(frame, function()end, 300, 20)
|
||||
BossFrame.MacroEditBox:SetPoint("left", options, "right", 10, 0)
|
||||
BossFrame.MacroEditBox:SetAlpha(0.5)
|
||||
BossFrame.MacroEditBox:SetText("/run Details:OpenPlugin ('Encounter Breakdown')")
|
||||
@@ -2655,7 +2655,7 @@ end
|
||||
|
||||
BossFrame.MacroEditBox.BackgroundLabel = DetailsFrameWork:CreateLabel(BossFrame.MacroEditBox, "macro")
|
||||
BossFrame.MacroEditBox.BackgroundLabel:SetPoint("left", BossFrame.MacroEditBox, "left", 6, 0)
|
||||
BossFrame.MacroEditBox.BackgroundLabel:SetTextColor (.3, .3, .3, .98)
|
||||
BossFrame.MacroEditBox.BackgroundLabel:SetTextColor(.3, .3, .3, .98)
|
||||
|
||||
--Caixa do Dano total tomado pela Raid
|
||||
|
||||
|
||||
@@ -258,9 +258,9 @@ local function CreatePluginFrames()
|
||||
left_resize:SetNormalTexture([[Interface\CHATFRAME\UI-ChatIM-SizeGrabber-Up]])
|
||||
left_resize:SetHighlightTexture([[Interface\CHATFRAME\UI-ChatIM-SizeGrabber-Highlight]])
|
||||
left_resize:SetPushedTexture([[Interface\CHATFRAME\UI-ChatIM-SizeGrabber-Down]])
|
||||
left_resize:GetNormalTexture():SetTexCoord (1, 0, 0, 1)
|
||||
left_resize:GetHighlightTexture():SetTexCoord (1, 0, 0, 1)
|
||||
left_resize:GetPushedTexture():SetTexCoord (1, 0, 0, 1)
|
||||
left_resize:GetNormalTexture():SetTexCoord(1, 0, 0, 1)
|
||||
left_resize:GetHighlightTexture():SetTexCoord(1, 0, 0, 1)
|
||||
left_resize:GetPushedTexture():SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
left_resize:SetScript("OnMouseDown", function(self)
|
||||
if (not SOF.resizing and not StreamOverlay.db.main_frame_locked) then
|
||||
@@ -470,7 +470,7 @@ local function CreatePluginFrames()
|
||||
|
||||
--left
|
||||
line.icon1:SetTexture(data [1])
|
||||
line.icon1:SetTexCoord (5/64, 59/64, 5/64, 59/64)
|
||||
line.icon1:SetTexCoord(5/64, 59/64, 5/64, 59/64)
|
||||
|
||||
local text = data [2]
|
||||
line.text1:SetText(text)
|
||||
@@ -500,13 +500,13 @@ local function CreatePluginFrames()
|
||||
end
|
||||
|
||||
if (data[7]) then
|
||||
line.text2:SetTextColor (data[7].r, data[7].g, data[7].b)
|
||||
line.text2:SetTextColor(data[7].r, data[7].g, data[7].b)
|
||||
else
|
||||
line.text2:SetTextColor (1, 1, 1)
|
||||
line.text2:SetTextColor(1, 1, 1)
|
||||
end
|
||||
|
||||
line.icon2:SetTexture(data [4])
|
||||
line.icon2:SetTexCoord (unpack(data [5]))
|
||||
line.icon2:SetTexCoord(unpack(data [5]))
|
||||
if (data [4] == defaultAttackIcon) then
|
||||
line.icon2:SetSize(iconSize*0.8, iconSize*0.8)
|
||||
line.icon2:SetPoint("left", line, "center", 8, 0)
|
||||
@@ -584,7 +584,7 @@ local function CreatePluginFrames()
|
||||
local statusbar = CreateFrame("StatusBar", "StreamOverlayBar" .. index .. "StatusBar", f, "BackdropTemplate")
|
||||
local statusbar_texture = statusbar:CreateTexture(nil, "border")
|
||||
statusbar_texture:SetTexture(1, 1, 1, 0.15)
|
||||
statusbar:SetStatusBarColor (0, 0, 0, 0)
|
||||
statusbar:SetStatusBarColor(0, 0, 0, 0)
|
||||
statusbar:SetStatusBarTexture (statusbar_texture)
|
||||
statusbar:SetMinMaxValues(0, 100)
|
||||
statusbar:SetValue(0)
|
||||
@@ -992,7 +992,7 @@ local parse_target_icon = function(targetObject, target)
|
||||
end
|
||||
end
|
||||
else
|
||||
local _, class = UnitClass (targetObject.nome)
|
||||
local _, class = UnitClass(targetObject.nome)
|
||||
if (class) then
|
||||
icon2 = [[Interface\AddOns\Details\images\classes_small_alpha]]
|
||||
icon2coords = Details.class_coords [class]
|
||||
@@ -1003,7 +1003,7 @@ local parse_target_icon = function(targetObject, target)
|
||||
end
|
||||
end
|
||||
else
|
||||
local _, class = UnitClass (target)
|
||||
local _, class = UnitClass(target)
|
||||
if (class) then
|
||||
icon2 = [[Interface\AddOns\Details\images\classes_small_alpha]]
|
||||
icon2coords = Details.class_coords [class]
|
||||
@@ -1466,7 +1466,7 @@ eventFrame:SetScript("OnEvent", function(self, event, ...)
|
||||
|
||||
end)
|
||||
|
||||
local format_time = function(v) return "-" .. format ("%.2f", v) end
|
||||
local format_time = function(v) return "-" .. format("%.2f", v) end
|
||||
|
||||
--when the player die, show the events before the death
|
||||
function StreamOverlay.OnDeath (_, token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, death_table, last_cooldown, death_at_combattime, max_health)
|
||||
@@ -1826,7 +1826,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
|
||||
local arrowIconTable = {}
|
||||
for _, arrow in ipairs(arrows) do
|
||||
arrowIconTable[#arrowIconTable+1] = {value = arrow, label = arrow:gsub ("Interface(.*)\\", ""), onclick = setArrowTextureCallback, icon = arrow}
|
||||
arrowIconTable[#arrowIconTable+1] = {value = arrow, label = arrow:gsub("Interface(.*)\\", ""), onclick = setArrowTextureCallback, icon = arrow}
|
||||
end
|
||||
|
||||
--
|
||||
@@ -2581,10 +2581,10 @@ editbox:SetSize(300, 700)
|
||||
editbox:SetPoint("topleft", UIParent, "topleft")
|
||||
editbox:SetBackdrop({bgFile = "Interface\\AddOns\\Details\\images\\background", tile = true, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
editbox:SetBackdropColor(0, 0, 0, .2)
|
||||
editbox:SetAutoFocus (false)
|
||||
editbox:SetAutoFocus(false)
|
||||
editbox:ClearFocus()
|
||||
editbox:SetMultiLine (true)
|
||||
editbox:SetFontObject (GameFontHighlightSmall)
|
||||
editbox:SetFontObject(GameFontHighlightSmall)
|
||||
editbox:SetJustifyH("CENTER")
|
||||
editbox:EnableMouse(true)
|
||||
editbox:SetText("")
|
||||
@@ -2599,9 +2599,9 @@ local helpful_spells = StreamOverlay.HelpfulSpells
|
||||
if (not harmful_spells [spellid] and not helpful_spells [spellid]) then
|
||||
if (bit.band(who_flags, 0x00000400) ~= 0 and who_name) then
|
||||
local text = editbox:GetText()
|
||||
if (not list:find (spellid) and not text:find (spellid)) then
|
||||
if (not list:find(spellid) and not text:find(spellid)) then
|
||||
|
||||
local class = _detalhes:GetClass (who_name) or "unknow"
|
||||
local class = _detalhes:GetClass(who_name) or "unknow"
|
||||
|
||||
if (class ~= "unknow") then
|
||||
text = text .. "\n"..spellid .. " " .. spellname .. " " .. class
|
||||
|
||||
@@ -372,7 +372,7 @@ local function CreatePluginFrames (data)
|
||||
UpdateTableFromThreatSituation(threat_table, "player", unitId)
|
||||
|
||||
--pet
|
||||
if (UnitExists ("pet")) then
|
||||
if (UnitExists("pet")) then
|
||||
local thisplayer_name = GetUnitName("pet", true) .. " *PET*"
|
||||
local threat_table_index = ThreatMeter.player_list_hash [thisplayer_name]
|
||||
local threat_table = ThreatMeter.player_list_indexes [threat_table_index]
|
||||
@@ -443,7 +443,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
if needRelativePullBar then
|
||||
thisRow._icon:SetTexture([[Interface\PVPFrame\Icon-Combat]])
|
||||
thisRow._icon:SetTexCoord (0, 1, 0, 1)
|
||||
thisRow._icon:SetTexCoord(0, 1, 0, 1)
|
||||
|
||||
local myPullThreat = me[6]*(100/me[2])
|
||||
local r,g = ThreatMeter:percent_color(me[2], true)
|
||||
@@ -465,7 +465,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
if needRangedPullBar and ((not threatActor) or (threatActor[7] < 130)) then
|
||||
thisRow._icon:SetTexture([[Interface\PaperDoll\UI-PaperDoll-Slot-Ranged]])
|
||||
thisRow._icon:SetTexCoord (0, 1, 0, 1)
|
||||
thisRow._icon:SetTexCoord(0, 1, 0, 1)
|
||||
|
||||
thisRow:SetLeftText ("Ranged pull at")
|
||||
thisRow:SetRightText(ThreatMeter:ToK2 (mainTankAbsoluteThreat*1.3) .. " (130.0%)")
|
||||
@@ -483,7 +483,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
if needMeleePullBar and ((not threatActor) or (threatActor[7] < 110)) then
|
||||
thisRow._icon:SetTexture([[Interface\PaperDoll\UI-PaperDoll-Slot-MainHand]])
|
||||
thisRow._icon:SetTexCoord (0, 1, 0, 1)
|
||||
thisRow._icon:SetTexCoord(0, 1, 0, 1)
|
||||
|
||||
thisRow:SetLeftText ("Melee pull at")
|
||||
thisRow:SetRightText(ThreatMeter:ToK2 (mainTankAbsoluteThreat*1.1) .. " (110.0%)")
|
||||
@@ -501,7 +501,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
if needMainTankDummyBar and ((not threatActor) or (not useAbsoluteMode) or (threatActor[6] < mainTankAbsoluteThreat)) then
|
||||
thisRow._icon:SetTexture([[Interface\LFGFrame\UI-LFG-Icon-PortraitRoles]])
|
||||
thisRow._icon:SetTexCoord (_unpack(RoleIconCoord ["TANK"]))
|
||||
thisRow._icon:SetTexCoord(_unpack(RoleIconCoord ["TANK"]))
|
||||
|
||||
thisRow:SetLeftText ("Current Tank")
|
||||
thisRow:SetRightText(ThreatMeter:ToK2 (mainTankAbsoluteThreat) .. " (100.0%)")
|
||||
@@ -530,7 +530,7 @@ local function CreatePluginFrames (data)
|
||||
if gougeThreshold and ((not threatActor) or (threatActor[6] < gougeThreshold)) then
|
||||
local spellName, _, spellTexture = GetSpellInfo(gougeSpellId)
|
||||
thisRow._icon:SetTexture(spellTexture)
|
||||
thisRow._icon:SetTexCoord (0, 1, 0, 1)
|
||||
thisRow._icon:SetTexCoord(0, 1, 0, 1)
|
||||
|
||||
local pct = gougeThreshold * 100 / mainTankAbsoluteThreat
|
||||
|
||||
@@ -551,7 +551,7 @@ local function CreatePluginFrames (data)
|
||||
if (threatActor) then
|
||||
local role = threatActor[4]
|
||||
thisRow._icon:SetTexture([[Interface\LFGFrame\UI-LFG-Icon-PortraitRoles]])
|
||||
thisRow._icon:SetTexCoord (_unpack(RoleIconCoord [role]))
|
||||
thisRow._icon:SetTexCoord(_unpack(RoleIconCoord [role]))
|
||||
|
||||
thisRow:SetLeftText (ThreatMeter:GetOnlyName(threatActor [1]))
|
||||
|
||||
@@ -608,10 +608,10 @@ local function CreatePluginFrames (data)
|
||||
if (threat_actor [2] and threat_actor [2] > 0.1) then
|
||||
local thisRow = ThreatMeter.ShownRows [#ThreatMeter.ShownRows]
|
||||
thisRow:SetLeftText (player)
|
||||
--thisRow.textleft:SetTextColor (unpack(RAID_CLASS_COLORS [threat_actor [5]]))
|
||||
--thisRow.textleft:SetTextColor(unpack(RAID_CLASS_COLORS [threat_actor [5]]))
|
||||
local role = threat_actor [4]
|
||||
thisRow._icon:SetTexture([[Interface\LFGFrame\UI-LFG-Icon-PortraitRoles]])
|
||||
thisRow._icon:SetTexCoord (_unpack(RoleIconCoord [role]))
|
||||
thisRow._icon:SetTexCoord(_unpack(RoleIconCoord [role]))
|
||||
thisRow:SetRightText (ThreatMeter:ToK2 (threat_actor [6]) .. " (" .. _cstr ("%.1f", threat_actor [2]) .. "%)")
|
||||
thisRow:SetValue(threat_actor [2])
|
||||
|
||||
@@ -665,7 +665,7 @@ local function CreatePluginFrames (data)
|
||||
for i = 1, GetNumGroupMembers(), 1 do
|
||||
local thisplayer_name = GetUnitName("raid"..i, true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
local _, class = UnitClass(thisplayer_name)
|
||||
local t = {thisplayer_name, 0, false, role, class, 0, 0}
|
||||
ThreatMeter.player_list_indexes [#ThreatMeter.player_list_indexes+1] = t
|
||||
ThreatMeter.player_list_hash [thisplayer_name] = #ThreatMeter.player_list_indexes
|
||||
@@ -675,14 +675,14 @@ local function CreatePluginFrames (data)
|
||||
for i = 1, GetNumGroupMembers()-1, 1 do
|
||||
local thisplayer_name = GetUnitName("party"..i, true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
local _, class = UnitClass(thisplayer_name)
|
||||
local t = {thisplayer_name, 0, false, role, class, 0, 0}
|
||||
ThreatMeter.player_list_indexes [#ThreatMeter.player_list_indexes+1] = t
|
||||
ThreatMeter.player_list_hash [thisplayer_name] = #ThreatMeter.player_list_indexes
|
||||
end
|
||||
local thisplayer_name = GetUnitName("player", true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
local _, class = UnitClass(thisplayer_name)
|
||||
local t = {thisplayer_name, 0, false, role, class, 0, 0}
|
||||
ThreatMeter.player_list_indexes [#ThreatMeter.player_list_indexes+1] = t
|
||||
ThreatMeter.player_list_hash [thisplayer_name] = #ThreatMeter.player_list_indexes
|
||||
@@ -690,12 +690,12 @@ local function CreatePluginFrames (data)
|
||||
else
|
||||
local thisplayer_name = GetUnitName("player", true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
local _, class = UnitClass(thisplayer_name)
|
||||
local t = {thisplayer_name, 0, false, role, class, 0, 0}
|
||||
ThreatMeter.player_list_indexes [#ThreatMeter.player_list_indexes+1] = t
|
||||
ThreatMeter.player_list_hash [thisplayer_name] = #ThreatMeter.player_list_indexes
|
||||
|
||||
if (UnitExists ("pet")) then
|
||||
if (UnitExists("pet")) then
|
||||
local thispet_name = GetUnitName("pet", true) .. " *PET*"
|
||||
local role = "DAMAGER"
|
||||
local t = {thispet_name, 0, false, role, class, 0, 0}
|
||||
@@ -906,7 +906,7 @@ function ThreatMeter:OnEvent (_, event, ...)
|
||||
elseif (command == Loc ["STRING_SLASH_SPEED"]) then
|
||||
|
||||
if (rest) then
|
||||
local speed = tonumber (rest)
|
||||
local speed = tonumber(rest)
|
||||
if (speed) then
|
||||
if (speed > 3) then
|
||||
speed = 3
|
||||
|
||||
@@ -183,10 +183,10 @@ local function CreatePluginFrames (data)
|
||||
--search for tanks in the raid or party group
|
||||
function Vanguard:IdentifyTanks()
|
||||
|
||||
table.wipe (Vanguard.TankList)
|
||||
table.wipe (Vanguard.TankHashNames)
|
||||
table.wipe (Vanguard.TankIncDamage)
|
||||
table.wipe (Vanguard.UnitIdCache)
|
||||
table.wipe(Vanguard.TankList)
|
||||
table.wipe(Vanguard.TankHashNames)
|
||||
table.wipe(Vanguard.TankIncDamage)
|
||||
table.wipe(Vanguard.UnitIdCache)
|
||||
|
||||
for i = 1, CONST_MAX_TANKS do
|
||||
Vanguard.auraUpdateFrames[i]:UnregisterEvent("UNIT_AURA")
|
||||
@@ -319,16 +319,16 @@ local function CreatePluginFrames (data)
|
||||
local bar = self.heal_inc
|
||||
bar.tankname = name
|
||||
|
||||
local class, left, right, top, bottom, r, g, b = Vanguard:GetClass (name)
|
||||
local class, left, right, top, bottom, r, g, b = Vanguard:GetClass(name)
|
||||
|
||||
local spec = Vanguard:GetSpec (name)
|
||||
|
||||
if (spec) then
|
||||
self.specicon:SetTexture(Vanguard.CurrentInstance.row_info.spec_file)
|
||||
self.specicon:SetTexCoord (_unpack(Vanguard.class_specs_coords [spec]))
|
||||
self.specicon:SetTexCoord(_unpack(Vanguard.class_specs_coords [spec]))
|
||||
else
|
||||
self.specicon:SetTexture(Vanguard.CurrentInstance.row_info.icon_file)
|
||||
self.specicon:SetTexCoord (left, right, top, bottom)
|
||||
self.specicon:SetTexCoord(left, right, top, bottom)
|
||||
end
|
||||
|
||||
self.unitFrame:SetUnit(Vanguard.UnitIdCache[name])
|
||||
@@ -338,7 +338,7 @@ local function CreatePluginFrames (data)
|
||||
self.unitFrame.healthBar:SetColor(r, g, b)
|
||||
|
||||
bar.lefticon = Vanguard.CurrentInstance.row_info.icon_file
|
||||
bar.iconleft:SetTexCoord (left, right, top, bottom)
|
||||
bar.iconleft:SetTexCoord(left, right, top, bottom)
|
||||
bar:SetLeftText (Vanguard:GetOnlyName(name))
|
||||
bar:SetLeftText (name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user