Problem with castbar icon in PostCastStart
I am using parts of oUF_Hank in my own oUF layout. My castbar is based on the one in his addon. It has some nice fading animations based on whether the cast succeeded or not. To achieve this, a second 'dummy' castbar is used for playing the animation. In the PostCastStart function the texture of the spell icon, currently used in the 'real' castbar needs to be set in the 'dummy' castbar, so that the icon can be shown during the fade animation.
Here is the interesting part of the code from oUF_Hank:
Unfortunately the GetTexture() call sometimes returns nil, so that the fading animation shows an icon from a previous cast. Is there a way to get the texture 100% of the time?
For now my workaround looks like this. Strangely the problem does not occur inside OnUpdate(..):
|All times are GMT -6. The time now is 10:36 AM.|
vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC