local mMT, DB, M, E, P, L, MEDIA = unpack(ElvUI_mMediaTag)
local DT = E:GetModule("DataTexts")

mMT.options.args.datatexts.args.misc_professions.args = {
	settings = {
		order = 1,
		type = "group",
		inline = true,
		name = L["Settings"],
		args = {
			style = {
				order = 1,
				type = "select",
				name = L["Icon Style"],
				get = function(info)
					return E.db.mMediaTag.datatexts.professions.icon
				end,
				set = function(info, value)
					E.db.mMediaTag.datatexts.professions.icon = value
					DT:ForceUpdate_DataText("mMT - Professions")
				end,
				values = function()
					local dt_icons = MEDIA.icons.datatexts.professions

					local values = {}
					for key, icon in pairs(dt_icons) do
						values[key] = E:TextureString(icon, ":14:14")
					end

					values.none = L["None"]
					return values
				end,
			},
            menu_icons = {
                order = 2,
                type = "toggle",
                name = L["Menu Icons"],
                get = function(info)
                    return E.db.mMediaTag.datatexts.professions.menu_icons
                end,
                set = function(info, value)
                    E.db.mMediaTag.datatexts.professions.menu_icons = value
                end,
            },
		},
	},
}
