Skip to content

Commit

Permalink
Incoming Heal text for classic
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Oct 6, 2020
1 parent 8f17e2b commit 0eccd05
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
26 changes: 9 additions & 17 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -843,20 +843,11 @@ end
function Aptechka.UNIT_HEAL_PREDICTION(self,event,unit)
self:UNIT_HEALTH(event, unit)

-- local heal = GetIncomingHealsCustom(unit, false)
-- local showHeal = (heal and heal > threshold)
-- if not Roster[unit] then return end
-- for self in pairs(Roster[unit]) do
-- if config.IncomingHealStatus then
-- if showHeal then
-- self.vIncomingHeal = heal
-- SetJob(unit, config.IncomingHealStatus, true, nil, heal)
-- else
-- self.vIncomingHeal = 0
-- SetJob(unit, config.IncomingHealStatus, false)
-- end
-- end
-- end
if isClassic then
local heal = GetIncomingHealsCustom(unit, false)
local showHeal = (heal and heal > threshold)
SetJob(unit, config.IncomingHealStatus, showHeal, nil, heal)
end
end

local AbsorbBarDisable = function(f)
Expand Down Expand Up @@ -2696,9 +2687,10 @@ end

function Aptechka.HighlightPostUpdate(frame, unit)
if frame.state.highlightedDebuffsBits ~= highlightedDebuffsBits then
for i=1,#config.BossDebuffs do
FrameSetJob(frame, config.BossDebuffs[i], helpers.CheckBit(highlightedDebuffsBits, i))
end
FrameSetJob(frame, config.DebuffAlert1, helpers.CheckBit(highlightedDebuffsBits, 1))
FrameSetJob(frame, config.DebuffAlert2, helpers.CheckBit(highlightedDebuffsBits, 2))
FrameSetJob(frame, config.DebuffAlert3, helpers.CheckBit(highlightedDebuffsBits, 3))
FrameSetJob(frame, config.DebuffAlert4, helpers.CheckBit(highlightedDebuffsBits, 4))
frame.state.highlightedDebuffsBits = highlightedDebuffsBits
end
end
Expand Down
6 changes: 5 additions & 1 deletion Options/StatusConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ function ns.MakeStatusConfig()
"DispelStatus",
"RunicPowerStatus",
"AltPowerStatus",
"DebuffAlert1",
"DebuffAlert2",
"DebuffAlert3",
"DebuffAlert4",
}

for i, status in ipairs(configurableWidgets) do
opt.args[status] = {
type = "group",
name = status,
name = AptechkaDefaultConfig[status].name,
order = i,
args = {
priority = {
Expand Down
11 changes: 4 additions & 7 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ config.AltPowerStatus = { name = "AltPower", assignto = set("text3"), priority =
config.SummonPending = { name = "SummonPending", assignto = set("text2"), color = {1,0.7,0}, text = "PENDING", priority = 50 }
config.SummonAccepted = { name = "SummonAccepted", assignto = set("text2"), color = {0,1,0}, text = "ACCEPTED", priority = 51 }
config.SummonDeclined = { name = "SummonDeclined", assignto = set("text2"), color = {1,0,0}, text = "DECLINED", priority = 52 }
config.DebuffAlert1 = { name = "DebuffAlert1", assignto = set("border", "flash"), color = {1,0,0}, priority = 95, pulse = true, }
config.DebuffAlert2 = { name = "DebuffAlert2", assignto = set("border", "flash"), color = {1,0,1}, priority = 95, pulse = true, }
config.DebuffAlert3 = { name = "DebuffAlert3", assignto = set("innerglow", "border", "flash"), color = {1,0,0}, priority = 90 }
config.DebuffAlert4 = { name = "DebuffAlert4", assignto = set("pixelGlow"), color = {1,1,1}, priority = 95 }

-- config.MindControl = { name = "MIND_CONTROL", assignto = set("mindcontrol"), color = {1,0,0}, priority = 52 }
config.MindControlStatus = { name = "MIND_CONTROL", assignto = set("border", "mindcontrol", "innerglow"), color = {0.5,0,1}, priority = 52 }
Expand Down Expand Up @@ -103,13 +107,6 @@ if isClassic then
config.DefaultWidgets.totemCluster3 = { type = "Indicator", width = 5, height = 5, point = "TOPLEFT", x = pixelperfect(19), y = 0 }
end

config.BossDebuffs = {
{ name = "BossDebuffLevel1", assignto = set("border", "flash"), color = {1,0,0}, priority = 95, pulse = true, },
{ name = "BossDebuffLevel2", assignto = set("border", "flash"), color = {1,0,1}, priority = 95, pulse = true, },
{ name = "BossDebuffLevel3", assignto = set("innerglow", "border", "flash"), color = {1,0,0}, priority = 90 },
{ name = "BossDebuffLevel4", assignto = set("pixelGlow"), color = {1,1,1}, priority = 95 },
}

-- default priority is 80

local RangeCheckBySpell = helpers.RangeCheckBySpell
Expand Down

0 comments on commit 0eccd05

Please sign in to comment.