Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:Events/Map
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__NOTOC____NOEDITSECTION__{{eventlistheader}} :{{icon-information}}Note that this page is automatically generated; editing it is pointless. To edit event descriptions, edit the entries in the alphabetical pages, e.g. [[Events/A]], [[Events/B]], etc. Changes there will be copied over to here within a few hours. == Map related events == {{evt|CLOSE_WORLD_MAP|Map}} Supposed to fire whenever the world map is closed/hidden, though it doesn't. A workaround for this is to use "WORLD_MAP_UPDATE" to set a global variable to use elsewhere with an OnUpdate function; e.g. <pre> local Map_Changed = false; function MyAddon_OnEvent() if ( (event == "WORLD_MAP_UPDATE") and WorldMapFrame:IsVisible() ) then Map_Changed = true; end end function MyAddon_OnUpdate() if ( (Map_Changed) and not WorldMapFrame:IsVisible() ) then ''...do this...'' Map_Changed = false; end end </pre> When the second function is called, it checks to see if the map has been opened/closed (Map_Changed), then checks to see if the map is currently open (WorldMapFrame). <br>The effect is a code that executes only when the map closes. {{evt|MINIMAP_PING|Map}} Fired when the minimap is pinged. ; arg1 : UnitId of the one that created the ping (ie "player" or any of the group members) ; arg2 : x ; arg3 : y {{evt|MINIMAP_UPDATE_ZOOM|Map}} Fired when the minimap scaling factor is changed. This happens, generally, whenever the player moves indoors from outside, or vice versa. There are no arguments to this event. To test the player's location, compare the <tt>minimapZoom</tt> and <tt>minimapInsideZoom</tt> CVars with the current minimap zoom level (see [[API_Minimap_GetZoom|GetZoom]]). This event does not relate to the '''+''' and '''-''' minimap zoom buttons. {{evt|MINIMAP_UPDATE_TRACKING|Map}} Added in 2.3, this event is fired when the player selects a different tracking type from the menu attached to the mini map. There seems to be no useful arguments as of the time of this writing. ; arg1 : Mouse button used to click the tracking button (i.e. "LEFTBUTTON") {{evt|WORLD_MAP_NAME_UPDATE|Map}} {{evt|WORLD_MAP_UPDATE|Map}} Fired when the world map should be updated. When entering a battleground, this event won't fire until the zone is changed (i.e. in WSG when you walk outside of Warsong Lumber Mill or Silverwing Hold --[[User:Salanex|Salanex]] {{evt|ZONE_CHANGED|Map}} Fired when the player enters a new zone. Zones are the smallest named subdivions of the game world and are contained within areas (also called regions). Whenever the text over the minimap changes, this event is fired. {{evt|ZONE_CHANGED_INDOORS|Map}} Fired when a player enters a new zone within a city. {{evt|ZONE_CHANGED_NEW_AREA|Map}} Fired when the user enters a new zone and a new area. e.g. moving from Duskwood to Stranglethorn Vale. In interface terms, this is anytime you get a new set of channels. The ZONE_CHANGED events are mutually exclusive! Note: When this event fires, the UI may still think you're in the zone you just left. Don't depend on GetRealZoneText() and similar functions to report the new zone in reaction to ZONE_CHANGED_NEW_AREA. (untested for similar events)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apievents
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Eventlinks
(
edit
)
Template:Eventlistheader
(
edit
)
Template:Evt
(
edit
)
Template:Icon-information
(
edit
)
Template:Makemewide
(
edit
)
Template:Navbar
(
edit
)
Template:Navbox
(
edit
)
Template:Tcl
(
edit
)
Template:Β·
(
edit
)