From ecd47240c15af5bab73419003299adf1d7463dbc Mon Sep 17 00:00:00 2001 From: pschifferer Date: Fri, 6 Nov 2009 22:41:43 +0000 Subject: [PATCH] Added an increment button to main items in the queue. Modified the sorting logic for intermediate items so that items that can be made now are moved to the top of the list. --- CauldronMain.lua | 4 ++++ CauldronMain.xml | 39 +++++++++++++++++++++++++++++++++++++++ CauldronMainUI.lua | 9 +++++---- CauldronQueue.lua | 8 +++++++- Locale/Cauldron-enUS.lua | 2 +- 5 files changed, 56 insertions(+), 6 deletions(-) diff --git a/CauldronMain.lua b/CauldronMain.lua index 7830967..3973fcb 100644 --- a/CauldronMain.lua +++ b/CauldronMain.lua @@ -896,6 +896,10 @@ function Cauldron:DecreaseItemCount(name) CauldronQueue:AdjustItemCount(Cauldron:GetQueue(), name, -1); end +function Cauldron:IncreaseItemCount(name) + CauldronQueue:AdjustItemCount(Cauldron:GetQueue(), name, 1); +end + function Cauldron:GetQueue(player) --@alpha@ self:debug("GetQueue enter"); diff --git a/CauldronMain.xml b/CauldronMain.xml index 5809d55..c6e3ee0 100644 --- a/CauldronMain.xml +++ b/CauldronMain.xml @@ -427,6 +427,43 @@ +