WoW:API GetLootRollItemInfo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(added a bit more information about the rollId numbers) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
GetLootRollItemInfo(RollID); | GetLootRollItemInfo(RollID); | ||
== Parameters == | |||
=== Arguments === | |||
:( rollId ) | |||
:;rollid : Number - The number increments by 1 for each new roll. The count is not reset by reloading your UI with ReloadUI() or /console reloadui | |||
:; | |||
=== Returns === | |||
:texture (string) | :texture (string) | ||
Line 16: | Line 15: | ||
:count (integer) | :count (integer) | ||
:quality (integer) | :quality (integer) | ||
:bindOnPickUp (boolean) | |||
== Example == | |||
:GroupLootFrame_OnShow | :GroupLootFrame_OnShow | ||
Line 31: | Line 30: | ||
---- | ---- | ||
-Documentation by --[[User:LumpN|LumpN]] | -Documentation by --[[User:LumpN|LumpN]] | ||
Revision as of 23:44, 20 June 2006
← WoW API < GetLootRollItemInfo
GetLootRollItemInfo(RollID);
Parameters
Arguments
- ( rollId )
- rollid
- Number - The number increments by 1 for each new roll. The count is not reset by reloading your UI with ReloadUI() or /console reloadui
Returns
- texture (string)
- name (string)
- count (integer)
- quality (integer)
- bindOnPickUp (boolean)
Example
- GroupLootFrame_OnShow
function GroupLootFrame_OnShow() local texture, name, count, quality = GetLootRollItemInfo(this.rollID); getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture); getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name); local color = ITEM_QUALITY_COLORS[quality]; getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b); end
-Documentation by --LumpN