WoW:API GetActionTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetActionTexture to API GetActionTexture without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetActionTexture''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


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
__NOTOC__
:* nil, if the slot is empty
{{Template:WoW API}}
[[Category:API Functions|GetActionTexture]]
[[Category:API Action Functions|GetActionTexture]]

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