mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed frame level problem in buff timers
This commit is contained in:
@ -471,6 +471,7 @@ function TargetInfo.prototype:CreateIconFrames(parent, direction, buffs, type)
|
|||||||
buffs[i].icon:SetHeight(self.moduleSettings.buffSize-2)
|
buffs[i].icon:SetHeight(self.moduleSettings.buffSize-2)
|
||||||
|
|
||||||
buffs[i].cd:SetFrameStrata("BACKGROUND")
|
buffs[i].cd:SetFrameStrata("BACKGROUND")
|
||||||
|
buffs[i].cd:SetFrameLevel(buffs[i].icon:GetFrameLevel()+1)
|
||||||
buffs[i].cd:SetReverse(true)
|
buffs[i].cd:SetReverse(true)
|
||||||
buffs[i].cd:ClearAllPoints()
|
buffs[i].cd:ClearAllPoints()
|
||||||
buffs[i].cd:SetAllPoints(buffs[i])
|
buffs[i].cd:SetAllPoints(buffs[i])
|
||||||
@ -585,8 +586,7 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
local buffName, buffRank, buffTexture, buffApplications, debuffDispelType,
|
local buffName, buffRank, buffTexture, buffApplications, debuffDispelType,
|
||||||
debuffDuration, debuffTimeLeft = UnitDebuff("target", i, filter and not hostile)
|
debuffDuration, debuffTimeLeft = UnitDebuff("target", i, filter and not hostile)
|
||||||
|
|
||||||
if (buffTexture and (not hostile or not filter or
|
if (buffTexture and (not hostile or not filter or (filter and debuffDuration))) then
|
||||||
(filter and debuffDuration and debuffDuration > 0))) then
|
|
||||||
|
|
||||||
local color = debuffDispelType and DebuffTypeColor[debuffDispelType] or DebuffTypeColor["none"]
|
local color = debuffDispelType and DebuffTypeColor[debuffDispelType] or DebuffTypeColor["none"]
|
||||||
local alpha = buffTexture and 1 or 0
|
local alpha = buffTexture and 1 or 0
|
||||||
|
Reference in New Issue
Block a user