View Single Post
09-16-13, 03:37 PM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Non Interruptible spell cast on target castbar

So got a request to add a non interruptable shield or notification to my target cast bar in BobUI, what would be the best way to go about this? Currently I really just use the deault castbars and modify it like so

Lua Code:
  1. --Target Castbar
  2. local tbf = "TargetFrameSpellBar"
  3. _G[tbf]:SetSize(cfg.targetwidth,cfg.targetheight)
  4. _G[tbf.."Border"]:SetSize(240,40)
  5. _G[tbf.."Border"]:SetPoint("TOP", _G[tbf], 0, 15)
  6. _G[tbf.."Border"]:SetTexture(nil)
  7.  
  8. _G[tbf.."Flash"]:SetSize(240,40)
  9. _G[tbf.."Flash"]:SetPoint("TOP", _G[tbf], 0, 15)
  10. _G[tbf.."Flash"]:SetTexture(nil)
  11.    
  12. _G[tbf]:SetScale("1")
  13.    
  14. _G[tbf.."Text"]:SetPoint("BOTTOM", _G[tbf], 0, -2)
  15. _G[tbf.."Text"]:SetFont(cfg.font, cfg.targettextsize, cfg.style)
  16.  
  17. _G[tbf]:SetStatusBarTexture(cfg.statusbar_texture)
  18. TargetFrameSpellBar.showShield = false;
  19. _G[tbf]:ClearAllPoints()
  20. _G[tbf]:SetPoint(unpack(cfg.tbf_position))
  21. _G[tbf].SetPoint = function() end
  22.  
  23. _G[tbf.."Icon"]:Hide()

when i was originally working on it I had difficulties finding the image file for the non interruptible frame so I could just change the texture to a little shield or something so I gave up and killed it off on line 18

anybody know the image path for it? I can't find it for the life of me....
__________________
Tweets YouTube Website
  Reply With Quote