Thread Tools Display Modes
06-18-09, 12:13 PM   #21
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
Great! Works perfect now.

My last (hopefully!) problem is the Unholy and Frost runes. They don't want to "dull" sometimes. All runes are suppose to go to vertex color of (0.4,0.4,0.4,0.9), but every fight there is something wrong with the Unholy or Frost runes.

I tried fixing it by changing the value of 'rune' but that did not help. Could there be something obvious in the code?

http://pastey.net/116248/

Thanks.
__________________
Never be satisfied with satisfactory.
  Reply With Quote
06-18-09, 05:00 PM   #22
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Should Button_OnUpdate be doing this?

tex[rune]:SetVertexColor(1,1,1,1)

It seems like that would cancel out the other change.
  Reply With Quote
06-18-09, 05:57 PM   #23
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
That is there to bring the rune back to normal, meaning the rune is ready for use again. The initial SetVertexColor is when the rune has been used.
__________________
Never be satisfied with satisfactory.
  Reply With Quote
07-04-09, 05:51 PM   #24
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
Still having problems with this piece of coding: http://pastey.net/117060

Unholy and Frost runes sometimes go right through the runeReady filter RIGHT when I use it. (e.g. I use Frost Strike and it does NOT go to SetVertexColor(0.4,0.4,0.4,0.9); because it just goes back to (1, 1, 1, 1) through the runeReady. We all know a rune cannot be ready until it's cooldown is up. )

Thank you.
__________________
Never be satisfied with satisfactory.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Rune cooldowns and GetRuneCooldown()


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