From 79362f8bb626c46fe44b6fe34bd071ea182ee17f Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 11 Apr 2015 22:41:52 +0400 Subject: [PATCH] shitload of options --- ElvUI_SLE/options/minimap_c.lua | 89 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/ElvUI_SLE/options/minimap_c.lua b/ElvUI_SLE/options/minimap_c.lua index 515c41c..5438b2f 100644 --- a/ElvUI_SLE/options/minimap_c.lua +++ b/ElvUI_SLE/options/minimap_c.lua @@ -194,6 +194,95 @@ local function configTable() min = -50, max = 100, step = 1, disabled = function() return not E.private.general.minimap.enable or not E.db.sle.minimap.instance.enable end, }, + fontGroup = { + order = 5, + type = "group", + name = L["Fonts"], + guiInline = true, + get = function(info) return E.db.sle.minimap.instance[ info[#info] ] end, + set = function(info, value) E.db.sle.minimap.instance[ info[#info] ] = value; E:GetModule('SLE_InstDif'):UpdateFrame() end, + args = { + font = { + type = "select", dialogControl = 'LSM30_Font', + order = 1, + name = L["Font"], + values = AceGUIWidgetLSMlists.font, + }, + fontSize = { + order = 2, + name = L["Font Size"], + type = "range", + min = 6, max = 22, step = 1, + }, + fontOutline = { + order = 3, + name = L["Font Outline"], + desc = L["Set the font outline."], + type = "select", + values = { + ['NONE'] = L["None"], + ['OUTLINE'] = 'OUTLINE', + ['MONOCHROMEOUTLINE'] = 'MONOCROMEOUTLINE', + ['THICKOUTLINE'] = 'THICKOUTLINE', + }, + }, + }, + }, + colors = { + order = 8, + type = 'group', + name = L["Colors"], + guiInline = true, + get = function(info) + local t = E.db.sle.minimap.instance.colors[ info[#info] ] + local d = P.sle.minimap.instance.colors[info[#info]] + return t.r, t.g, t.b, t.a, d.r, d.g, d.b + end, + set = function(info, r, g, b) + E.db.sle.minimap.instance.colors[ info[#info] ] = {} + local t = E.db.sle.minimap.instance.colors[ info[#info] ] + t.r, t.g, t.b = r, g, b + E:GetModule('SLE_InstDif'):GenerateText(nil, nil, true) + end, + disabled = function() return not E.private.general.minimap.enable or not E.db.sle.minimap.instance.enable end, + args = { + info = { + order = 1, + type = "description", + name = L['Sets the colors for difficulty abbriviation'], + }, + lfr = { + type = "color", + order = 2, + name = PLAYER_DIFFICULTY3, + hasAlpha = false, + }, + normal = { + type = "color", + order = 3, + name = PLAYER_DIFFICULTY1, + hasAlpha = false, + }, + heroic = { + type = "color", + order = 4, + name = PLAYER_DIFFICULTY2, + hasAlpha = false, + }, + challenge = { + type = "color", + order = 5, + name = PLAYER_DIFFICULTY5, + hasAlpha = false, + }, + mythic = { + type = "color", + order = 6, + name = PLAYER_DIFFICULTY6, + hasAlpha = false, + }, + }, + }, }, }, }, -- 1.7.9.5