WoW:API GetLootRollItemInfo: Difference between revisions

Details: bindOnPickUp was added in 1.11.
(added a bit more information about the rollId numbers)
(Details: bindOnPickUp was added in 1.11.)
Line 21: Line 21:
:GroupLootFrame_OnShow
:GroupLootFrame_OnShow
  function GroupLootFrame_OnShow()
  function GroupLootFrame_OnShow()
  local texture, name, count, quality = GetLootRollItemInfo(this.rollID);
  local texture, name, count, quality = GetLootRollItemInfo(this.rollID);
  getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture);
  getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name);
  local color = ITEM_QUALITY_COLORS[quality];
  local color = ITEM_QUALITY_COLORS[quality];
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b);
  end
  end


----
== Details ==
-Documentation by --[[User:LumpN|LumpN]]
* ''bindOnPickUp'' was added in 1.11.
Anonymous user