annotate CraftingAddons/Cauldron.lua @ 73:6216b754350d

Default size for the summary window increase to 700 pixels (from 650). Cached item name and rarity no longer have a default and will be nil if the value is unknown. Cached item name, rarity and link can now be updated when the itemlink element is build. Item element now gets the item table passed rather than just the item id. If the item link is already known, this prevent an additional GetItemInfo call.
author Zerotorescue
date Fri, 24 Dec 2010 16:10:20 +0100
parents ac1189599769
children 2127ab01ed4a
rev   line source
Zerotorescue@65 1 do
Zerotorescue@65 2
Zerotorescue@65 3 local function Queue(tradeSkillIndex, amount)
Zerotorescue@65 4 CauldronQueue:AddItem(Cauldron.db.realm.userdata[Cauldron.vars.playername].queue, skillInfo, amount);
Zerotorescue@65 5
Zerotorescue@65 6 Cauldron:UpdateQueue();
Zerotorescue@65 7
Zerotorescue@65 8 -- update the shopping list
Zerotorescue@65 9 Cauldron:UpdateShoppingListFromQueue();
Zerotorescue@65 10
Zerotorescue@65 11 return;
Zerotorescue@65 12 end
Zerotorescue@65 13
Zerotorescue@65 14 local function IsEnabled()
Zerotorescue@65 15 return (Cauldron and CauldronQueue and CauldronQueue.AddItem);
Zerotorescue@65 16 end
Zerotorescue@65 17
Zerotorescue@65 18 local function OnSelect()
Zerotorescue@65 19 local addonName = "|r|cfffed000Cauldron|r|cffff6600";
Zerotorescue@65 20
Zerotorescue@65 21 print("|cffff6600" .. addonName .. " has not yet been tested. Please report any of your experiences.|r");
Zerotorescue@65 22 end
Zerotorescue@65 23
Zerotorescue@65 24 IMRegisterCraftingAddon("Cauldron", Queue, IsEnabled, OnSelect);
Zerotorescue@65 25
Zerotorescue@65 26 end