Quantcast WoWInterface - View Single Post - New/changed in build 26522.
View Single Post
05-08-18, 06:32 PM   #18
thomasjohnshannon
A Theradrim Guardian
 
thomasjohnshannon's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 65
More Map API Changes (26567)

Removed

SetMap was removed but it could just be RequestPreloadMap. Both excisted in the last patch but now we only have RequestPreloadMap.

Lua Code:
  1. {
  2.   Name = "GetCurrentMapID",
  3.   Type = "Function",
  4.  
  5.   Returns =
  6.   {
  7.     { Name = "uiMapID", Type = "number", Nilable = false },
  8.   },
  9. },

New Functions

Lua Code:
  1. {
  2.   Name = "GetMapBannersForMap",
  3.   Type = "Function",
  4.  
  5.   Arguments =
  6.   {
  7.     { Name = "uiMapID", Type = "number", Nilable = false },
  8.   },
  9.  
  10.   Returns =
  11.   {
  12.     { Name = "mapBanners", Type = "table", InnerType = "MapBannerInfo", Nilable = false },
  13.   },
  14. },
  15. {
  16.   Name = "GetMapLinksForMap",
  17.   Type = "Function",
  18.  
  19.   Arguments =
  20.   {
  21.     { Name = "uiMapID", Type = "number", Nilable = false },
  22.   },
  23.  
  24.   Returns =
  25.   {
  26.     { Name = "mapLinks", Type = "table", InnerType = "MapLinkInfo", Nilable = false },
  27.   },
  28. },
  29. {
  30.   Name = "GetMapPosFromWorldPos",
  31.   Type = "Function",
  32.  
  33.   Arguments =
  34.   {
  35.     { Name = "continentID", Type = "number", Nilable = false },
  36.     { Name = "worldPosition", Type = "table", Mixin = "Vector2DMixin", Nilable = false },
  37.     { Name = "overrideUiMapID", Type = "number", Nilable = true },
  38.   },
  39.  
  40.   Returns =
  41.   {
  42.     { Name = "uiMapID", Type = "number", Nilable = false },
  43.     { Name = "mapPosition", Type = "table", Mixin = "Vector2DMixin", Nilable = false },
  44.   },
  45. },
  46. {
  47.   Name = "GetWorldPosFromMapPos",
  48.   Type = "Function",
  49.  
  50.   Arguments =
  51.   {
  52.     { Name = "uiMapID", Type = "number", Nilable = false },
  53.     { Name = "mapPosition", Type = "table", Mixin = "Vector2DMixin", Nilable = false },
  54.   },
  55.  
  56.   Returns =
  57.   {
  58.     { Name = "continentID", Type = "number", Nilable = false },
  59.     { Name = "worldPosition", Type = "table", Mixin = "Vector2DMixin", Nilable = false },
  60.   },
  61. },

Map event info added.

Lua Code:
  1. Events =
  2. {
  3. {
  4.   Name = "NewWmoChunk",
  5.   Type = "Event",
  6.   LiteralName = "NEW_WMO_CHUNK",
  7. },
  8. {
  9.   Name = "ZoneChanged",
  10.   Type = "Event",
  11.   LiteralName = "ZONE_CHANGED",
  12. },
  13. {
  14.   Name = "ZoneChangedIndoors",
  15.   Type = "Event",
  16.   LiteralName = "ZONE_CHANGED_INDOORS",
  17. },
  18. {
  19.   Name = "ZoneChangedNewArea",
  20.   Type = "Event",
  21.   LiteralName = "ZONE_CHANGED_NEW_AREA",
  22. },
  23. },
__________________
Thomas aka Urnn
  Reply With Quote