From 25deb168573f2b6aa0fc0de417c09d42e405f7c1 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 8 Mar 2011 01:20:14 -0600 Subject: [PATCH] Cleaned up code for clicking the Scan button, and added recipe dumps for the profession when holding the Control key. --- core.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core.lua b/core.lua index a9d484c..2c7a793 100644 --- a/core.lua +++ b/core.lua @@ -502,8 +502,11 @@ function addon:OnInitialize() if shift_key and not alt_key and not ctrl_key then addon:Scan(true) - elseif not shift_key and alt_key and not ctrl_key then + elseif alt_key and not shift_key and not ctrl_key then addon:ClearWaypoints() + elseif ctrl_key and not shift_key and not alt_key then + local current_prof = _G.GetTradeSkillLine() + addon:DumpProfession(current_prof) elseif not shift_key and not alt_key and not ctrl_key then if MainPanel and MainPanel:IsVisible() and prev_profession == cur_profession then MainPanel:Hide() -- 1.7.9.5