- Player Detail Window now follows number format chosen on options panel.
- ElvUI skin for Player Detail Window won't use anymore raid members portrait. - fix for ticket #43 'lua error occured in KoKR client'. - fix for ticket #42 'It seems to be absent image file in spec changed notification'. - fix for ticket #41 'An error occurs in Archimonde encounter (koKR)'.
This commit is contained in:
@@ -2721,7 +2721,8 @@ function atributo_damage:MontaInfoDamageTaken()
|
||||
texCoords = _detalhes.class_coords ["UNKNOW"]
|
||||
end
|
||||
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[1], tabela[2], _detalhes:comma_value (tabela[2]), max_, tabela[3], "Interface\\AddOns\\Details\\images\\classes_small_alpha", true, texCoords, nil, tabela[4])
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[1], tabela[2], formated_value, max_, tabela[3], "Interface\\AddOns\\Details\\images\\classes_small_alpha", true, texCoords, nil, tabela[4])
|
||||
end
|
||||
|
||||
end
|
||||
@@ -2872,9 +2873,11 @@ function atributo_damage:MontaInfoDamageDone()
|
||||
local name = tabela[4]
|
||||
|
||||
if (info.sub_atributo == 2) then
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], name, tabela[2], _detalhes:comma_value (_math_floor (tabela[2]/meu_tempo)), max_, tabela[3], tabela[5], true, nil, tabela [7])
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]/meu_tempo))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], name, tabela[2], formated_value, max_, tabela[3], tabela[5], true, nil, tabela [7])
|
||||
else
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], name, tabela[2], _detalhes:comma_value (tabela[2]), max_, tabela[3], tabela[5], true, nil, tabela [7])
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], name, tabela[2], formated_value, max_, tabela[3], tabela[5], true, nil, tabela [7])
|
||||
end
|
||||
|
||||
self:FocusLock (barra, tabela[1])
|
||||
|
||||
@@ -1463,7 +1463,8 @@ function atributo_heal:MontaInfoHealTaken()
|
||||
texCoords = _detalhes.class_coords ["UNKNOW"]
|
||||
end
|
||||
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[1], tabela[2], _detalhes:comma_value (tabela[2]), max_, tabela[3], "Interface\\AddOns\\Details\\images\\classes_small", true, texCoords)
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[1], tabela[2], formated_value, max_, tabela[3], "Interface\\AddOns\\Details\\images\\classes_small", true, texCoords)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -1524,7 +1525,9 @@ function atributo_heal:MontaInfoOverHealing()
|
||||
end
|
||||
|
||||
barra.texto_esquerdo:SetText (index..instancia.divisores.colocacao..tabela[4]) --seta o texto da esqueda
|
||||
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .." ".. instancia.divisores.abre .. _cstr ("%.1f", tabela[3]) .."%".. instancia.divisores.fecha)
|
||||
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]))
|
||||
barra.texto_direita:SetText (formated_value .." (".. _cstr ("%.1f", tabela[3]) .."%)")
|
||||
|
||||
barra.icone:SetTexture (tabela[5])
|
||||
|
||||
@@ -1651,9 +1654,11 @@ function atributo_heal:MontaInfoHealingDone()
|
||||
barra.other_actor = tabela [6]
|
||||
|
||||
if (info.sub_atributo == 2) then
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[4], tabela[2], _detalhes:comma_value (_math_floor (tabela[2]/meu_tempo)), max_, tabela[3], tabela[5], true)
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]/meu_tempo))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[4], tabela[2], formated_value, max_, tabela[3], tabela[5], true)
|
||||
else
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[4], tabela[2], _detalhes:comma_value (tabela[2]), max_, tabela[3], tabela[5], true)
|
||||
local formated_value = SelectedToKFunction (_, _math_floor (tabela[2]))
|
||||
self:UpdadeInfoBar (barra, index, tabela[1], tabela[4], tabela[2], formated_value, max_, tabela[3], tabela[5], true)
|
||||
end
|
||||
|
||||
barra.minha_tabela = self
|
||||
|
||||
@@ -1567,7 +1567,7 @@ function _detalhes:CheckSwitchOnCombatEnd (nowipe, warning)
|
||||
|
||||
if (warning and got_switch) then
|
||||
local attribute_name = self:GetInstanceAttributeText()
|
||||
self:InstanceAlert (string.format (Loc ["STRING_SWITCH_WARNING"], attribute_name), {[[Interface\AddOns\Details\images\sword]], 18, 18, false}, 4)
|
||||
self:InstanceAlert (string.format (Loc ["STRING_SWITCH_WARNING"], attribute_name), {[[Interface\CHARACTERFRAME\UI-StateIcon]], 18, 18, false, 0.5, 1, 0, 0.5}, 4)
|
||||
end
|
||||
|
||||
if (self.switch_all_roles_after_wipe and not nowipe) then
|
||||
|
||||
@@ -35,7 +35,8 @@ function historico:adicionar_overall (tabela)
|
||||
|
||||
--> store the segments added to the overall data
|
||||
_detalhes.tabela_overall.segments_added = _detalhes.tabela_overall.segments_added or {}
|
||||
tinsert (_detalhes.tabela_overall.segments_added, 1, {name = tabela:GetCombatName (true), elapsed = tabela:GetCombatTime(), clock = tabela:GetDate()[1]})
|
||||
local this_clock = tabela.data_inicio
|
||||
tinsert (_detalhes.tabela_overall.segments_added, 1, {name = tabela:GetCombatName (true), elapsed = tabela:GetCombatTime(), clock = this_clock})
|
||||
|
||||
if (#_detalhes.tabela_overall.segments_added > 20) then
|
||||
tremove (_detalhes.tabela_overall.segments_added, 21)
|
||||
|
||||
+12
-10
@@ -164,16 +164,18 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh)
|
||||
info.classe_icone:SetTexture ("Interface\\AddOns\\Details\\images\\classes") --> top left
|
||||
info.SetClassIcon (jogador, classe)
|
||||
|
||||
if (jogador.grupo and IsInRaid() and not avatar) then
|
||||
for i = 1, GetNumGroupMembers() do
|
||||
local playerName, realmName = UnitName ("raid" .. i)
|
||||
if (realmName and realmName ~= "") then
|
||||
playerName = playerName .. "-" .. realmName
|
||||
end
|
||||
if (playerName == jogador.nome) then
|
||||
SetPortraitTexture (info.classe_icone, "raid" .. i)
|
||||
info.classe_icone:SetTexCoord (0, 1, 0, 1)
|
||||
break
|
||||
if (_detalhes.player_details_window.skin == "WoWClassic") then
|
||||
if (jogador.grupo and IsInRaid() and not avatar) then
|
||||
for i = 1, GetNumGroupMembers() do
|
||||
local playerName, realmName = UnitName ("raid" .. i)
|
||||
if (realmName and realmName ~= "") then
|
||||
playerName = playerName .. "-" .. realmName
|
||||
end
|
||||
if (playerName == jogador.nome) then
|
||||
SetPortraitTexture (info.classe_icone, "raid" .. i)
|
||||
info.classe_icone:SetTexCoord (0, 1, 0, 1)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -512,7 +512,9 @@ do
|
||||
g.PhaseTextures = {}
|
||||
|
||||
local phase_alpha = 0.5
|
||||
local phase_colors = {{0.2, 1, 0.2, phase_alpha}, {1, 1, 0.2, phase_alpha}, {1, 0.2, 0.2, phase_alpha}, {0.2, 1, 1, phase_alpha}, {0.2, 0.2, 1, phase_alpha}}
|
||||
local phase_colors = {{0.2, 1, 0.2, phase_alpha}, {1, 1, 0.2, phase_alpha}, {1, 0.2, 0.2, phase_alpha}, {0.2, 1, 1, phase_alpha}, {0.2, 0.2, 1, phase_alpha},
|
||||
[1.5] = {0.25, 0.95, 0.25, phase_alpha}, [2.5] = {0.95, 0.95, 0.25, phase_alpha}, [3.5] = {0.95, 0.25, 0.25, phase_alpha}
|
||||
}
|
||||
|
||||
local phase_panel = CreateFrame ("frame", "EncounterDetailsPhasePanel", g)
|
||||
phase_panel:SetFrameStrata ("TOOLTIP")
|
||||
|
||||
Reference in New Issue
Block a user