From: atani <at...@at...> - 2006-01-01 18:41:43
|
I am not sure of the best way to solve this, but... Perhaps extend the Drawable for your menu bar to have a bool value which denotes remove anims. This can be done in the draw() method, resetting the bool to false. Mike On Jan 1, 2006, at 10:22 AM, Sam Steele wrote: > Ran into an interesting situation. Right now I'm using the > LogXYMover anim to move the selection bar around on my menu. When > the user presses a direction on the d-pad, I call animRemoveAll in > case the bar is already moving, and then add a new LogXYMover with > the correct coordinates. The issue I'm running into is that > because the app is threaded, there's the possibility of the user > hitting the d-pad in the middle of the anim list getting > enumerated, causing: > > *** ASSERTION FAILURE *** > Assertion "m_inlist" failed at ../include/Tiki/list.h:46 in `getNext' > > when the list suddenly disappears in the middle. Is there a better > way I should handle the animations? > > -Sam |