Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
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!
=== Action === These functions are those which operate with the action buttons. See [[#Activity]] section for general player actions. :PROTECTED UI {{id|API|ActionButtonDown}}(id) - Press the specified action button. (protected 2.0) :PROTECTED UI {{id|API|ActionButtonUp}}(id) - Release the specified action button. (protected 2.0) :{{id|API|ActionHasRange}}(slot) - Determine if the specified action is a range restriction [1 if yes, nil if no] :UI {{id|API|BonusActionButtonDown}} - Trigger the specified bonus(pet or minion) action button. :UI {{id|API|BonusActionButtonUp}} - Release the specified bonus(pet or minion) action button. :PROTECTED {{id|API|CameraOrSelectOrMoveStart}}() - Begin "Left click" in the 3D world. (protected 1.10) :PROTECTED {{id|API|CameraOrSelectOrMoveStop}}([stickyFlag]) - End "Left click" in the 3D world. (protected 1.10) :NOCOMBAT {{id|API|ChangeActionBarPage}}(page) - Changes the current action bar page. :{{id|API|GetActionBarPage}}() - Return the current action bar page. CURRENT_ACTIONBAR_PAGE is obsolete. :{{id|API|GetActionBarToggles}}() - Return the toggles for each action bar. :{{id|API|GetActionCooldown}}(slot) - This returns the cooldown values of the specified action.. :{{id|API|GetActionCount}}(slot) - Get the count (bandage/potion/etc) for an action, returns 0 if none or not applicable. :{{id|API|GetActionInfo}}(slot) - Returns type, id, subtype. :{{id|API|GetActionText}}(slot) - Get the text label (macros, etc) for an action, returns nil if none. :{{id|API|GetActionTexture}}(slot) - Gets the texture path for the specified action. :{{id|API|GetBonusBarOffset}}() - Determine which page of bonus actions to show. :{{id|API|GetMouseButtonClicked}}() - Returns the name of the button that triggered a mouse down/up/click/doubleclick event. (added 2.0.3) :{{id|API|GetMultiCastBarOffset}}() - Returns the page offset of the multicast action IDs (added 3.2) :{{id|API|GetPossessInfo}}(index) - Returns texture, name, enabled. :{{id|API|HasAction}}(slot) - Returns 1 if the player has an action in the specified slot, nil otherwise. :{{id|API|IsActionInRange}}(slot,[unit]) - Test if an action is in range (1=yes, 0=no, nil=not applicable). :{{id|API|IsAttackAction}}(slot) - Return 1 if an action is an 'attack' action (flashes during combat), nil otherwise. :{{id|API|IsAutoRepeatAction}}(slot) - Return 1 if an action is auto-repeating, nil otherwise. :{{id|API|IsCurrentAction}}(slot) - Return 1 if an action is the one currently underway, nil otherwise. :{{id|API|IsConsumableAction}}(slot) - Return 1 if an action is consumable (i.e. has a count), nil otherwise. :{{id|API|IsEquippedAction}}(slot) - Return 1 if an action is equipped (i.e. connected to an item that must be equipped), nil otherwise. :{{id|API|IsUsableAction}}(slot) - Return 1 if an action can be used at present, nil otherwise. :{{id|API|PetHasActionBar}}() - Determine if player has a pet with an action bar. :NOCOMBAT {{id|API|PickupAction}}(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor. :NOCOMBAT {{id|API|PickupPetAction}}(slot) - Drags an action from the specified pet action bar slot into the cursor. :{{id|API|PlaceAction}}(slot) - Drops an action from the cursor into the specified quickbar slot. :{{id|API|SetActionBarToggles}}(show1,show2,show3,show4[, alwaysShow]) - Set show toggle for each action bar - 'alwaysShow' (added 1.12) :{{id|API|StopAttack}}() - Turns off auto-attack, if currently active. Has no effect is the player does not currently have auto-attack active. :PROTECTED {{id|API|TurnOrActionStart}}() - Begin "Right Click" in the 3D world. (protected 1.10) :PROTECTED {{id|API|TurnOrActionStop}}() - End "Right Click" in the 3D world. (protected 1.10) :PROTECTED {{id|API|UseAction}}(slot[, checkCursor[, onSelf]]) - This instructs the interface to use the action associated with the specified ID, optionally on the player, regardless of target. (protected 2.0)
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)