Originally Posted by merlight
When I wanted to know that the Research tab was shown, I hooked OnEffectivelyShown handler on the panel control:
Lua Code:
ZO_PreHookHandler(SMITHING.researchPanel.control, "OnEffectivelyShown", ...) -- actually it was a post-hook in my code, but I don't remember why
|
I think I know why you've made it as a post hook:
The deconstruction, improvement, and ther panels won't be shown directly if you press the button to change it, or as the OnEfectivelyShown() function was called.
There is sometimes a slight delay before you can use e.g. IsHidden().
Either you put your function as a post hook, so everything else was done before your check "where am I?", or you try it with zo_callLater and about 50ms.