From 4d12064f1bd0fcad6aa88bbf8245281d5dcc3b64 Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Thu, 16 Dec 2010 22:21:10 -0800 Subject: [PATCH] Queue items now have tooltips that tell the user what they can do with the item, i.e., re-prioritize, adjust count, and add to shopping list are now enabled. --- CauldronQueue.xml | 106 ++++++++++++++++++++-------------------------- CauldronQueueUI.lua | 4 ++ Locale/Cauldron-enUS.lua | 5 +++ 3 files changed, 54 insertions(+), 61 deletions(-) diff --git a/CauldronQueue.xml b/CauldronQueue.xml index 215f003..103f33b 100644 --- a/CauldronQueue.xml +++ b/CauldronQueue.xml @@ -298,34 +298,54 @@ --> - - HandleModifiedItemClick(self.link); - - + + GameTooltip:Hide(); + ResetCursor(); + + + local itemId = self:GetID(); + local button = GetMouseButtonClicked(); + if (button == "LeftButton") and (itemId < 100) then + if IsControlKeyDown() then + Cauldron:IncreaseItemPriority(self.itemName, true); + elseif IsShiftKeyDown() then + Cauldron:DecreaseItemCount(self.itemName); + else + Cauldron:IncreaseItemCount(self.itemName); + end + Cauldron:UpdateQueue(); + Cauldron:UpdateButtons(); + end + + + local itemId = self:GetID(); + local button = GetMouseButtonClicked(); + if (button == "LeftButton") and (itemId >= 200) then + if self.needAmount < 1 then + Cauldron:AddItemToShoppingList(self.itemName, self.needAmount); + end + end + @@ -521,46 +541,10 @@ - - - - diff --git a/CauldronQueueUI.lua b/CauldronQueueUI.lua index 2621997..ec5b2ae 100644 --- a/CauldronQueueUI.lua +++ b/CauldronQueueUI.lua @@ -475,3 +475,7 @@ function Cauldron:UpdateQueue() end +function Cauldron:QueueItem_OnDoubleClick(frame) + Cauldron:AddItemToShoppingList(frame.itemName, frame.needAmount); +end + diff --git a/Locale/Cauldron-enUS.lua b/Locale/Cauldron-enUS.lua index cab7117..291b000 100644 --- a/Locale/Cauldron-enUS.lua +++ b/Locale/Cauldron-enUS.lua @@ -168,6 +168,11 @@ L["Needed for leveling:"] = true L["Showing %1$d - %2$d of %3$d items."] = true +L["Click to increase crafted amount"] = true +L["Shift-click to decrease crafted amount"] = true +L["Control-click to move to top of queue"] = true +L["Double-click to add needed amount to shopping list"] = true + L["Oh. Smells like barbecued dog hair."] = true -- LSW strings -- 1.7.9.5