Originally Posted by votan
Although I still don't understand, why not doing the count upon first tooltip, checking if the world map is shown or about to be shown can be done this way:
Lua Code:
local function WorldMapStateChanged(oldState, newState) if (newState == SCENE_FRAGMENT_SHOWING) then elseif (newState == SCENE_FRAGMENT_SHOWN) then end end WORLD_MAP_SCENE:RegisterCallback("StateChange", WorldMapStateChanged)
|
I tried that but it only triggered when I changed to another map. Not when I just pressed "M".
Don't know if I did something wrong. Maybe it is because I had already previously opened the map in that zone?