View Single Post
12/22/15, 05:21 PM   #20
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Originally Posted by Wandamey View Post
there must be some prehook with onshow or something...

for starters type this in your chat with the map opened to know the scene name :
/script d(SCENE_MANAGER:GetCurrentScene():GetName())

at worse i made something like this but for all the UI mode... i got to retrieve it, i'll edit a bit later
I can say that what you wrote above returns
worldMap
no matter what map I have showing. I tried while showing Tamriel, Coldharbour, Craglorn and Davon's Watch.

Edit: Now I am slow again

From your edit, then I assume I should make something like this on addon load?:
ZO_PreHookHandler("worldMap", "OnShow", myfunctiononshow)
or did I miss something?

Last edited by SnowmanDK : 12/22/15 at 05:23 PM.
  Reply With Quote