WoW:API GameTooltip SetPlayerBuff: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{API/Uncategorized}} | {{API/Uncategorized}} | ||
MUST access it in this fasion, if you want to specify what TYPE of buff you want to set the tooltip to. | |||
local buffIndex, untilCancelled = GetPlayerBuff(blah.index, "HARMFUL"); | |||
GameTooltip:SetPlayerBuff(buffIndex); | |||
From what I can understand, GetPlayerBuff sets what type of buff-type that SetPlayerBuff will use. | |||
It will use whatever last type of buff you specified in GetPlayerBuff, hence the reason you should specify GetPlayerBuff right before you call SetPlayerBuff. | |||
I also tried to have GameTooltip:SetPlayerBuff(blah.index), seeing as how blah.index and buffIndex are the same number, but it wouldn't work. You MUST have it as above. | |||
Options for GetPlayerBuff are : HELPFUL|HARMFUL|PASSIVE |
Revision as of 08:40, 30 January 2006
Template:API/Uncategorized MUST access it in this fasion, if you want to specify what TYPE of buff you want to set the tooltip to.
local buffIndex, untilCancelled = GetPlayerBuff(blah.index, "HARMFUL");
GameTooltip:SetPlayerBuff(buffIndex);
From what I can understand, GetPlayerBuff sets what type of buff-type that SetPlayerBuff will use.
It will use whatever last type of buff you specified in GetPlayerBuff, hence the reason you should specify GetPlayerBuff right before you call SetPlayerBuff.
I also tried to have GameTooltip:SetPlayerBuff(blah.index), seeing as how blah.index and buffIndex are the same number, but it wouldn't work. You MUST have it as above.
Options for GetPlayerBuff are : HELPFUL|HARMFUL|PASSIVE