View Single Post
04/10/14, 08:05 AM   #7
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
Originally Posted by LoPony View Post
Could somebody explain to me what this code does (taken from esohead.lua):
Code:
        CALLBACK_MANAGER:FireCallbacks("OnWorldMapChanged") -- Fix for bug #23
There is no RegisterCallback call anywhere inside EsoHead, so I assume this calls some kind of not documented internal API callback?
This callback forces the map to be redrawn. The callback is normally called if the player is moving or he right clicks on the map etc.
I don't think esohead has to call this callback. I used SetMapToPlayerLocation() in my addons without the OnWorldMapChanged callback and everything works fine.
  Reply With Quote