WoW:API PickupAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API PickupAction to API PickupAction without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<center>'''PickupAction''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{protectedcombatapi|2.2}}
 
{{wowapi|toc=0}}
Pick up an action for drag-and-drop.
Pick up an action for drag-and-drop.
PickupAction(actionSlot)


PickupAction(actionSlot)
== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
:(actionSlot)
* actionSlot (number) - The [[ActionSlot|action slot]] to pick the action up from.


:;actionSlot : Numeric - The action slot to pick the action up from.
=== Returns ===
=== Returns ===
:<i>nil</i>
: none
 


== Details ==
== Details ==
: If the slot is empty, nothing happens, otherwise the action from the slot is placed on the cursor, and the slot is filled with whatever action was currently being drag-and-dropped (The slot is emptied if the cursor was empty).
If the slot is empty, nothing happens, otherwise the action from the slot is placed on the cursor, and the slot is filled with whatever action was currently being drag-and-dropped (The slot is emptied if the cursor was empty).
 
: If you wish to empty the cursor without putting the item into another slot, try [[API PutItemInBackpack|PutItemInBackpack]].


----
If you wish to empty the cursor without putting the item into another slot, try [[API ClearCursor|ClearCursor]].
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|PickupAction]]
[[Category:API Action Functions|PickupAction]]
[[Category:API Cursor Functions|PickupAction]]
[[Category:API Drag and Drop Functions|PickupAction]]

Latest revision as of 04:47, 15 August 2023

WoW API < PickupAction

Pick up an action for drag-and-drop.

PickupAction(actionSlot)

Parameters[edit]

Arguments[edit]

  • actionSlot (number) - The action slot to pick the action up from.

Returns[edit]

none

Details[edit]

If the slot is empty, nothing happens, otherwise the action from the slot is placed on the cursor, and the slot is filled with whatever action was currently being drag-and-dropped (The slot is emptied if the cursor was empty).

If you wish to empty the cursor without putting the item into another slot, try ClearCursor.