Have you tried to stay exclusively in the lua layer (ie dont mix C-level callbacks and lua-level callbacks). Maybe call RegisterCallback for some bank fragment and use state == SCENE_CLOSING instead of using the C-level RegisterForEvent.
CLOSING should generally be called before SHOWN since one is tirggered at the start of the closing/transition animation and the other is triggered at the end of the show/transition animation.
|