Added Power Infusion buff to the buff update of the target

This commit is contained in:
Tercio Jose
2022-01-18 14:53:59 -03:00
parent 28f28f2212
commit aedc9ea2ea
5 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 283 local dversion = 284
local major, minor = "DetailsFramework-1.0", dversion local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor) local DF, oldminor = LibStub:NewLibrary (major, minor)
+11
View File
@@ -9643,6 +9643,8 @@ DF.TimeLineBlockFunctions = {
--dataIndex stores which line index from the data this line will use --dataIndex stores which line index from the data this line will use
--lineData store members: .text .icon .timeline --lineData store members: .text .icon .timeline
local lineData = data.lines [self.dataIndex] local lineData = data.lines [self.dataIndex]
self.spellId = lineData.spellId
--if there's an icon, anchor the text at the right side of the icon --if there's an icon, anchor the text at the right side of the icon
--this is the title and icon of the title --this is the title and icon of the title
@@ -9784,6 +9786,14 @@ DF.TimeLineFunctions = {
line = CreateFrame ("frame", "$parentLine" .. index, self.body, "BackdropTemplate") line = CreateFrame ("frame", "$parentLine" .. index, self.body, "BackdropTemplate")
DF:Mixin (line, DF.TimeLineBlockFunctions) DF:Mixin (line, DF.TimeLineBlockFunctions)
self.lines [index] = line self.lines [index] = line
local lineHeader = CreateFrame("frame", nil, line, "BackdropTemplate")
lineHeader:SetPoint("topleft", line, "topleft", 0, 0)
lineHeader:SetPoint("bottomleft", line, "bottomleft", 0, 0)
lineHeader:SetScript("OnEnter", self.options.header_on_enter)
lineHeader:SetScript("OnLeave", self.options.header_on_leave)
line.lineHeader = lineHeader
--store the individual textures that shows the timeline information --store the individual textures that shows the timeline information
line.blocks = {} line.blocks = {}
@@ -9884,6 +9894,7 @@ DF.TimeLineFunctions = {
for i = 1, #self.data.lines do for i = 1, #self.data.lines do
local line = self:GetLine (i) local line = self:GetLine (i)
line.dataIndex = i --this index is used inside the line update function to know which data to get line.dataIndex = i --this index is used inside the line update function to know which data to get
line.lineHeader:SetWidth(self.options.header_width)
line:SetBlocksFromData() --the function to update runs within the line object line:SetBlocksFromData() --the function to update runs within the line object
end end
+3 -1
View File
@@ -38,6 +38,7 @@ do
Added an option to change your own bar color. Added an option to change your own bar color.
Bookmark window now uses the same scale than the options panel. Bookmark window now uses the same scale than the options panel.
Class Color window now uses the same scale than the options panel. Class Color window now uses the same scale than the options panel.
If not casted on the player itself Power Infusion now shows in the buff list of the target.
Fixed all issues with the options panel scale. Fixed all issues with the options panel scale.
Fixed auto hide windows which wasn't saving its group when unhiding (fix by Flamanis). Fixed auto hide windows which wasn't saving its group when unhiding (fix by Flamanis).
Fixed some XML Headers which was giving errors on loading (fix by github user h0tw1r3). Fixed some XML Headers which was giving errors on loading (fix by github user h0tw1r3).
@@ -398,7 +399,8 @@ do
--> player detail skin --> player detail skin
_detalhes.playerdetailwindow_skins = {} _detalhes.playerdetailwindow_skins = {}
_detalhes.BitfieldSwapDebuffsIDs = {265646, 272407, 269691, 273401, 269131, 260900, 260926, 284995, 292826, 311367, 310567, 308996, 307832, 327414, 337253} _detalhes.BitfieldSwapDebuffsIDs = {265646, 272407, 269691, 273401, 269131, 260900, 260926, 284995, 292826, 311367, 310567, 308996, 307832, 327414, 337253,
36797, 37122}
--> auto run code --> auto run code
_detalhes.RunCodeTypes = { _detalhes.RunCodeTypes = {
+13
View File
@@ -150,6 +150,10 @@
apoc = {}, apoc = {},
} }
local buffs_to_other_players = {
[10060] = true, --power infusion
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> constants --> constants
local container_misc = _detalhes.container_type.CONTAINER_MISC_CLASS local container_misc = _detalhes.container_type.CONTAINER_MISC_CLASS
@@ -2432,6 +2436,9 @@
elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then
--um pet colocando uma aura do dono --um pet colocando uma aura do dono
parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_IN") parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_IN")
elseif (buffs_to_other_players[spellid]) then
parser:add_buff_uptime(token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_IN")
end end
end end
@@ -2677,6 +2684,9 @@
elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then
--um pet colocando uma aura do dono --um pet colocando uma aura do dono
parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_REFRESH") parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_REFRESH")
elseif (buffs_to_other_players[spellid]) then
parser:add_buff_uptime(token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_REFRESH")
end end
end end
@@ -2826,6 +2836,9 @@
elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then elseif (container_pets [who_serial] and container_pets [who_serial][2] == alvo_serial) then
--um pet colocando uma aura do dono --um pet colocando uma aura do dono
parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_OUT") parser:add_buff_uptime (token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_OUT")
elseif (buffs_to_other_players[spellid]) then
parser:add_buff_uptime(token, time, alvo_serial, alvo_name, alvo_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "BUFF_UPTIME_OUT")
end end
end end
+7 -1
View File
@@ -99,6 +99,10 @@ function Details:GetPlayerObjectFromBreakdownWindow()
return info.jogador return info.jogador
end end
function Details:GetBreakdownWindow()
return Details.playerDetailWindow
end
--english alias --english alias
--window object from Details:GetWindow(n) and playerObject from Details:GetPlayer(playerName, attribute) --window object from Details:GetWindow(n) and playerObject from Details:GetPlayer(playerName, attribute)
function Details:OpenPlayerBreakdown (windowObject, playerObject) function Details:OpenPlayerBreakdown (windowObject, playerObject)
@@ -338,7 +342,9 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh, ShiftKeyDo
end end
end end
shownTab:Click() if (shownTab) then
shownTab:Click()
end
end end
-- for beta todo: info background need a major rewrite -- for beta todo: info background need a major rewrite