WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Non Interruptible spell cast on target castbar (https://www.wowinterface.com/forums/showthread.php?t=48172)

10leej 09-16-13 03:37 PM

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....

humfras 09-16-13 03:56 PM

Actual shield texture:
Code:

Interface\CastingBar\UI-CastingBar-Small-Shield
You better go with
Code:

Interface\CastingBar\UI-CastingBar-Arena-Shield.png
http://wowprogramming.com/utils/xmlb...ngBarFrame.xml


All times are GMT -6. The time now is 03:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI