All pastes #276462 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-12 10:49 UTC
rendered paste body
Nosey.cmdtable = {type = "group", handler = Nosey, args = {
		[L["sellValuesMenu"]] = {
			type = "group",
			name = L["Sell Values"],
			desc = L["Options for sell values."],
			args = {
				purge = {
					name = L["Purge"], type = "execute",
					desc = L["Purges the current databse."],
					func = function(text) self:PurgeDB() end,
				},
				sValue = {
					type = "toggle",
					name = L["Item Sell Value"],
					desc = L["Toggle sell value on gametooltips."],
					get = function() return self.db.profile.sValue end,
					set = function(v) self.db.profile.sValue = v; self:ResetItemRefTooltip() end,		
				},
			},
		},
		[L["itemID"]] = {
			type = "toggle",
			name = L["Item ID"],
			desc = L["Toggle item ID on gametooltips."],
			get = function() return self.db.profile.itemID end,
			set = function(v) self.db.profile.itemID = v; self:ResetItemRefTooltip() end,		
		},
		[L["skill"]] = {
			type = "toggle",
			name = "Item Skill Level",
			desc = L["Toggle WoWx's Skill Levelist."],
			get = function() return self.db.profile.skill end,
			set = function(v) self.db.profile.skill = v; self:ResetItemRefTooltip() end,		
		},
		[L["icons"]] = {
			type = "toggle",
			name = "Item Icons",
			desc = L["Toggle icons on gametooltips."],
			get = function() return self.db.profile.icons end,
			set = function(v) self.db.profile.icons = v; if not self.db.profile.icons then GameTooltipIcon:Hide() else GameTooltipIcon:Show() end end,		
		},
		[L["quality"]] = {
			name = "quality", type = "range",
                	desc = L["Set the maximum quality level of items to display the sell value for. 0 = Poor, 1 = Common, 2 = Uncommon, 3 = Rare, 4 = Epic, 5 = Legendary, 6 = Artifact."],
		        get = function() return self.db.account.QualityLevel end,
		        set = function(v) self.db.account.QualityLevel = v end,
                	min = 0, max = 6, step = 1
		},
		[L["autorepair"]] = {
			name = "Auto-Repair", type = "text",
                	desc = L["Set the minimum ammount of gold you can have to auto-repair. Set to -1 to turn off."],
		        get = function() return self.db.profile.autorepair end,
		        set = function(v) self.db.profile.autorepair = v end,
			usage = "-1",
		},
		
	}
}