From 5e649c9b2ee1253f9bedfe479e916a5e701c38b5 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 27 Nov 2014 12:42:34 +0400 Subject: [PATCH] Raid marker options change --- ElvUI_SLE/options/raidmarkers_c.lua | 162 ++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 79 deletions(-) diff --git a/ElvUI_SLE/options/raidmarkers_c.lua b/ElvUI_SLE/options/raidmarkers_c.lua index adf44ef..5284d87 100644 --- a/ElvUI_SLE/options/raidmarkers_c.lua +++ b/ElvUI_SLE/options/raidmarkers_c.lua @@ -2,7 +2,7 @@ local RM = E:GetModule('SLE_RaidMarkers') local raidmarkerVisibility = { - DEFAULT = L['Use Default'], + DEFAULT = L['Default'], INPARTY = AGGRO_WARNING_IN_PARTY, } @@ -10,88 +10,92 @@ local function configTable() E.Options.args.sle.args.options.args.raidmarkerbars = { order = 4, type = "group", - name = L["Raid Marks"], + name = L["Raid Markers"], get = function(info) return E.db.sle.raidmarkers[ info[#info] ] end, set = function(info, value) E.db.sle.raidmarkers[ info[#info] ] = value; RM:ToggleSettings() end, args = { - marks = { - order = 2, - type = "group", + marksheader = { + order = 1, + type = "header", name = L["Raid Markers"], - args = { - marksheader = { - order = 1, - type = "header", - name = L["Raid Markers"], - }, - enable = { - order = 2, - type = "toggle", - name = L["Enable"], - desc = L["Show/Hide raid marks."], - }, - reset = { - order = 3, - type = 'execute', - name = L['Restore Defaults'], - desc = L["Reset these options to defaults"], - disabled = function() return not E.db.sle.raidmarkers.enable end, - func = function() E:GetModule('SLE'):Reset("marks") end, - }, - space1 = { - order = 4, - type = 'description', - name = "", - }, - visibility = { - type = 'select', - order = 5, - name = L["Visibility"], - disabled = function() return not E.db.sle.raidmarkers.enable end, - values = raidmarkerVisibility, - }, - backdrop = { - type = 'toggle', - order = 6, - name = L["Backdrop"], - disabled = function() return not E.db.sle.raidmarkers.enable end, - }, - buttonSize = { - order = 7, - type = 'range', - name = L['Button Size'], - min = 16, max = 40, step = 1, - disabled = function() return not E.db.sle.raidmarkers.enable end, - }, - spacing = { - order = 8, - type = 'range', - name = L["Button Spacing"], - min = 0, max = 10, step = 1, - disabled = function() return not E.db.sle.raidmarkers.enable end, - }, - orientation = { - order = 9, - type = 'select', - name = L['Orientation'], - disabled = function() return not E.db.sle.raidmarkers.enable end, - values = { - ['HORIZONTAL'] = L['Horizontal'], - ['VERTICAL'] = L['Vertical'], - }, - }, - modifier = { - order = 10, - type = 'select', - name = L['Modifier Key'], - desc = L['Set the modifier key for placing world markers.'], - disabled = function() return not E.db.sle.raidmarkers.enable end, - values = { - ['shift-'] = L['Shift Key'], - ['ctrl-'] = L['Ctrl Key'], - ['alt-'] = L['Alt Key'], - }, - }, + }, + info = { + order = 2, + type = "description", + name = L['Options for panels providing fast access to raid markers and flares.'], + }, + enable = { + order = 3, + type = "toggle", + name = L["Enable"], + desc = L["Show/Hide raid marks."], + }, + reset = { + order = 4, + type = 'execute', + name = L['Restore Defaults'], + desc = L["Reset these options to defaults"], + disabled = function() return not E.db.sle.raidmarkers.enable end, + func = function() E:GetModule('SLE'):Reset("marks") end, + }, + space1 = { + order = 5, + type = 'description', + name = "", + }, + visibility = { + type = 'select', + order = 6, + name = L["Visibility"], + disabled = function() return not E.db.sle.raidmarkers.enable end, + values = raidmarkerVisibility, + }, + backdrop = { + type = 'toggle', + order = 7, + name = L["Backdrop"], + disabled = function() return not E.db.sle.raidmarkers.enable end, + }, + buttonSize = { + order = 8, + type = 'range', + name = L['Button Size'], + min = 16, max = 40, step = 1, + disabled = function() return not E.db.sle.raidmarkers.enable end, + }, + spacing = { + order = 9, + type = 'range', + name = L["Button Spacing"], + min = 0, max = 10, step = 1, + disabled = function() return not E.db.sle.raidmarkers.enable end, + }, + orientation = { + order = 10, + type = 'select', + name = L['Orientation'], + disabled = function() return not E.db.sle.raidmarkers.enable end, + values = { + ['HORIZONTAL'] = L['Horizontal'], + ['VERTICAL'] = L['Vertical'], + }, + }, + reverse = { + type = 'toggle', + order = 11, + name = L["Reverse"], + disabled = function() return not E.db.sle.raidmarkers.enable end, + }, + modifier = { + order = 12, + type = 'select', + name = L['Modifier Key'], + desc = L['Set the modifier key for placing world markers.'], + disabled = function() return not E.db.sle.raidmarkers.enable end, + values = { + ['shift-'] = SHIFT_KEY, + ['ctrl-'] = CTRL_KEY, + ['alt-'] = ALT_KEY, }, }, }, -- 1.7.9.5