Add function to reset the GUI to defaults (two new localization strings)
Ackis [12-29-08 - 18:09]
Add function to reset the GUI to defaults (two new localization strings)
diff --git a/ARLConfig.lua b/ARLConfig.lua
index 5322211..f3905d0 100644
--- a/ARLConfig.lua
+++ b/ARLConfig.lua
@@ -1016,6 +1016,13 @@ local function fullOptions()
desc = L["VIEW_EXCLUSION_LIST_DESC"],
func = function(info) addon:ViewExclusionList() end,
},
+ resetguiwindow = {
+ order = 15,
+ type = "execute",
+ name = L["Reset Window"],
+ desc = L["RESET_WINDOW_DESC"],
+ func = function(info) addon:ResetGUI() end,
+ },
spacer1 = {
order = 19,
type = "description",
diff --git a/ARLDataminer.rb b/ARLDataminer.rb
index 38a2673..39f89a0 100644
--- a/ARLDataminer.rb
+++ b/ARLDataminer.rb
@@ -1745,6 +1745,8 @@ L["Close GUI"] = "Close with Tradeskill UI"
L["CLOSEGUI_DESC"] = "Close the ARL window when the crafting window is closed."
L["Display Exclusions"] = true
L["DISPLAY_EXCLUSION_DESC"] = "Display recipes that are in the exclusion list."
+L["Reset Window"] = true
+L["RESET_WINDOW_DESC"] = "Resets the ARL GUI to default position."
L["UI Scale"] = true
L["UI_SCALE_DESC"] = "Changes the scale of the UI. Ranges from .5 to 1.5 (1 is default)"
L["Tooltip Scale"] = true
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 0cb84e4..f891014 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -1054,6 +1054,17 @@ local function SetProgressBar(playerData)
end
+function addon:ResetGUI()
+
+ addon.db.profile.frameopts.offsetx = 0
+ addon.db.profile.frameopts.offsety = 0
+ addon.db.profile.frameopts.anchorTo = ""
+ addon.db.profile.frameopts.anchorFrom = ""
+ addon.db.profile.frameopts.uiscale = 1
+ addon.db.profile.frameopts.tooltipscale = .9
+
+end
+
-- Under various conditions, I'm going to have to redisplay my recipe list
-- This could happen because a filter changes, a new profession is chosen, or
-- a new search occurred. Use this function to do all the dirty work
diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua
index 62b54fd..de0ff21 100644
--- a/Locals/ARLLocals-enUS.lua
+++ b/Locals/ARLLocals-enUS.lua
@@ -87,6 +87,8 @@ L["Close GUI"] = "Close with Tradeskill UI"
L["CLOSEGUI_DESC"] = "Close the ARL window when the crafting window is closed."
L["Display Exclusions"] = true
L["DISPLAY_EXCLUSION_DESC"] = "Display recipes that are in the exclusion list."
+L["Reset Window"] = true
+L["RESET_WINDOW_DESC"] = "Resets the ARL GUI to default position."
L["UI Scale"] = true
L["UI_SCALE_DESC"] = "Changes the scale of the UI. Ranges from .5 to 1.5 (1 is default)"
L["Tooltip Scale"] = true
diff --git a/RecipeStats.txt b/RecipeStats.txt
index b35c0b4..180b61e 100644
--- a/RecipeStats.txt
+++ b/RecipeStats.txt
@@ -301,10 +301,6 @@ Unknown faction:
No acquire information (82 Recipes):
-47046 - Guardian's Alchemist Stone - Alchemy
-47048 - Sorcerer's Alchemist Stone - Alchemy
-47049 - Redeemer's Alchemist Stone - Alchemy
-47050 - Assassin's Alchemist Stone - Alchemy
3496 - Moonsteel Broadsword - Blacksmithing
3503 - Golden Scale Coif - Blacksmithing
9972 - Ornate Mithril Breastplate - Blacksmithing