Problem with castbar icon in PostCastStart
Hey guys,
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: Lua Code:
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? Bests Iron |
For now my workaround looks like this. Strangely the problem does not occur inside OnUpdate(..):
Lua Code:
|
All times are GMT -6. The time now is 12:07 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI