# HG changeset patch # User Zerotorescue # Date 1296932565 -3600 # Node ID 8cecfea6a2540428f9aa6b7165ec3cdcc032f75c # Parent 5d6b3d116b80c7961db929eecedd7e3ed83a4d2f Added CTRL-leftclick to initiate a queue. Making sure the minimap icon isn?t registered prior to registering it. diff -r 5d6b3d116b80 -r 8cecfea6a254 Modules/MinimapIcon.lua --- a/Modules/MinimapIcon.lua Sat Feb 05 20:01:57 2011 +0100 +++ b/Modules/MinimapIcon.lua Sat Feb 05 20:02:45 2011 +0100 @@ -17,8 +17,13 @@ -- Open up the config InventoriumCommandHandler("config"); elseif button == "LeftButton" then - -- Open the summary - InventoriumCommandHandler("summary"); + if IsControlKeyDown() then + -- Queue + InventoriumCommandHandler("queue"); + else + -- Open the summary + InventoriumCommandHandler("summary"); + end elseif button == "MiddleButton" then -- Check stock and provide the alert if needed InventoriumCommandHandler("alert"); @@ -30,11 +35,12 @@ tooltip:AddLine("|cfffed000Left-click|r to open the summary window.", 0, 1, 0); tooltip:AddLine("|cfffed000Middle-click|r to generate a stock alert.", 0, 1, 0); tooltip:AddLine("|cfffed000Right-click|r to open the config window.", 0, 1, 0); + tooltip:AddLine("|cfffed000Control left-click|r to try to queue tracked items.", 0, 1, 0); end, }); local icon = LibStub("LibDBIcon-1.0"); - if icon then + if icon and not icon:IsRegistered("Inventorium") then icon:Register("Inventorium", dataobject); end end