Cleaned up code for clicking the Scan button, and added recipe dumps for the profession when holding the Control key.
James D. Callahan III [03-08-11 - 07:20]
Cleaned up code for clicking the Scan button, and added recipe dumps for the profession when holding the Control key.
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()