Thread: Map Pins
View Single Post
04/26/14, 04:10 AM   #5
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
But why I can't see a text in chat, while AddOn is loaded?
the chat isn't initialized yet. the earliest event with a loaded chat is EVENT_PLAYER_ACTIVATED, if i'm not mistaken.
This event is fired after every loading screen, so you may want to call
EVENT_MANAGER:UnregisterForEvent("addonname", EVENT_PLAYER_ACTIVATED)
in that callback function.


Code:
ZO_WorldMap_AddCustomPin(pinType, pinTypeAddCallback, nil, pinLayoutData, pinTooltipCreator)
replace pinTypeAddCallback with CreateMapPins.

Last edited by Shinni : 04/26/14 at 04:22 AM.
  Reply With Quote