WoW:API GetActionTexture: Difference between revisions

(Removed obsolete WoW API template and added {{wowapi}})
m (Move page script moved page API GetActionTexture to API GetActionTexture without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
<center>'''GetActionTexture''' - ''Documentation by [[User:Flickering|Flickering]]''</center>


Return the texture for an action.
Returns the filepath for an action's texture.
texture = GetActionTexture(actionSlot)


texture = GetActionTexture(actionSlot)
{{clr}}
== Parameters ==
== Parameters ==
=== Arguments ===
''Arguments''
:(actionSlot)


:;actionSlot : Numeric - The slot number of the action to query.
:;actionSlot - [[ActionSlot]] : The queried slot.
=== Returns ===
''Returns''
:texture


:;texture : String - The texture path for the action, or nil if the slot has no action.
:;texture - String
----
:* The texture filepath for the action's icon image
:* nil, if the slot is empty

Latest revision as of 04:45, 15 August 2023

WoW API < GetActionTexture

Returns the filepath for an action's texture.

texture = GetActionTexture(actionSlot)

Parameters

Arguments

actionSlot - ActionSlot
The queried slot.

Returns

texture - String
  • The texture filepath for the action's icon image
  • nil, if the slot is empty