local E, L, V, P, G = unpack(ElvUI);
local MER = E:GetModule('MerathilisUI');

local function Misc()
	E.Options.args.mui.args.misc = {
		order = 9,
		type = 'group',
		name = L['Misc'],
		guiInline = true,
		get = function(info) return E.db.mui.misc[ info[#info] ] end,
		set = function(info, value) E.db.mui.misc[ info[#info] ] = value; E:StaticPopup_Show('PRIVATE_RL'); end,
		args = {
			Tooltip = {
				order = 1,
				type = 'toggle',
				name = L['Tooltip'],
				desc = L['Adds an Icon for Items/Spells/Achievement on the Tooltip and show the Achievement Progress.'],
			},
			HideAlertFrame = {
				order = 2,
				type = 'toggle',
				name = L['Garrison Alert Frame'],
				desc = L['Hides the Garrison Alert Frame while in combat.'],
			},
			MailInputbox = {
				order = 3,
				type = 'toggle',
				name = L['Mail Inputbox Resize'],
				desc = L['Resize the Mail Inputbox and move the shipping cost to the Bottom'],
			},
			FriendAlert = {
				order = 4,
				type = 'toggle',
				name = L['Battle.net Alert'],
				desc = L['Shows a Chat notification if a Battle.net Friend switch Games or goes offline.'],
			},
			moveBlizz = {
				order = 5,
				type = 'toggle',
				name = L['moveBlizz'],
				desc = L['Make some Blizzard Frames movable.'],
			},
			tradeTabs = {
				order = 6,
				type = 'toggle',
				name = L['TradeSkill Tabs'],
				desc = L['Add tabs for professions on the TradeSkill Frame.'],
			},
			gmotd = {
				order = 7,
				type = 'toggle',
				name = GUILD_MOTD_LABEL2,
				desc = L["Display the Guild Message of the Day in an extra window, if updated."],
			},
			vignette = {
				order = 8,
				type = 'toggle',
				name = L["Vignette"],
				desc = L["Display a RaidWarning if a Rar/Treasures are spotted on the minimap."],
			},
			minimapping = {
				order = 9,
				type = 'toggle',
				name = L["MinimapPing"],
				desc = L["Shows the PlayerName on the Minimap if someone pings."],
			},
		},
	}
end
tinsert(MER.Config, Misc)