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.