WoW:API GetPlayerBuffTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetPlayerBuffTexture to API GetPlayerBuffTexture without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<center>'''GetPlayerBuffTexture''' ''-Documentation by Sarf-''</center>
{{removedapi|3.0|Use {{api|UnitAura}} (or derived functions) to retrieve information about buffs.}}
{{wowapi}}


Retrieve info about a certain player buff of a certain type.
Retrieve info about a certain player buff of a certain type.


  buffTexture = GetPlayerBuffTexture(buffId);
  buffTexture = GetPlayerBuffTexture(buffIndex)


----
==Arguments==
;''Arguments''
;buffIndex : The index of the buff to retrieve. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]].


:(Number buffId)
==Returns==
;buffTexture : The identifier of (path and filename of) the texture of the buff, or nil if no such buff exist.


:;buffId : The id of the buff to retrieve.
==Example==
icon:SetTexture(GetPlayerBuffTexture(buffIndex))


----
;Result : Retrieves buff texture and sets the icons texture to that.
;''Returns''


:(String buffTexture)
==See Also==
 
* [[API GetPlayerBuff|GetPlayerBuff]]
:;buffTexture : The identifier of (path and filename of) the texture of the buff, or nil if no such buff exist.
* [[API GetPlayerBuffTimeLeft|GetPlayerBuffTimeLeft]]
 
----
;''Example''
icon:SetTexture(GetPlayerBuffTexture(buffIndex));
 
;''Result''
 
Retrieves buff texture and sets the icons texture to that.
 
----
;''Description''
 
: Retrieves the texture name of a certain buff.
 
;''See Also''
 
:* [[API GetPlayerBuff|GetPlayerBuff]]
:* [[API GetPlayerBuffTimeLeft|GetPlayerBuffTimeLeft]]
 
----
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetPlayerBuffTexture

Retrieve info about a certain player buff of a certain type.

buffTexture = GetPlayerBuffTexture(buffIndex)

Arguments[edit]

buffIndex
The index of the buff to retrieve. Can be obtained with GetPlayerBuff.

Returns[edit]

buffTexture
The identifier of (path and filename of) the texture of the buff, or nil if no such buff exist.

Example[edit]

icon:SetTexture(GetPlayerBuffTexture(buffIndex))
Result
Retrieves buff texture and sets the icons texture to that.

See Also[edit]