- Applyed the experimental alphabetical sort method on Damage and Heal classes.
- Spell icon is shown when the character is a environment spell type. - Changed the non-player enemy icon (monsters). - Fixed bug on flex performance profile.
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0", "LibHotCorners")
|
||||
|
||||
_detalhes.version = "v1.18.4 (core 22)"
|
||||
_detalhes.userversion = "v1.18.4"
|
||||
_detalhes.build_counter = 7
|
||||
_detalhes.version = "v1.18.5 (core 22)"
|
||||
_detalhes.userversion = "v1.18.5"
|
||||
_detalhes.build_counter = 8
|
||||
_detalhes.realversion = 22
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -227,16 +227,18 @@
|
||||
|
||||
function atributo_damage:NovaTabela (serial, nome, link)
|
||||
|
||||
local alphabetical = _detalhes:GetAlphabeticalOrderNumber (nome)
|
||||
|
||||
--> constructor
|
||||
local _new_damageActor = {
|
||||
|
||||
tipo = class_type,
|
||||
|
||||
total = 0,
|
||||
total_without_pet = 0,
|
||||
total = alphabetical,
|
||||
total_without_pet = alphabetical,
|
||||
custom = 0,
|
||||
|
||||
damage_taken = 0,
|
||||
damage_taken = alphabetical,
|
||||
damage_from = {},
|
||||
|
||||
dps_started = false,
|
||||
@@ -1371,9 +1373,23 @@ end
|
||||
esta_barra.background:SetVertexColor (actor_class_color_r, actor_class_color_g, actor_class_color_b)
|
||||
end
|
||||
|
||||
if (self.classe == "UNKNOW") then
|
||||
esta_barra.icone_classe:SetTexture ("Interface\\LFGFRAME\\LFGROLE_BW")
|
||||
esta_barra.icone_classe:SetTexCoord (.25, .5, 0, 1)
|
||||
--icon
|
||||
|
||||
if (self.spellicon) then
|
||||
esta_barra.icone_classe:SetTexture (self.spellicon)
|
||||
esta_barra.icone_classe:SetTexCoord (0.078125, 0.921875, 0.078125, 0.921875)
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
|
||||
elseif (self.classe == "UNKNOW") then
|
||||
--esta_barra.icone_classe:SetTexture ("Interface\\LFGFRAME\\LFGROLE")
|
||||
--esta_barra.icone_classe:SetTexCoord (.25, .5, 0, 1)
|
||||
|
||||
--esta_barra.icone_classe:SetTexture ([[Interface\TARGETINGFRAME\PetBadge-Undead]])
|
||||
--esta_barra.icone_classe:SetTexCoord (0.09375, 0.90625, 0.09375, 0.90625)
|
||||
|
||||
esta_barra.icone_classe:SetTexture ([[Interface\AddOns\Details\images\classes_plus]])
|
||||
esta_barra.icone_classe:SetTexCoord (0.50390625, 0.62890625, 0, 0.125)
|
||||
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
|
||||
elseif (self.classe == "UNGROUPPLAYER") then
|
||||
@@ -1407,6 +1423,8 @@ end
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
end
|
||||
|
||||
--texture and text
|
||||
|
||||
if (self.enemy) then
|
||||
if (self.arena_enemy) then
|
||||
esta_barra.texto_esquerdo:SetText (esta_barra.colocacao .. ".|TInterface\\LFGFRAME\\UI-LFG-ICON-ROLES:" .. instancia.row_info.height .. ":" .. instancia.row_info.height .. ":0:0:256:256:" .. _detalhes.role_texcoord [self.role or "NONE"] .. "|t" .. self.displayName)
|
||||
|
||||
@@ -68,20 +68,22 @@ local keyName
|
||||
|
||||
function atributo_heal:NovaTabela (serial, nome, link)
|
||||
|
||||
local alphabetical = _detalhes:GetAlphabeticalOrderNumber (nome)
|
||||
|
||||
--> constructor
|
||||
local _new_healActor = {
|
||||
|
||||
tipo = class_type, --> atributo 2 = cura
|
||||
|
||||
total = 0,
|
||||
totalover = 0,
|
||||
totalabsorb = 0,
|
||||
total = alphabetical,
|
||||
totalover = alphabetical,
|
||||
totalabsorb = alphabetical,
|
||||
custom = 0,
|
||||
|
||||
total_without_pet = 0,
|
||||
totalover_without_pet = 0,
|
||||
total_without_pet = alphabetical,
|
||||
totalover_without_pet = alphabetical,
|
||||
|
||||
healing_taken = 0, --> total de cura que este jogador recebeu
|
||||
healing_taken = alphabetical, --> total de cura que este jogador recebeu
|
||||
healing_from = {}, --> armazena os nomes que deram cura neste jogador
|
||||
|
||||
iniciar_hps = false, --> dps_started
|
||||
|
||||
@@ -488,7 +488,13 @@
|
||||
|
||||
if (_detalhes.tabela_vigente.instance_type == "raid") then
|
||||
--> schedule captures off
|
||||
|
||||
_detalhes:CaptureSet (false, "damage", false, 15)
|
||||
_detalhes:CaptureSet (false, "energy", false, 15)
|
||||
_detalhes:CaptureSet (false, "aura", false, 15)
|
||||
_detalhes:CaptureSet (false, "energy", false, 15)
|
||||
_detalhes:CaptureSet (false, "spellcast", false, 15)
|
||||
|
||||
if (_detalhes.debug) then
|
||||
_detalhes:Msg ("(debug) freezing parser for 15 seconds.")
|
||||
end
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ function _detalhes:GetPerformanceRaidType()
|
||||
|
||||
--flex
|
||||
if (difficulty == 14) then
|
||||
if (GetNumGroupMembers > 15) then
|
||||
if (GetNumGroupMembers() > 15) then
|
||||
return "Raid30"
|
||||
else
|
||||
return "Raid15"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
local _math_ceil = math.ceil --lua local
|
||||
local _table_wipe = table.wipe --lua local
|
||||
|
||||
local _GetSpellInfo = _detalhes.getspellinfo --details api
|
||||
local escudo = _detalhes.escudos --details local
|
||||
local parser = _detalhes.parser --details local
|
||||
local absorb_spell_list = _detalhes.AbsorbSpells --details local
|
||||
@@ -189,6 +190,12 @@
|
||||
else
|
||||
if (who_flags) then --> ter certeza que não é um pet
|
||||
damage_cache [who_name] = este_jogador
|
||||
--> se for spell actor
|
||||
if (who_name:find ("[*]")) then
|
||||
local _, _, icon = _GetSpellInfo (spellid or 1)
|
||||
este_jogador.spellicon = icon
|
||||
--print ("spell actor:", who_name, "icon:", icon)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
+4
-3
@@ -15,13 +15,14 @@
|
||||
local _upper = string.upper --lua local
|
||||
local _ipairs = ipairs --lua local
|
||||
local _pairs = pairs --lua local
|
||||
local _string_format = string.format --lua local
|
||||
local _math_floor = math.floor --lua local
|
||||
local _math_max = math.max --lua local
|
||||
local _math_abs = math.abs --lua local
|
||||
local _type = type --lua local
|
||||
local _string_match = string.match --lua local
|
||||
local _string_byte = string.byte
|
||||
local _string_byte = string.byte --lua local
|
||||
local _string_len = string.lenv
|
||||
local _string_format = string.format --lua local
|
||||
local loadstring = loadstring --lua local
|
||||
|
||||
local _UnitClass = UnitClass --wow api local
|
||||
@@ -41,7 +42,7 @@
|
||||
|
||||
--> get the fractional number representing the alphabetical letter
|
||||
function _detalhes:GetAlphabeticalOrderNumber (who_name)
|
||||
local name = _upper (who_name)
|
||||
local name = _upper (who_name .. "zz")
|
||||
local byte1 = _math_abs (_string_byte (name, 2)-91)/1000000
|
||||
return byte1 + _math_abs (_string_byte (name, 1)-91)/10000
|
||||
end
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user