diff Modules/Config.lua @ 210:1959e2b3dfe1

You can now toggle the minimap icon in the ?Extra? config category.
author Zerotorescue
date Sat, 05 Feb 2011 20:28:55 +0100
parents 0ea991d9093c
children a7c02f65b072
line wrap: on
line diff
--- a/Modules/Config.lua	Sat Feb 05 20:09:03 2011 +0100
+++ b/Modules/Config.lua	Sat Feb 05 20:28:55 2011 +0100
@@ -1885,6 +1885,23 @@
 				inline = true,
 				name = "Miscellaneous",
 				args = {
+					minimapIcon = {
+						order = 0,
+						type = "toggle",
+						width = "full",
+						name = "Display the minimap icon",
+						desc = "Display the minimap icon for Inventorium allowing functionality to be used without typing slash commands.",
+						get = function() return addon.db.profile.defaults.minimapIcon; end,
+						set = function(i, v)
+							addon.db.profile.defaults.minimapIcon = v;
+							
+							if v then
+								addon:GetModule("MinimapIcon"):ShowIcon();
+							else
+								addon:GetModule("MinimapIcon"):HideIcon();
+							end
+						end,
+					},
 					hideHelp = {
 						order = 10,
 						type = "toggle",