- fix for Details! Streamer plugin.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
_detalhes.build_counter = 2761 --it's 2755 for release
|
||||
_detalhes.userversion = "v5.17"
|
||||
_detalhes.build_counter = 2781 --it's 2781 for release
|
||||
_detalhes.userversion = "v5.19"
|
||||
_detalhes.realversion = 110 --core version
|
||||
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
|
||||
Details = _detalhes
|
||||
@@ -22,15 +22,18 @@ do
|
||||
|
||||
--[[
|
||||
|cFFFFFF00v5.17 (|cFFFFCC00August 10, 2016|r|cFFFFFF00)|r:\n\n
|
||||
|cFFFFFF00-|r Fix for the options panel background when using Classic panels.\n\n
|
||||
|cFFFFFF00-|r Tooltips are now slightly bigger.\n\n
|
||||
|cFFFFFF00-|r Fix for bookmark background where sometimes it has a light silver color.\n\n
|
||||
|cFFFFFF00-|r Fix for channel cast on Streamer Plugin.\n\n
|
||||
|cFFFFFF00-|r Legion followers fix.\n\n
|
||||
|cFFFFFF00-|r boss detection for Legion dungeons.\n\n
|
||||
|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n
|
||||
--]]
|
||||
--
|
||||
|
||||
|
||||
|
||||
--Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.17 (|cFFFFCC00August 10, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r boss detection for Legion dungeons.\n\n|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.18 (|cFFFFCC00August 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for the options panel background when using Classic panels.\n\n|cFFFFFF00-|r Tooltips are now slightly bigger.\n\n|cFFFFFF00-|r Fix for bookmark background where sometimes it has a light silver color.\n\n|cFFFFFF00-|r Fix for channel cast on Streamer Plugin.\n\n|cFFFFFF00-|r Legion followers fix.\n\n|cFFFFFF00-|r Boss detection for Legion dungeons.\n\n|cFFFFFF00-|r Priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
|
||||
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r "
|
||||
|
||||
|
||||
@@ -56,6 +56,24 @@
|
||||
local OBJECT_TYPE_PLAYER = 0x00000400
|
||||
local OBJECT_TYPE_PETS = OBJECT_TYPE_PET + OBJECT_TYPE_GUARDIAN
|
||||
|
||||
local KirinTor = GetFactionInfoByID (1090) or "1"
|
||||
local Valarjar = GetFactionInfoByID (1948) or "1"
|
||||
local HighmountainTribe = GetFactionInfoByID (1828) or "1"
|
||||
local CourtofFarondis = GetFactionInfoByID (1900) or "1"
|
||||
local Dreamweavers = GetFactionInfoByID (1883) or "1"
|
||||
local TheNightfallen = GetFactionInfoByID (1859) or "1"
|
||||
local TheWardens = GetFactionInfoByID (1894) or "1"
|
||||
|
||||
local IsFactionNpc = {
|
||||
[KirinTor] = true,
|
||||
[Valarjar] = true,
|
||||
[HighmountainTribe] = true,
|
||||
[CourtofFarondis] = true,
|
||||
[Dreamweavers] = true,
|
||||
[TheNightfallen] = true,
|
||||
[TheWardens] = true,
|
||||
}
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> api functions
|
||||
|
||||
@@ -299,6 +317,7 @@
|
||||
local pet_blacklist = {}
|
||||
local pet_tooltip_frame = _G.DetailsPetOwnerFinder
|
||||
local pet_text_object = _G ["DetailsPetOwnerFinderTextLeft2"]
|
||||
local follower_text_object = _G ["DetailsPetOwnerFinderTextLeft3"]
|
||||
|
||||
local find_pet_owner = function (serial, nome, flag, self)
|
||||
|
||||
@@ -306,11 +325,18 @@
|
||||
pet_tooltip_frame:SetHyperlink ("unit:" .. serial or "")
|
||||
|
||||
local text = pet_text_object:GetText()
|
||||
--print ("Unknow Owner:", nome, "ToolTip Text:", text)
|
||||
|
||||
if (text and text ~= "") then
|
||||
text = text:gsub ("'s", "") --> enUS
|
||||
|
||||
if (IsFactionNpc [text]) then
|
||||
text = follower_text_object:GetText()
|
||||
if (text) then
|
||||
text = text:gsub ("'s", "") --> enUS
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
for _, ownerName in _ipairs ({strsplit (" ", text)}) do
|
||||
local cur_combat = _detalhes.tabela_vigente
|
||||
if (cur_combat and cur_combat.raid_roster [ownerName]) then
|
||||
@@ -365,7 +391,6 @@
|
||||
if (flag and _bit_band (flag, OBJECT_TYPE_PETGUARDIAN) ~= 0) then
|
||||
|
||||
--[[statistics]]-- _detalhes.statistics.container_unknow_pet = _detalhes.statistics.container_unknow_pet + 1
|
||||
|
||||
local find_nome, find_owner = find_pet_owner (serial, nome, flag, self)
|
||||
if (find_nome and find_owner) then
|
||||
nome, dono_do_pet = find_nome, find_owner
|
||||
@@ -390,6 +415,11 @@
|
||||
--> seta a classe default para desconhecido, assim nenhum objeto fica com classe nil
|
||||
novo_objeto.classe = "UNKNOW"
|
||||
|
||||
--8/11 00:57:49.096 SPELL_DAMAGE,
|
||||
--Creature-0-2084-1220-24968-110715-00002BF677,"Archmage Modera",0x2111,0x0,
|
||||
--Creature-0-2084-1220-24968-94688-00002BF6A7,"Diseased Grub",0x10a48,0x0,
|
||||
--220128,"Frost Nova",0x10,Creature-0-2084-1220-24968-94688-00002BF6A7,0000000000000000,63802,311780,0,0,1,0,0,0,4319.26,4710.75,110,10271,-1,16,0,0,0,nil,nil,nil
|
||||
|
||||
-- tipo do container
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -994,22 +994,21 @@ end
|
||||
|
||||
local lastspell, lastcastid, lastchannelid, ischanneling
|
||||
local channelspells = {}
|
||||
local lastChannelSpell = ""
|
||||
|
||||
listener:SetScript ("OnEvent", function (self, event, ...)
|
||||
|
||||
--print (event, ...)
|
||||
|
||||
if (event == "UNIT_SPELLCAST_SENT") then
|
||||
local unitID, spell, rank, target, id = ...
|
||||
|
||||
if (unitID == "player") then
|
||||
CastsTable [id] = {Target = target, Id = id, CastStart = GetTime()}
|
||||
lastChannelSpell = id
|
||||
lastspell = spell
|
||||
lastcastid = id
|
||||
end
|
||||
|
||||
elseif (event == "UNIT_SPELLCAST_START") then
|
||||
local unitID, spell, rank, id, spellID = ...
|
||||
|
||||
if (unitID == "player" and CastsTable [id]) then
|
||||
CastsTable [id].SpellId = spellID
|
||||
CastsTable [id].HasCastTime = true
|
||||
@@ -1028,6 +1027,11 @@ listener:SetScript ("OnEvent", function (self, event, ...)
|
||||
local unitID, spell, rank, id, spellID = ...
|
||||
|
||||
if (unitID == "player") then
|
||||
if (not CastsTable [id]) then
|
||||
--print ("not", " - ", id, " - ", lastChannelSpell)
|
||||
id = lastChannelSpell
|
||||
end
|
||||
|
||||
id = lastchannelid
|
||||
CastsTable [id].Interrupted = true
|
||||
ischanneling = false
|
||||
@@ -1046,6 +1050,11 @@ listener:SetScript ("OnEvent", function (self, event, ...)
|
||||
CastsTable [lastchannelid].Interrupted = true
|
||||
end
|
||||
|
||||
if (not CastsTable [id]) then
|
||||
--print ("not", " - ", id, " - ", lastChannelSpell)
|
||||
id = lastChannelSpell
|
||||
end
|
||||
|
||||
CastsTable [id].HasCastTime = true
|
||||
CastsTable [id].IsChanneled = true
|
||||
CastsTable [id].SpellId = spellID
|
||||
|
||||
Reference in New Issue
Block a user