Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 174 views)
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » notInterruptible


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off