Map changes.
In my addon I log newly discovred area's.
Worked just fine using the code below. But in the Beta GetCurrentMapContinent() throws an error. Does anybody know where I can find the new Api commands related to the maps? The prints statements are there for debugging reasons only :) Lua Code:
|
The Map is heavily changing.
With BfA there is a new ingame help for commands Code:
/api mapui |
Map changes.
Thx Rilgamon.
Very usefull information. Haven't found a way to get the current Continent though. Will continue the search. |
This is what I got out of the C_Map api
Code:
api C_Map list |
To get the current continent the player is in you can use the following:
Code:
local currentMapId, TOP_MOST = C_Map.GetBestMapForUnit('player'), true |
Quote:
Thank you Nimhfree Lua Code:
|
For info, C_Map.GetCurrentMapID() has been removed in the latest build. Instead you should use WorldMapFrame:GetMapID() to get the ID of the map currently displayed inside the frame. Note that this will return nil if the map has not been opened yet (and not the current map ID).
|
All times are GMT -6. The time now is 01:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI