WoW:Events/M: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(+)
m (Move page script moved page Events/M to Events/M without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>__NOTOC__{{eventlistheader}}</noinclude>


|}
===== =====
{|
{{evt|MACRO_ACTION_BLOCKED|System}}
(this event doesn't seem to be used anymore, use MACRO_ACTION_FORBIDDEN)
{{evt|MACRO_ACTION_FORBIDDEN|System}}
Sent when a macro tries use actions that are always forbidden (movement, targeting, etc.).
; arg1 : As of 3.0.2 (possibly sooner) this argument appears to always be "UNKNOWN()"
|}
===== =====
{|
{{evt|MAIL_CLOSED|Mail}}
Fired when the mailbox window is closed.
{{evt|MAIL_FAILED|Mail}}
{{evt|MAIL_INBOX_UPDATE|Mail}}
This event is fired when the inbox changes in any way, including
* when the inbox list is loaded while the frame is open
* when a mail item changes from new to read
* when a mail item is opened for the first time in a session
; arg1 : the mouse button clicked when opening a mail item; otherwise arg1 is nil.
; arg2 : always false
{{evt|MAIL_LOCK_SEND_ITEMS|Mail}}
Fired when you send an item that needs a confirmation (e.g. [http://www.wowwiki.com/Heirloom heirlooms] that are still refundable)
; arg1: Mail Slot
; arg2: itemLink
{{evt|MAIL_SEND_INFO_UPDATE|Mail}}
Fired when an item is dragged to or from the Send Item box in an outgoing mail message.
{{evt|MAIL_SUCCESS|Mail}}
?
{{evt|MAIL_UNLOCK_SEND_ITEMS|Mail}}
Fires when the mail confirmation is cancelled and the concerned item(s) need to be unlocked
|}
===== =====
{|
{{evt|MAIL_SEND_SUCCESS|Mail}}
Fired when a mail has been successfully sent to the mailbox of the recipient, it is also called when the mailbox is opened for some reason ... bug?
{{evt|MAIL_SHOW|Mail}}
Fired when the mailbox is first opened.
; arg1 : returns "up"
{{evt|MERCHANT_CLOSED|Misc}}
Fired when a merchant frame closes. (Called twice)
;arg1: button used to close the window)
|}
===== =====
{|
{{evt|MERCHANT_SHOW|Misc}}
Fired when the merchant frame is shown.
{{evt|MERCHANT_UPDATE|Misc}}
Fired when a merchant updates
{{evt|MINIGAME_UPDATE|Misc}}
?
{{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|MIRROR_TIMER_PAUSE|Misc}}
Fired when the mirror timer is paused.
; arg1 : pause duration
|}
===== =====
{|
{{evt|MIRROR_TIMER_START|Misc}}
Fired when some sort of timer starts.
; arg1 : timer ( for ex. "BREATH" )
; arg2 : value ( start-time in ms, for ex. 180000 )
; arg3 : maxvalue ( max-time in ms, for ex. 180000 )
; arg4 : scale ( time added per second in seconds, for ex. -1 )
; arg5 : paused
; arg6 : label ( for ex. "Breath" )
{{evt|MIRROR_TIMER_STOP|Misc}}
Fired when a mirror timer is stopped.
; arg1 : timer ( for ex. "BREATH" )
{{evt|MODIFIER_STATE_CHANGED|Misc}}
Fired when shift/ctrl/alt keys are pressed or released.  Does not fire when an [[UIOBJECT EditBox|EditBox]] has keyboard focus.
; arg1: "LSHIFT", "RSHIFT", "LCTRL", "RCTRL", "LALT", "RALT"
; arg2: 1 for pressed, 0 (not nil!) for released
{{evt|MOVIE_COMPRESSING_PROGRESS|Movie Capture}}
?
{{evt|MOVIE_RECORDING_PROGRESS|Movie Capture}}
?
{{evt|MOVIE_UNCOMPRESSED_MOVIE|Movie Capture}}
?
{{evt|MUTELIST_UPDATE|Communication}}
?

Latest revision as of 04:48, 15 August 2023

Event API


[edit]
"MACRO_ACTION_BLOCKED"
Category: System
 

(this event doesn't seem to be used anymore, use MACRO_ACTION_FORBIDDEN)

"MACRO_ACTION_FORBIDDEN"
Category: System
 

Sent when a macro tries use actions that are always forbidden (movement, targeting, etc.).

arg1
As of 3.0.2 (possibly sooner) this argument appears to always be "UNKNOWN()"
[edit]
"MAIL_CLOSED"
Category: Mail
 

Fired when the mailbox window is closed.

"MAIL_FAILED"
Category: Mail
 
"MAIL_INBOX_UPDATE"
Category: Mail
 

This event is fired when the inbox changes in any way, including

  • when the inbox list is loaded while the frame is open
  • when a mail item changes from new to read
  • when a mail item is opened for the first time in a session
arg1
the mouse button clicked when opening a mail item; otherwise arg1 is nil.
arg2
always false
"MAIL_LOCK_SEND_ITEMS"
Category: Mail
 

Fired when you send an item that needs a confirmation (e.g. heirlooms that are still refundable)

arg1
Mail Slot
arg2
itemLink
"MAIL_SEND_INFO_UPDATE"
Category: Mail
 

Fired when an item is dragged to or from the Send Item box in an outgoing mail message.

"MAIL_SUCCESS"
Category: Mail
 

?

"MAIL_UNLOCK_SEND_ITEMS"
Category: Mail
 

Fires when the mail confirmation is cancelled and the concerned item(s) need to be unlocked

[edit]
"MAIL_SEND_SUCCESS"
Category: Mail
 

Fired when a mail has been successfully sent to the mailbox of the recipient, it is also called when the mailbox is opened for some reason ... bug?


"MAIL_SHOW"
Category: Mail
 

Fired when the mailbox is first opened.

arg1
returns "up"


"MERCHANT_CLOSED"
Category: Misc
 

Fired when a merchant frame closes. (Called twice)

arg1
button used to close the window)
[edit]
"MERCHANT_SHOW"
Category: Misc
 

Fired when the merchant frame is shown.


"MERCHANT_UPDATE"
Category: Misc
 

Fired when a merchant updates

"MINIGAME_UPDATE"
Category: Misc
 

?

"MINIMAP_PING"
Category: 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


[edit]
"MINIMAP_UPDATE_ZOOM"
Category: 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 minimapZoom and minimapInsideZoom CVars with the current minimap zoom level (see GetZoom).

This event does not relate to the + and - minimap zoom buttons.


"MINIMAP_UPDATE_TRACKING"
Category: 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")


"MIRROR_TIMER_PAUSE"
Category: Misc
 

Fired when the mirror timer is paused.

arg1
pause duration
[edit]
"MIRROR_TIMER_START"
Category: Misc
 

Fired when some sort of timer starts.

arg1
timer ( for ex. "BREATH" )
arg2
value ( start-time in ms, for ex. 180000 )
arg3
maxvalue ( max-time in ms, for ex. 180000 )
arg4
scale ( time added per second in seconds, for ex. -1 )
arg5
paused
arg6
label ( for ex. "Breath" )


"MIRROR_TIMER_STOP"
Category: Misc
 

Fired when a mirror timer is stopped.

arg1
timer ( for ex. "BREATH" )


"MODIFIER_STATE_CHANGED"
Category: Misc
 

Fired when shift/ctrl/alt keys are pressed or released. Does not fire when an EditBox has keyboard focus.

arg1
"LSHIFT", "RSHIFT", "LCTRL", "RCTRL", "LALT", "RALT"
arg2
1 for pressed, 0 (not nil!) for released
"MOVIE_COMPRESSING_PROGRESS"
Category: Movie Capture
 

?

"MOVIE_RECORDING_PROGRESS"
Category: Movie Capture
 

?

"MOVIE_UNCOMPRESSED_MOVIE"
Category: Movie Capture
 

?

"MUTELIST_UPDATE"
Category: Communication
 

?