m
Move page script moved page API GetLootRollItemInfo to WoW:API GetLootRollItemInfo without leaving a redirect
(added a bit more information about the rollId numbers) |
m (Move page script moved page API GetLootRollItemInfo to WoW:API GetLootRollItemInfo without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
:quality (integer) | :quality (integer) | ||
:bindOnPickUp (boolean) | :bindOnPickUp (boolean) | ||
:canNeed (boolean) | |||
:canGreed (boolean) | |||
:canDisenchant (boolean) | |||
== Example == | == Example == | ||
| Line 21: | Line 24: | ||
:GroupLootFrame_OnShow | :GroupLootFrame_OnShow | ||
function 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 | end | ||
== Details == | |||
* ''bindOnPickUp'' was added in 1.11. | |||