- more small fixes and improvements.
This commit is contained in:
@@ -2840,15 +2840,16 @@ function atributo_damage:MontaInfoDamageDone()
|
||||
--> add pets
|
||||
local ActorPets = self.pets
|
||||
--local class_color = RAID_CLASS_COLORS [self.classe] and RAID_CLASS_COLORS [self.classe].colorStr
|
||||
local class_color = "FFDDDDDD"
|
||||
local class_color = "FFDDDD44"
|
||||
local class_color = "FFCCBBBB"
|
||||
--local class_color = "FFDDDD44"
|
||||
for _, PetName in _ipairs (ActorPets) do
|
||||
local PetActor = instancia.showing (class_type, PetName)
|
||||
if (PetActor) then
|
||||
local PetSkillsContainer = PetActor.spells._ActorTable
|
||||
for _spellid, _skill in _pairs (PetSkillsContainer) do --> da foreach em cada spellid do container
|
||||
local nome, _, icone = _GetSpellInfo (_spellid)
|
||||
_table_insert (ActorSkillsSortTable, {_spellid, _skill.total, _skill.total/ActorTotalDamage*100, nome .. " |TInterface\\AddOns\\Details\\images\\classes_small_alpha:12:12:0:0:128:128:33:64:96:128|t|c" .. class_color .. PetName:gsub ((" <.*"), "") .. "|r", icone, PetActor, _skill.spellschool})
|
||||
--_table_insert (ActorSkillsSortTable, {_spellid, _skill.total, _skill.total/ActorTotalDamage*100, nome .. " |TInterface\\AddOns\\Details\\images\\classes_small_alpha:12:12:0:0:128:128:33:64:96:128|t|c" .. class_color .. PetName:gsub ((" <.*"), "") .. "|r", icone, PetActor, _skill.spellschool})
|
||||
_table_insert (ActorSkillsSortTable, {_spellid, _skill.total, _skill.total/ActorTotalDamage*100, nome .. " (|c" .. class_color .. PetName:gsub ((" <.*"), "") .. "|r)", icone, PetActor, _skill.spellschool})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -588,7 +588,7 @@ local default_profile = {
|
||||
[254] = {0, 64/512, 64/512, 128/512}, --> hunter marks
|
||||
[255] = {64/512, 128/512, 64/512, 128/512}, --> hunter survivor
|
||||
|
||||
[62] = {128/512, 192/512, 64/512, 128/512}, --> mage arcane
|
||||
[62] = {(128/512) + 0.001953125, 192/512, 64/512, 128/512}, --> mage arcane
|
||||
[63] = {192/512, 256/512, 64/512, 128/512}, --> mage fire
|
||||
[64] = {256/512, 320/512, 64/512, 128/512}, --> mage frost
|
||||
|
||||
@@ -598,11 +598,11 @@ local default_profile = {
|
||||
|
||||
[65] = {0, 64/512, 128/512, 192/512}, --> paladin holy
|
||||
[66] = {64/512, 128/512, 128/512, 192/512}, --> paladin protect
|
||||
[70] = {128/512, 192/512, 128/512, 192/512}, --> paladin ret
|
||||
[70] = {(128/512) + 0.001953125, 192/512, 128/512, 192/512}, --> paladin ret
|
||||
|
||||
[256] = {192/512, 256/512, 128/512, 192/512}, --> priest disc
|
||||
[257] = {256/512, 320/512, 128/512, 192/512}, --> priest holy
|
||||
[258] = {320/512, 384/512, 128/512, 192/512}, --> priest shadow
|
||||
[258] = {(320/512) + 0.001953125, 384/512, 128/512, 192/512}, --> priest shadow
|
||||
|
||||
[259] = {384/512, 448/512, 128/512, 192/512}, --> rogue assassination
|
||||
[260] = {448/512, 512/512, 128/512, 192/512}, --> rogue combat
|
||||
|
||||
+17
-10
@@ -1072,7 +1072,7 @@ local elvui_skin = function()
|
||||
window.classe_icone:SetPoint ("TOPLEFT", window, "TOPLEFT", 2, -25)
|
||||
window.classe_icone:SetWidth (49)
|
||||
window.classe_icone:SetHeight (49)
|
||||
window.classe_icone:SetAlpha (0.7)
|
||||
window.classe_icone:SetAlpha (1)
|
||||
|
||||
window.close_button:SetWidth (20)
|
||||
window.close_button:SetHeight (20)
|
||||
@@ -1190,16 +1190,23 @@ local elvui_skin = function()
|
||||
|
||||
--class icon
|
||||
window.SetClassIcon = function (player, class)
|
||||
local coords = CLASS_ICON_TCOORDS [class]
|
||||
if (coords) then
|
||||
info.classe_icone:SetTexture ([[Interface\Glues\CHARACTERCREATE\UI-CHARACTERCREATE-CLASSES]])
|
||||
local l, r, t, b = unpack (coords)
|
||||
info.classe_icone:SetTexCoord (l+0.01953125, r-0.01953125, t+0.01953125, b-0.01953125)
|
||||
|
||||
if (player.spec) then
|
||||
window.classe_icone:SetTexture ([[Interface\AddOns\Details\images\spec_icons_normal_alpha]])
|
||||
window.classe_icone:SetTexCoord (_unpack (_detalhes.class_specs_coords [player.spec]))
|
||||
--esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
else
|
||||
|
||||
local c = _detalhes.class_coords ["MONSTER"]
|
||||
info.classe_icone:SetTexture ("Interface\\AddOns\\Details\\images\\classes")
|
||||
info.classe_icone:SetTexCoord (c[1], c[2], c[3], c[4])
|
||||
local coords = CLASS_ICON_TCOORDS [class]
|
||||
if (coords) then
|
||||
info.classe_icone:SetTexture ([[Interface\Glues\CHARACTERCREATE\UI-CHARACTERCREATE-CLASSES]])
|
||||
local l, r, t, b = unpack (coords)
|
||||
info.classe_icone:SetTexCoord (l+0.01953125, r-0.01953125, t+0.01953125, b-0.01953125)
|
||||
else
|
||||
|
||||
local c = _detalhes.class_coords ["MONSTER"]
|
||||
info.classe_icone:SetTexture ("Interface\\AddOns\\Details\\images\\classes")
|
||||
info.classe_icone:SetTexCoord (c[1], c[2], c[3], c[4])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -817,7 +817,13 @@ do
|
||||
end
|
||||
|
||||
texture:ClearAllPoints()
|
||||
|
||||
phase = math.min (phase, 5)
|
||||
if (not phase_colors [phase]) then
|
||||
_detalhes:Msg ("Phase out of range:", phase)
|
||||
phase = math.max (phase, 1)
|
||||
end
|
||||
|
||||
texture.texture:SetVertexColor (unpack (phase_colors [phase]))
|
||||
local oc = texture.texture.original_color
|
||||
oc[1], oc[2], oc[3] = unpack (phase_colors [phase])
|
||||
|
||||
@@ -376,6 +376,10 @@ function _G._detalhes:Start()
|
||||
if (_detalhes_database.last_realversion and _detalhes_database.last_realversion < 71 and enable_reset_warning) then
|
||||
function _detalhes:PDWElvuiCheck()
|
||||
_detalhes:ApplyPDWSkin ("ElvUI")
|
||||
|
||||
_detalhes.class_specs_coords[62][1] = (128/512) + 0.001953125
|
||||
_detalhes.class_specs_coords[70][1] = (128/512) + 0.001953125
|
||||
_detalhes.class_specs_coords[258][1] = (320/512) + 0.001953125
|
||||
end
|
||||
_detalhes:ScheduleTimer ("PDWElvuiCheck", 2)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user