Quantcast

Ackis Recipe List:

Ackis [12-09-08 - 20:11]
Ackis Recipe List:
- Added 4 new localization strings:
L["Scan Button Position"]	= true
L["SCANBUTTONPOSITION_DESC"] = "Allows you to customize where the scan button is placed on the tradeskill frame."
L["Right"]					= true
L["Left"]					= true
- Make it so you can customize where the scan button apprears on the trade skill frame (Default is where it's at now)
- Dry-coded (Compiles with luac -p)
Filename
ARLConfig.lua
ARLDataminer.rb
ARLFrame.lua
AckisRecipeList.lua
Locals/ARLLocals-enUS.lua
diff --git a/ARLConfig.lua b/ARLConfig.lua
index 7fc6484..8f1f510 100644
--- a/ARLConfig.lua
+++ b/ARLConfig.lua
@@ -1017,7 +1017,7 @@ local function fullOptions()
 							func	= function(info) addon:ViewExclusionList() end,
 						},
 						spacer1 = {
-							order	= 15,
+							order	= 19,
 							type	= "description",
 							name	= "\n",
 						},
@@ -1064,6 +1064,15 @@ local function fullOptions()
 							get		= function() return addon.db.profile.ignoreexclusionlist end,
 							set		= function() addon.db.profile.ignoreexclusionlist = not addon.db.profile.ignoreexclusionlist end,
 						},
+						scanbuttonlocation = {
+							order	= 27,
+							type	= "select",
+							name	= L["Scan Button Position"],
+							desc	= L["SCANBUTTONPOSITION_DESC"],
+							get		= function() return addon.db.profile.scanbuttonlocation end,
+							set		= function(info,name) addon.db.profile.scanbuttonlocation = name end,
+							values	= function() return {Risght = L["Right"], Left = L["Left"]} end,
+						},
 						uiscale = {
 							order	= 30,
 							type	= "range",
diff --git a/ARLDataminer.rb b/ARLDataminer.rb
index cd2bbec..d58d813 100644
--- a/ARLDataminer.rb
+++ b/ARLDataminer.rb
@@ -1194,6 +1194,8 @@ L["SCAN_RECIPES_DESC"]		= "Scans an open tradeskill for missing recipes."
 L["Text Dump"]				= true
 L["TEXT_DUMP_DESC"]			= "Displays all recipes in a comma separated value format which can be copied and pasted into another client."
 L["View Exclusion List"]	= true
+L["Scan Button Position"]	= true
+L["SCANBUTTONPOSITION_DESC"] = "Allows you to customize where the scan button is placed on the tradeskill frame."
 L["VIEW_EXCLUSION_LIST_DESC"] = "Prints out a list of all recipes on the exclusion list."
 L["DISPLAY_SETTINGS_DESC"]	= "Allows you to customize how the GUI behaves."
 L["SORTING_SETTINGS_DESC"]	= "Allows you to customize the way displayed recipes are sorted."
@@ -1201,9 +1203,9 @@ L["ARL_DOC_DESC"]			= "Documentation for Ackis Recipe List"

 -- UI Documentation
 L["Using Filters"]			= true
-L["USING_FILTERS_DESC"]		= "Filters may be toggled on or off.  There are two types of filters: one which will prevent the recipe from showing up at all, and one which will prevent a specific type of acquire information from showing up.\\nWith the first type of filter, these match the proprieties of the recipe (ie: binding).  If you toggle ARL to not show BoP recipes, no recipes that are BoP will show up in the scan.  The second type of filter deals with acquire information.  If a recipe is available as a mob drop, or from a vendor and you toggle to not show vendor recipes, the recipe will still show up but vendor information will be hidden for it.  The reason is that there is still another way to acquire this recipe (mob drop) so it should still be included in the scan."
+L["USING_FILTERS_DESC"]		= "Filters may be toggled on or off.  There are two types of filters: one which will prevent the recipe from showing up at all, and one which will prevent a specific type of acquire information from showing up.\nWith the first type of filter, these match the proprieties of the recipe (ie: binding).  If you toggle ARL to not show BoP recipes, no recipes that are BoP will show up in the scan.  The second type of filter deals with acquire information.  If a recipe is available as a mob drop, or from a vendor and you toggle to not show vendor recipes, the recipe will still show up but vendor information will be hidden for it.  The reason is that there is still another way to acquire this recipe (mob drop) so it should still be included in the scan."
 L["Reporting Bugs"]			= true
-L["REPORTING_BUGS_DESC"]	= "When reporting a bug, please make sure you do the following:\\n1) Download the latest version, available from http://www.wowace.com/projects/arl/files/\\n2) Make sure there is not a bug report filed for your issue already.  You can check these at http://www.wowace.com/projects/arl/tickets/\\n2a) Disable addons such as Skillet or ATSW.\\n3) If your problem is not listed and you are using the latest version verify your addon settings.  Verify filters, profiles, etc.\\n4) You have found a bug that no one has reported before.  Create a new ticket at http://www.wowace.com/projects/arl/tickets/ with a descriptive heading about the problem.  In the ticket make sure you include the error message that you received (just the error message, I don't need a listing of the addons you use), the recipe/profession you were working with, and any other info that you think may help."
+L["REPORTING_BUGS_DESC"]	= "When reporting a bug, please make sure you do the following:\n1) Download the latest version, available from http://www.wowace.com/projects/arl/files/\n2) Make sure there is not a bug report filed for your issue already.  You can check these at http://www.wowace.com/projects/arl/tickets/\n2a) Disable addons such as Skillet or ATSW.\n3) If your problem is not listed and you are using the latest version verify your addon settings.  Verify filters, profiles, etc.\n4) You have found a bug that no one has reported before.  Create a new ticket at http://www.wowace.com/projects/arl/tickets/ with a descriptive heading about the problem.  In the ticket make sure you include the error message that you received (just the error message, I don't need a listing of the addons you use), the recipe/profession you were working with, and any other info that you think may help."

 -- Config UI Elements and their associated descriptions
 L["Include Filtered"]		= true
@@ -1223,6 +1225,8 @@ L["Sort"]					= true
 L["Display"]				= true
 L["SORTING_DESC"]			= "Change the way in which displayed recipes are sorted."
 L["Version"]				= "Version: "
+L["Right"]					= true
+L["Left"]					= true
 L["Name"]					= true
 L["Skill"]					= true
 L["Location"]				= true
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 80eb2fb..4fc3871 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -1173,7 +1173,14 @@ function addon:ShowScanButton()

 		addon.ScanButton:SetParent(TradeSkillFrame)
 		addon.ScanButton:ClearAllPoints()
-		addon.ScanButton:SetPoint("RIGHT",TradeSkillFrameCloseButton,"LEFT",4,0)
+
+		local loc = addon.db.profile.scanbuttonlocation
+
+		if (loc == L["Right"]) then
+			addon.ScanButton:SetPoint("RIGHT",TradeSkillFrameCloseButton,"LEFT",4,0)
+		elseif (loc == L["Left"]) then
+			addon.ScanButton:SetPoint("LEFT",TradeSkillFramePortrait,"RIGHT",4,0)
+		end
 		addon.ScanButton:SetWidth(addon.ScanButton:GetTextWidth() + 10)

 	end
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index 0fad77e..a701053 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -154,6 +154,7 @@ function addon:OnInitialize()
 			includeexcluded = false,
 			closeguionskillclose = false,
 			ignoreexclusionlist = false,
+			scanbuttonlocation = L["Right"],

 			-- Recipe Exclusion
 			exclusionlist = {},
diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua
index 41d9573..0960c93 100644
--- a/Locals/ARLLocals-enUS.lua
+++ b/Locals/ARLLocals-enUS.lua
@@ -61,6 +61,8 @@ L["SCAN_RECIPES_DESC"]		= "Scans an open tradeskill for missing recipes."
 L["Text Dump"]				= true
 L["TEXT_DUMP_DESC"]			= "Displays all recipes in a comma separated value format which can be copied and pasted into another client."
 L["View Exclusion List"]	= true
+L["Scan Button Position"]	= true
+L["SCANBUTTONPOSITION_DESC"] = "Allows you to customize where the scan button is placed on the tradeskill frame."
 L["VIEW_EXCLUSION_LIST_DESC"] = "Prints out a list of all recipes on the exclusion list."
 L["DISPLAY_SETTINGS_DESC"]	= "Allows you to customize how the GUI behaves."
 L["SORTING_SETTINGS_DESC"]	= "Allows you to customize the way displayed recipes are sorted."
@@ -90,6 +92,8 @@ L["Sort"]					= true
 L["Display"]				= true
 L["SORTING_DESC"]			= "Change the way in which displayed recipes are sorted."
 L["Version"]				= "Version: "
+L["Right"]					= true
+L["Left"]					= true
 L["Name"]					= true
 L["Skill"]					= true
 L["Location"]				= true