WoW:API GetPlayerBuffTexture: Difference between revisions
Jump to navigation
Jump to search
GetPlayerBuffTexture -Documentation by Sarf-
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
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'' | ;''Arguments'' | ||
:(Number | :(Number buffIndex) | ||
:; | :;buffIndex : The index of the buff to retrieve. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]] | ||
---- | ---- | ||
Line 21: | Line 21: | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
icon:SetTexture(GetPlayerBuffTexture(buffIndex)) | icon:SetTexture(GetPlayerBuffTexture(buffIndex)) | ||
;''Result'' | ;''Result'' |
Revision as of 11:44, 14 February 2006
Retrieve info about a certain player buff of a certain type.
buffTexture = GetPlayerBuffTexture(buffIndex)
- Arguments
- (Number buffIndex)
- buffIndex
- The index of the buff to retrieve. Can be obtained with GetPlayerBuff
- Returns
- (String buffTexture)
- 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.
- Description
- Retrieves the texture name of a certain buff.
- See Also