Thread Tools Display Modes
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
09-16-13, 03:56 PM   #2
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
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
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker

Last edited by humfras : 09-16-13 at 03:58 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Non Interruptible spell cast on target castbar

Thread Tools
Display Modes

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