WoW:API IsEquippedAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(First version)
 
m (Move page script moved page API IsEquippedAction to API IsEquippedAction without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 
isTrue = IsEquippedAction(slotID)
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Tests if the action is an active equip action.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
{{Code/Begin}}
isTrue = IsEquippedAction(slotID)
{{Code/End}}
 


== Parameters ==
== Parameters ==

Latest revision as of 04:46, 15 August 2023

WoW API < IsEquippedAction

isTrue = IsEquippedAction(slotID)

Parameters[edit]

Arguments

slotID - ActionSlot
The tested action


Returns

isTrue - Flag
  • 1 if the specified action is an action that equips a weapon and if the action has been used to equip the current weapon
  • nil otherwise


Details[edit]

An equip action is created if you drag a weapon from the Inventory to an action bar slot. If you click this action to equip the weapon, the action icon will obtain a green outline. It is in this case that IsEquippedAction() returns 1. All other cases (e.g. empty slot, non-equip action, equip action is of the current weapon but hasn't been used yet) will return nil.