X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/9bc8361b6162481571467d6373336e0b173a9023..978ee00b8c408d36f1724683428f196c9e1e48f2:/OmaRFConfig/IndicatorsConfig.lua diff --git a/OmaRFConfig/IndicatorsConfig.lua b/OmaRFConfig/IndicatorsConfig.lua index 0867cdc..8d051f3 100644 --- a/OmaRFConfig/IndicatorsConfig.lua +++ b/OmaRFConfig/IndicatorsConfig.lua @@ -8,11 +8,62 @@ local function createOptionsTable(self) type = "toggle", name = "Enable", }, - indicatorFont = { - type = "select", - dialogControl = "LSM30_Font", - name = "Indicator font", - values = AceGUIWidgetLSMlists.font, + majorAuras = { + type = "group", + name = "Major Auras", + get = function(item) return self.db.profile.majorAuras[item[#item]] end, + set = function(item, value) + self.db.profile.majorAuras[item[#item]] = value; + self:RefreshConfig() + end, + args = { + auras = { + type = "input", + name = "Auras", + multiline = 10, + width = "full", + get = function(item) + return table.concat(self.db.profile.majorAuras["auras"], "\n"); + end, + set = function(item, value) + local t = {}; + for aura in string.gmatch(value, "[^\n]+") do + aura = string.gsub(aura, "^%s*(.-)%s$", "%1"); + if tonumber(aura) then + table.insert(t, tonumber(aura)); + else + table.insert(t, aura); + end + end + self.db.profile.majorAuras["auras"] = t; + self:RefreshConfig(); + end, + }, + max = { + type = "range", + name = "Number shown", + min = 1, + max = 10, + step = 1, + width = "full", + }, + iconSize = { + type = "range", + name = "Icon size", + min = 1, + max = 30, + step = 1, + width = "full", + }, + textSize = { + type = "range", + name = "Text size", + min = 1, + max = 30, + step = 1, + width = "full", + }, + } }, } };