Quantcast
local E, L, V, P, G = unpack(ElvUI);

local function configTable()
	--if not E.Options.args.sle.args.tooltip then E.Options.args.sle.args.tooltip = {} end
	E.Options.args.sle.args.tooltip = {
		order = 95,
		type = "group",
		get = function(info) return E.db.tooltip[ info[#info] ] end,
		name = L["Tooltip"],
		args = {
			header = {
				order = 1,
				type = "header",
				name = L["Tooltip"],
			},
			intro = {
				order = 2,
				type = 'description',
				name = "Tooltip description",
			},
			offset = {
				type = "group",
				name = "Cursor offset for game tooltip",
				order = 4,
				guiInline = true,
				disabled = function() return not E.private.tooltip.enable end,
				args = {
					mouseOffsetX = {
						order = 31,
						type = 'range',
						name = 'Tooltip X-offset',
						desc = 'Offset the tooltip on the X-axis.',
						min = -200, max = 200, step = 1,
						set = function(info, value) E.db.tooltip[ info[#info] ] = value end,
					},
					mouseOffsetY = {
						order = 32,
						type = 'range',
						name = 'Tooltip Y-offset',
						desc = 'Offset the tooltip on the Y-axis.',
						min = -200, max = 200, step = 1,
						set = function(info, value) E.db.tooltip[ info[#info] ] = value end,
					},
					--overrideCombat = {
						--order = 33,
						--type = 'toggle',
						--name = 'Override Combat Hide',
						--desc = 'When enabled, Combat Hide will get overridden when Shift is pressed. Note: You have to mouseover the unit again for the tooltip to show.',
						--set = function(info, value)
						--E.db.tooltip[ info[#info] ] = value
						--end,
					--},
				},
			},
		},
	}
end

table.insert(E.SLEConfigs, configTable)