View Single Post
04-20-18, 09:27 AM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
notInterruptible

Hey guys, can you help me to add a (not)interruptible color to a castbar?

i tried to edit this block of castbar file



...
...
elseif(self.mystyle == "target") then
core:setBackdrop(castbar, cfg.units.target.castbar.height + 4, 2, 2, 2)

if notInterruptible then
castbar:SetStatusBarColor(1.00, 0.00, 0.00)
else
castbar:SetStatusBarColor(0.00, 1.00, 0.00)
end

castbar:SetWidth(cfg.units.target.castbar.width - cfg.units.target.castbar.height + 6)
castbar:SetHeight(cfg.units.target.castbar.height)
castbar:SetPoint("CENTER", "UIParent", "CENTER", 0, 350)
...
...
...
But the color are not working for target mobs...

I have attached full castbar lua file if needed
Attached Files
File Type: lua castbar.lua (8.5 KB, 173 views)
  Reply With Quote