m
Move page script moved page API GetPlayerBuffTexture to WoW:API GetPlayerBuffTexture without leaving a redirect
mNo edit summary |
m (Move page script moved page API GetPlayerBuffTexture to WoW:API GetPlayerBuffTexture without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{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( | buffTexture = GetPlayerBuffTexture(buffIndex) | ||
==Arguments== | |||
; | ;buffIndex : The index of the buff to retrieve. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]]. | ||
:( | ==Returns== | ||
;buffTexture : The identifier of (path and filename of) the texture of the buff, or nil if no such buff exist. | |||
: | ==Example== | ||
icon:SetTexture(GetPlayerBuffTexture(buffIndex)) | |||
;Result : Retrieves buff texture and sets the icons texture to that. | |||
; | |||
==See Also== | |||
* [[API GetPlayerBuff|GetPlayerBuff]] | |||
* [[API GetPlayerBuffTimeLeft|GetPlayerBuffTimeLeft]] | |||