v0.13.8

C_Map

namespaceavailable in: camelot

Status in wowlua

40 functions: 8 implemented, 18 recorded, 14 guessed. 7 events, 6 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CanSetUserWaypointOnMapWhether the player can place a map pin on a map. · by wowlua
(uiMapID: number): boolean
recorded
ClearUserWaypointClears the currently assigned user waypoint, if one exists.
()
guessed
CloseWorldMapInteractionEnds the current world map interaction. · by wowlua
()
guessed
GetAreaInfoReturns a map subzone name.
(areaID: number): string
implemented
GetBestMapForUnitReturns the current UI map for the given unit. Only works for the player and group members.
(unitToken: string): number?
implemented
GetBountySetMapsReturns the maps for a bounty.
(bountySetID: number): number[]
guessed
GetFallbackWorldMapIDReturns the world map id.
(): number
recorded
GetMapArtBackgroundAtlasReturns the background atlas for a map.
(uiMapID: number): string
implemented
GetMapArtHelpTextPositionReturns the position for the "Click to Zoom In" hint text on flight maps.
(uiMapID: number): MapCanvasPosition
recorded
GetMapArtIDReturns the art for a (phased) map.
(uiMapID: number): number?
recorded
GetMapArtLayerTexturesReturns the art layer textures for a map.
(uiMapID: number, layerIndex: number): number[]?
implemented
GetMapArtLayersReturns the art layers for a map.
(uiMapID: number): UiMapLayerInfo[]?
recorded
GetMapArtZoneTextPositionReturns where a map shows its zone name. · by wowlua
(uiMapID: number): MapCanvasPosition
recorded
GetMapBannersForMapReturns the poi banners for a map.
(uiMapID: number): MapBannerInfo[]
recorded
GetMapChildrenInfoReturns info for the children of a map.
(uiMapID: number, mapType: UIMapType?, allDescendants: boolean?): UiMapDetails[]?
implemented
GetMapDisplayInfoReturns whether group member pins should be hidden.
(uiMapID: number): boolean?
recorded
GetMapGroupIDReturns the map group for a map.
(uiMapID: number): number?
recorded
GetMapGroupMembersInfoReturns the floors for a map group.
(uiMapGroupID: number): UiMapGroupMemberInfo[]?
guessed
GetMapHighlightInfoAtPositionReturns a map highlight pin for a location.
(uiMapID: number, x: number, y: number): (number?, string?, number?, number?, number?, number?, number?, number?)
guessed
GetMapHighlightPulseInfoReturns the highlight pulse shown on a map. · by wowlua
(uiMapID: number): (number?, string?, number?, number?, number?, number?, number?, number?)
recorded
GetMapInfoReturns map information.
(uiMapID: number): UiMapDetails?
recorded
GetMapInfoAtPositionReturns info for any child or adjacent maps at a position on the map.
(uiMapID: number, x: number, y: number, ignoreZoneMapPositionData: boolean?): UiMapDetails?
guessed
GetMapLevelsReturns the suggested player and battle pet levels for a map.
(uiMapID: number): (number?, number?, number?, number?)
recorded
GetMapLinksForMapReturns the map pins that link to another map.
(uiMapID: number): MapLinkInfo[]
recorded
GetMapPosFromWorldPosTranslates a world map position to a map position.
(continentID: number, worldPosition: Vector2DMixin, overrideUiMapID: number?): (number?, Vector2DMixin?)
implemented
GetMapRectOnMapReturns the map rectangle location for a map on its parent map.
(uiMapID: number, topUiMapID: number): (number?, number?, number?, number?)
recorded
GetMapWorldSizeReturns the size in yards of the area represented by the map.
(uiMapID: number): (number, number)
recorded
GetPlayerMapPositionReturns the location of the unit on a map.
(uiMapID: number, unitToken: string): Vector2DMixin?
implemented
GetUserWaypointReturns the UiMapPoint structure for the currently assigned user waypoint, if one exists.
(): UiMapPoint?
guessed
GetUserWaypointFromHyperlinkReturns the map pin a link points to. · by wowlua
(hyperlink: string): UiMapPoint?
guessed
GetUserWaypointHyperlinkReturns a worldmap hyperlink for the currently assigned user waypoint, if one exists.
(): string?
guessed
GetUserWaypointPositionForMapReturns the map position for a user waypoint that is placed on a specified map ID.
(uiMapID: number): Vector2DMixin?
guessed
GetWorldPosFromMapPosTranslates a map position to a world map position.
(uiMapID: number, mapPosition: Vector2DMixin): (number?, Vector2DMixin?)
implemented
HasUserWaypointReturns true if a user waypoint has been assigned.
(): boolean
guessed
IsCityMapWhether a map is a city. · by wowlua
(uiMapID: number): boolean
recorded
IsMapValidForNavBarDropdownWhether a map can appear in the world map's navigation bar dropdown. · by wowlua
(uiMapID: number): boolean
recorded
MapHasArtReturns true if the map has art.
(uiMapID: number): boolean
recorded
OpenWorldMapOpens the world map frame to a specified map ID.
(uiMapID: number?)
guessed
RequestPreloadMapPreloads textures for a map.
(uiMapID: number)
guessed
SetUserWaypointChanges the user-assigned waypoint to the specified location, encoded as a UiMapPoint structure.
(point: UiMapPoint): boolean
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
NEW_WMO_CHUNKno payloadimplemented
PLAYER_MAP_CHANGEDoldMapID: number, newMapID: numberimplemented
USER_WAYPOINT_UPDATEDno payloadimplemented
WORLD_MAP_OPENuiMapID: number?not implemented
ZONE_CHANGEDno payloadimplemented
ZONE_CHANGED_INDOORSno payloadimplemented
ZONE_CHANGED_NEW_AREAno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("WORLD_MAP_OPEN").

Structures

  • MapBannerInfo · areaPoiID, name, atlasName, uiTextureKit?
  • MapLinkInfo · areaPoiID, position, name, atlasName, linkedUiMapID
  • UiMapDetails · mapID, name, mapType, parentMapID, flags
  • UiMapGroupMemberInfo · mapID, relativeHeightIndex, name
  • UiMapHighlightInfo · fileDataID, atlasID, texturePercentageX, texturePercentageY, textureX, textureY, scrollChildX, scrollChildY
  • UiMapLayerInfo · layerWidth, layerHeight, tileWidth, tileHeight, minScale, maxScale, additionalZoomSteps

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (MapUI system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.