Thread Tools Display Modes
08-23-10, 11:06 AM   #21
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
I feel like such an idiot, but i am still struggling.
I get spammed with index field castbar a nil value.
Can someone with intelligence look over the code?

http://pastey.net/139924
__________________

  Reply With Quote
08-23-10, 11:57 AM   #22
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Originally Posted by sacrife View Post
I get spammed with index field castbar a nil value.
What line does it say?
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
08-23-10, 01:00 PM   #23
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Line: 85
self.Castbar.Text:SetTextColor(1,0,0)
__________________

  Reply With Quote
08-23-10, 01:14 PM   #24
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
The post calls are:
castbar:PostCastInterruptible(unit)
castbar:PostCastNotInterruptible(unit)

The self is the cast bar here, not the unit frame as your code suggests. Change self.Castbar to self in those two functions and it should work fine.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
08-23-10, 01:15 PM   #25
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
When implementing PostCast functions, the first parameter is self. this is a reference to the castbar element, rather than the entire unitframe.

You are in effect trying to reference self.Castbar.Castbar.Text, which does not exist.

---

bah, beaten by a minute :-(
  Reply With Quote
08-23-10, 01:37 PM   #26
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
That makes so much sense when you say it like that, but I never figured that out myself . Works perfect now. Thanks a lot.
__________________

  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » (un)interruptable cast


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