Mercurial > wow > inventory
diff Modules/Queue.lua @ 98:252292b703ce
All print(...) function calls are now handled by addon:Print(text, color).
The cursor will be cleared of any items/spells before moving as well as when aborting.
author | Zerotorescue |
---|---|
date | Sun, 09 Jan 2011 17:49:33 +0100 |
parents | 31493364b163 |
children | 67bd5057ecb7 |
line wrap: on
line diff
--- a/Modules/Queue.lua Sun Jan 09 01:34:05 2011 +0100 +++ b/Modules/Queue.lua Sun Jan 09 17:49:33 2011 +0100 @@ -37,7 +37,7 @@ function mod:QueueGroup(groupName) if not addon.db.profile.groups[groupName] then - print(("Tried to queue items from a group named \"%s\", but no such group exists."):format(groupName)); + addon:Print(("Tried to queue items from a group named \"%s\", but no such group exists."):format(groupName), addon.Colors.Red); return; end @@ -58,7 +58,7 @@ if not temp[itemId] then local itemLink = select(2, GetItemInfo(itemId)); - print("Couldn't queue " .. (itemLink or itemId or "???") .. " (not part of this profession)"); + addon:Print(("Couldn't queue %s (not part of this profession)"):format((itemLink or itemId or "???")), addon.Colors.Orange); end end end @@ -116,11 +116,11 @@ self:Queue(i, amount, groupName); - print("Queued " .. amount .. " of " .. itemLink); + addon:Print(("Queued %d of %s"):format(amount, itemLink)); end end else - print("No usable itemcount addon found."); + addon:Print("No usable itemcount addon found."); end end end