WoW:API GetActionText: Difference between revisions
Jump to navigation
Jump to search
Copy-edited to fit {{wowapi}}
(Copy-edited to fit {{wowapi}}) |
|||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Gets the text label for an action. | |||
{{Code/Begin}} | |||
text = GetActionText(actionSlot) | |||
{{Code/End}} | |||
{{clr}} | |||
== Parameters == | == Parameters == | ||
''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. | |||