[implemented] ZO_WorldMap_SetMapById()
Many maps don't have a map index but it looks like all maps have a map ID so :
ZO_WorldMap_SetMapById() would be of a great help for map / navigation AddOns e. g. my QuickMapNav AddOn. |
There exists the api function SetMapToMapId(mapId), so you could just call the following
Lua Code:
|
Wow! Thanks I totally missed that! :banana:
|
|
There is a SetMapToMapId. However, unless the user changes the map manually first, the map will reset to the on map open default after SetMapToMapId is used. Making it almost useless.
I've proposed this. Lua Code:
You see, the g_playerChoseCurrentMap must be true in order for the map to not be reset. Lua Code:
The alternative is to: Lua Code:
|
Or do things a better way and use what is already available which will be more compatible with other mods.
Code:
local GPS = LibGPS3 |
This can be closed.
WORLD_MAP_MANAGER:SetMapById(mapId) exists now |
Closed and updated the Wiki
|
All times are GMT -6. The time now is 10:43 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI