Quantcast

Removed the spammy 'marking recipe' message.

pschifferer [08-28-10 - 04:03]
Removed the spammy 'marking recipe' message.
Filename
Cauldron.toc
CauldronMain.lua
CauldronTradeskill.lua
Locale/Cauldron-enUS.lua
diff --git a/Cauldron.toc b/Cauldron.toc
index 4844742..1162454 100755
--- a/Cauldron.toc
+++ b/Cauldron.toc
@@ -36,6 +36,8 @@ CauldronShoppingListUI.lua
 CauldronMain.xml
 CauldronShoppingList.xml

+CauldronLSW.lua
+
 #@alpha@
 CauldronUnitTests.lua
 #@end-alpha@
diff --git a/CauldronMain.lua b/CauldronMain.lua
index 9954948..52fbc1b 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -69,6 +69,7 @@ function Cauldron:OnInitialize()
 			options = {
 				AutoOpenShoppingList = true,
 				ModifyTooltip = true,
+				EnableLilSparkysWorkshop = true,
 			},
 		}
 	};
@@ -106,6 +107,16 @@ function Cauldron:OnInitialize()
 						desc = L["Adds information to the game tooltip when displaying information about certain crafting items."],
 						arg = "ModifyTooltip",
 					},
+					--[[
+					enableLilSparkysWorkshop = {
+						type = 'toggle',
+						order = 1,
+						width = "double",
+						name = L["Enable support for LilSparky's Workshop?"],
+						desc = L["Registers Cauldron with LilSparky's Workshop so that pricing information will show up in the recipe list."],
+						arg = "EnableLilSparkysWorkshop",
+					},
+					--]]
 				},
 			},
 			shoppinglist = {
@@ -251,7 +262,7 @@ function Cauldron:InitPlayer()

 	-- store the current revision in the database
 	self.db.global.version = Cauldron.version;
-
+
 end

 function Cauldron:OnEnable()
@@ -336,7 +347,14 @@ end

 function Cauldron:OnTradeShow()
 	self:debug("OnTradeShow enter");
-
+
+	-- register with LSW
+	--[[
+	if Cauldron.db.global.options.EnableLilSparkysWorkshop then
+		CauldronLSW:Register();
+	end
+	--]]
+
 	-- update our known skills
 	self:debug("OnTradeShow: update known skills");
 --	self:ScheduleTimer(self.UpdateSkills,1,self);
diff --git a/CauldronTradeskill.lua b/CauldronTradeskill.lua
index aeeb2d3..58a4745 100644
--- a/CauldronTradeskill.lua
+++ b/CauldronTradeskill.lua
@@ -198,7 +198,7 @@ function Cauldron:UpdateSkills()

 							-- store the info if it's not already from rescanning
 							if not rescan then
-								Cauldron:error("Failed to retrieve reagent info; marking recipe for rescan: "..name);
+								-- Cauldron:error("Failed to retrieve reagent info; marking recipe for rescan: "..name);
 								Cauldron:MarkRecipeForRescan(skillDB, name);
 							end

diff --git a/Locale/Cauldron-enUS.lua b/Locale/Cauldron-enUS.lua
index 3aca30a..b418b1a 100644
--- a/Locale/Cauldron-enUS.lua
+++ b/Locale/Cauldron-enUS.lua
@@ -164,6 +164,12 @@ L["Needed for leveling:"] = true

 L["Oh. Smells like barbecued dog hair."] = true

+-- LSW strings
+L["Enable support for LilSparky's Workshop?"] = true
+L["Registers Cauldron with LilSparky's Workshop so that pricing information will show up in the recipe list."] = true
+L["Registering Cauldron with LilSparky's Workshop."] = true
+L["Cauldron does not support version %1$s of LilSparkysWorkshop."] = true
+
 -- error messages
 L["Crafting %1$s requires the %2$s skill."] = true