WoW:API GetActionTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Removed obsolete WoW API template and added {{wowapi}})
(Copy-edited to fit {{wowapi}})
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.
 
{{Code/Begin}}
texture = GetActionTexture(actionSlot)
texture = GetActionTexture(actionSlot)
{{Code/End}}
{{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

Revision as of 19:45, 16 October 2006

WoW API < GetActionTexture

Returns the filepath for an action's texture. Template:Code/Begin texture = GetActionTexture(actionSlot) Template:Code/End

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