WoW:API GetActionText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Copy-edited to fit {{wowapi}})
m (Move page script moved page API GetActionText to API GetActionText without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:


Gets the text label for an action.
Gets the text label for an action.
{{Code/Begin}}
text = GetActionText(actionSlot)
text = GetActionText(actionSlot)
 
{{Code/End}}
{{clr}}
== Parameters ==
== Parameters ==
''Arguments''
<big>'''Arguments'''</big>


:;actionSlot - [[ActionSlot]] : The queried slot.
:;actionSlot - [[ActionSlot]] : The queried slot.


''Returns''
<big>'''Returns'''</big>


:;text - String
:;text - String
:* The action's text, if present.  Macro actions use their names for their action text.
:* The action's text, if present.  Macro actions use their names for their action text.
:* nil, if the slot has no action text, or is empty.  Most standard WoW action icons don't have action text.
:* nil, if the slot has no action text, or is empty.  Most standard WoW action icons don't have action text.

Latest revision as of 04:45, 15 August 2023

WoW API < GetActionText

Gets the text label for an action.

text = GetActionText(actionSlot)

Parameters[edit]

Arguments

actionSlot - ActionSlot
The queried slot.

Returns

text - String
  • The action's text, if present. Macro actions use their names for their action text.
  • nil, if the slot has no action text, or is empty. Most standard WoW action icons don't have action text.