Commit e6c1a820 authored by Simpy's avatar Simpy 🐹
Browse files

minor config tweaks

parent 4f7468c9
......@@ -93,37 +93,36 @@ local DTPanelOptions = {
name = L["Tooltip"],
guiInline = true,
args = {
tooltipAnchor = {
order = 2,
type = 'select',
name = L["Anchor"],
width = 'double',
values = {
ANCHOR_TOP = L["ANCHOR_TOP"],
ANCHOR_RIGHT = L["ANCHOR_RIGHT"],
ANCHOR_BOTTOM = L["ANCHOR_BOTTOM"],
ANCHOR_LEFT = L["ANCHOR_LEFT"],
ANCHOR_TOPRIGHT = L["ANCHOR_TOPRIGHT"],
ANCHOR_BOTTOMRIGHT = L["ANCHOR_BOTTOMRIGHT"],
ANCHOR_TOPLEFT = L["ANCHOR_TOPLEFT"],
ANCHOR_BOTTOMLEFT = L["ANCHOR_BOTTOMLEFT"],
ANCHOR_CURSOR = L["ANCHOR_CURSOR"],
ANCHOR_CURSOR_LEFT = L["ANCHOR_CURSOR_LEFT"],
ANCHOR_CURSOR_RIGHT = L["ANCHOR_CURSOR_RIGHT"],
},
},
tooltipXOffset = {
order = 2,
order = 1,
type = 'range',
name = L["X-Offset"],
min = -30, max = 30, step = 1,
},
tooltipYOffset = {
order = 3,
order = 2,
type = 'range',
name = L["Y-Offset"],
min = -30, max = 30, step = 1,
},
tooltipAnchor = {
order = 3,
type = 'select',
name = L["Anchor"],
values = {
ANCHOR_TOP = L["TOP"],
ANCHOR_RIGHT = L["RIGHT"],
ANCHOR_BOTTOM = L["BOTTOM"],
ANCHOR_LEFT = L["LEFT"],
ANCHOR_TOPRIGHT = L["TOPRIGHT"],
ANCHOR_BOTTOMRIGHT = L["BOTTOMRIGHT"],
ANCHOR_TOPLEFT = L["TOPLEFT"],
ANCHOR_BOTTOMLEFT = L["BOTTOMLEFT"],
ANCHOR_CURSOR = L["CURSOR"],
ANCHOR_CURSOR_LEFT = L["CURSOR_LEFT"],
ANCHOR_CURSOR_RIGHT = L["CURSOR_RIGHT"],
},
},
},
},
visibility = {
......
......@@ -255,7 +255,7 @@ E.Options.args.filters = {
name = L["Select Spell"],
type = 'select',
order = 1,
width = 'double',
customWidth = 350,
get = function(info) return selectedSpell or '' end,
set = function(info, value)
selectedSpell = (value ~= '' and value) or nil
......@@ -267,6 +267,7 @@ E.Options.args.filters = {
name = L["Filter Search"],
desc = L["Search for a spell name inside of a filter."],
type = 'input',
customWidth = 200,
get = function() return quickSearchText end,
set = function(info,value) quickSearchText = value end,
},
......@@ -283,42 +284,8 @@ E.Options.args.filters = {
set = function(info, value) E.global.unitframe.aurafilters[selectedFilter].type = value; UF:Update_AllFrames(); end,
hidden = function() return (selectedFilter == 'Debuff Highlight' or selectedFilter == 'AuraBar Colors' or selectedFilter == 'Buff Indicator (Pet)' or selectedFilter == 'Buff Indicator (Profile)' or selectedFilter == 'Buff Indicator' or selectedFilter == 'Whitelist' or selectedFilter == 'Blacklist') end,
},
addSpell = {
order = 4,
name = L["Add SpellID"],
desc = L["Add a spell to the filter."],
type = 'input',
get = function(info) return '' end,
set = function(info, value)
value = tonumber(value)
if not value then return end
local spellName = GetSpellInfo(value)
selectedSpell = (spellName and value) or nil
if not selectedSpell then return end
if selectedFilter == 'Debuff Highlight' then
if not E.global.unitframe.DebuffHighlightColors[value] then
E.global.unitframe.DebuffHighlightColors[value] = { enable = true, style = 'GLOW', color = {r = 0.8, g = 0, b = 0, a = 0.85} }
end
elseif selectedFilter == 'AuraBar Colors' then
if not E.global.unitframe.AuraBarColors[value] then
E.global.unitframe.AuraBarColors[value] = E:CopyTable({}, auraBarDefaults)
end
elseif selectedFilter == 'Buff Indicator (Pet)' or selectedFilter == 'Buff Indicator (Profile)' or selectedFilter == 'Buff Indicator' then
local selectedTable = GetSelectedFilters()
if not selectedTable[value] then
selectedTable[value] = UF:AuraWatch_AddSpell(value, 'TOPRIGHT')
end
elseif not E.global.unitframe.aurafilters[selectedFilter].spells[value] then
E.global.unitframe.aurafilters[selectedFilter].spells[value] = { enable = true, priority = 0, stackThreshold = 0 }
end
UF:Update_AllFrames()
end,
},
removeSpell = {
order = 5,
order = 4,
name = L["Remove Spell"],
desc = L["Remove a spell from the filter. Use the spell ID if you see the ID as part of the spell name in the filter."],
type = 'select',
......@@ -327,6 +294,7 @@ E.Options.args.filters = {
local name = (spellName and format('%s |cFF888888(%s)|r', spellName, value)) or tostring(value)
return 'Remove Spell - '..name
end,
customWidth = 350,
get = function(info) return '' end,
set = function(info, value)
if not value then return end
......@@ -358,6 +326,41 @@ E.Options.args.filters = {
end,
values = SetSpellList,
},
addSpell = {
order = 5,
name = L["Add SpellID"],
desc = L["Add a spell to the filter."],
type = 'input',
customWidth = 200,
get = function(info) return '' end,
set = function(info, value)
value = tonumber(value)
if not value then return end
local spellName = GetSpellInfo(value)
selectedSpell = (spellName and value) or nil
if not selectedSpell then return end
if selectedFilter == 'Debuff Highlight' then
if not E.global.unitframe.DebuffHighlightColors[value] then
E.global.unitframe.DebuffHighlightColors[value] = { enable = true, style = 'GLOW', color = {r = 0.8, g = 0, b = 0, a = 0.85} }
end
elseif selectedFilter == 'AuraBar Colors' then
if not E.global.unitframe.AuraBarColors[value] then
E.global.unitframe.AuraBarColors[value] = E:CopyTable({}, auraBarDefaults)
end
elseif selectedFilter == 'Buff Indicator (Pet)' or selectedFilter == 'Buff Indicator (Profile)' or selectedFilter == 'Buff Indicator' then
local selectedTable = GetSelectedFilters()
if not selectedTable[value] then
selectedTable[value] = UF:AuraWatch_AddSpell(value, 'TOPRIGHT')
end
elseif not E.global.unitframe.aurafilters[selectedFilter].spells[value] then
E.global.unitframe.aurafilters[selectedFilter].spells[value] = { enable = true, priority = 0, stackThreshold = 0 }
end
UF:Update_AllFrames()
end,
},
},
},
buffIndicator = {
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "Server immer anzeigen"
L["An X offset (in pixels) to be used when anchoring new frames."] = "X-Versatz (in Pixeln) der verwendet werden soll um neue Fenster zu ankern"
L["An Y offset (in pixels) to be used when anchoring new frames."] = "Y-Versatz (in Pixeln) der verwendet werden soll um neue Fenster zu ankern"
L["Anchor Point"] = "Ankerpunkt"
L["ANCHOR_CURSOR_LEFT"] = "Mausanker links"
L["ANCHOR_CURSOR_RIGHT"] = "Mausanker rechts"
L["ANCHOR_CURSOR"] = "Mausanker"
L["CURSOR_LEFT"] = "Mausanker links"
L["CURSOR_RIGHT"] = "Mausanker rechts"
L["CURSOR"] = "Mausanker"
L["Announce Interrupts"] = "Unterbrechungen ankündigen"
L["Announce when you interrupt a spell to the specified chat channel."] = "Melde über den angegebenen Chatkanal einen unterbrochenen Zauber."
L["Any"] = "Irgendeine"
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = true
L["An X offset (in pixels) to be used when anchoring new frames."] = true
L["An Y offset (in pixels) to be used when anchoring new frames."] = true
L["Anchor Point"] = true
L["ANCHOR_CURSOR_LEFT"] = true
L["ANCHOR_CURSOR_RIGHT"] = true
L["ANCHOR_CURSOR"] = true
L["CURSOR_LEFT"] = true
L["CURSOR_RIGHT"] = true
L["CURSOR"] = true
L["Announce Interrupts"] = true
L["Announce when you interrupt a spell to the specified chat channel."] = true
L["Any"] = true
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "Mostrar siempre el reino"
L["An X offset (in pixels) to be used when anchoring new frames."] = true
L["An Y offset (in pixels) to be used when anchoring new frames."] = true
L["Anchor Point"] = "Punto de Fijación"
L["ANCHOR_CURSOR_LEFT"] = true
L["ANCHOR_CURSOR_RIGHT"] = true
L["ANCHOR_CURSOR"] = true
L["CURSOR_LEFT"] = "Izquierda del cursor"
L["CURSOR_RIGHT"] = "Derecha del cursor"
L["CURSOR"] = true
L["Announce Interrupts"] = "Anunciar Interrupciones"
L["Announce when you interrupt a spell to the specified chat channel."] = "Anunciar cuando interrumpas un hechizo en el canal especificado."
L["Any"] = "Alguna"
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = true
L["An X offset (in pixels) to be used when anchoring new frames."] = "Un décalage X (en pixels) à utiliser lors d'un ancrage d'une nouvelle fenêtre."
L["An Y offset (in pixels) to be used when anchoring new frames."] = "Un décalage Y (en pixels) à utiliser lors d'un ancrage d'une nouvelle fenêtre."
L["Anchor Point"] = "Point d'ancrage"
L["ANCHOR_CURSOR_LEFT"] = true
L["ANCHOR_CURSOR_RIGHT"] = true
L["ANCHOR_CURSOR"] = true
L["CURSOR_LEFT"] = true
L["CURSOR_RIGHT"] = true
L["CURSOR"] = true
L["Announce Interrupts"] = "Annoncer les interruptions"
L["Announce when you interrupt a spell to the specified chat channel."] = "Annonce quand vous interrompez un sort dans le canal de chat spécifié."
L["Any"] = true
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = true
L["An X offset (in pixels) to be used when anchoring new frames."] = true
L["An Y offset (in pixels) to be used when anchoring new frames."] = true
L["Anchor Point"] = true
L["ANCHOR_CURSOR_LEFT"] = true
L["ANCHOR_CURSOR_RIGHT"] = true
L["ANCHOR_CURSOR"] = true
L["CURSOR_LEFT"] = true
L["CURSOR_RIGHT"] = true
L["CURSOR"] = true
L["Announce Interrupts"] = true
L["Announce when you interrupt a spell to the specified chat channel."] = true
L["Any"] = true
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = true
L["An X offset (in pixels) to be used when anchoring new frames."] = "기준 프레임에서 가로로 얼마만큼 떨어져 있을지를 결정합니다."
L["An Y offset (in pixels) to be used when anchoring new frames."] = "기준 프레임에서 세로로 얼마만큼 떨어져 있을지를 결정합니다."
L["Anchor Point"] = "기준점"
L["ANCHOR_CURSOR_LEFT"] = true
L["ANCHOR_CURSOR_RIGHT"] = true
L["ANCHOR_CURSOR"] = true
L["CURSOR_LEFT"] = true
L["CURSOR_RIGHT"] = true
L["CURSOR"] = true
L["Announce Interrupts"] = "차단 성공시 알림"
L["Announce when you interrupt a spell to the specified chat channel."] = "주문 차단에 성공하면 여기에서 설정한 채널로 차단성공을 알립니다."
L["Any"] = true
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "Sempre Mostrar Reino"
L["An X offset (in pixels) to be used when anchoring new frames."] = "Um Deslocamento Eixo-X (em pixels) para ser usada quando ancorando novos quadros."
L["An Y offset (in pixels) to be used when anchoring new frames."] = "Um Deslocamento Eixo-Y (em pixels) para ser usada quando ancorando novos quadros."
L["Anchor Point"] = "Ponto de Fixação"
L["ANCHOR_CURSOR_LEFT"] = "FIXAÇÃO_CURSOR_ESQUERDO"
L["ANCHOR_CURSOR_RIGHT"] = "FIXAÇÃO_CURSOR_DIREITO"
L["ANCHOR_CURSOR"] = "FIXAÇÃO_CURSOR"
L["CURSOR_LEFT"] = "Esquerdo do cursor"
L["CURSOR_RIGHT"] = "Direito do cursor"
L["CURSOR"] = true
L["Announce Interrupts"] = "Anunciar Interrupções"
L["Announce when you interrupt a spell to the specified chat channel."] = "Anunciar quando interromper um feitiço para o canal de bate-papo especificado."
L["Any"] = "Qualquer"
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "Всегда отображать сервер"
L["An X offset (in pixels) to be used when anchoring new frames."] = "Отступ по оси X (в пикселях) при фиксации новой рамки."
L["An Y offset (in pixels) to be used when anchoring new frames."] = "Отступ по оси Y (в пикселях) при фиксации новой рамки."
L["Anchor Point"] = "Точка фиксации"
L["ANCHOR_CURSOR_LEFT"] = "Слева"
L["ANCHOR_CURSOR_RIGHT"] = "Справа"
L["ANCHOR_CURSOR"] = "По центру"
L["CURSOR_LEFT"] = "Слева"
L["CURSOR_RIGHT"] = "Справа"
L["CURSOR"] = "По центру"
L["Announce Interrupts"] = "Объявлять о прерываниях"
L["Announce when you interrupt a spell to the specified chat channel."] = "Объявлять о прерванных Вами заклинаниях в указанный канал чата."
L["Any"] = "Любой"
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "总是显示服务器"
L["An X offset (in pixels) to be used when anchoring new frames."] = "锚定新框架时的X偏移(像素)"
L["An Y offset (in pixels) to be used when anchoring new frames."] = "锚定新框架时的Y偏移(像素)"
L["Anchor Point"] = "定位方向"
L["ANCHOR_CURSOR_LEFT"] = "鼠标指针左侧"
L["ANCHOR_CURSOR_RIGHT"] = "鼠标指针右侧"
L["ANCHOR_CURSOR"] = "鼠标指针"
L["CURSOR_LEFT"] = "鼠标指针左侧"
L["CURSOR_RIGHT"] = "鼠标指针右侧"
L["CURSOR"] = "鼠标指针"
L["Announce Interrupts"] = "打断通告"
L["Announce when you interrupt a spell to the specified chat channel."] = "在指定聊天频道通知打断信息"
L["Any"] = "任意"
......
......@@ -65,9 +65,9 @@ L["Always Show Realm"] = "總是顯示伺服器"
L["An X offset (in pixels) to be used when anchoring new frames."] = "錨定新框架時的X軸偏移(單位:像素)"
L["An Y offset (in pixels) to be used when anchoring new frames."] = "錨定新框架時的Y軸偏移(單位:像素)"
L["Anchor Point"] = "定位方向"
L["ANCHOR_CURSOR_LEFT"] = "指針的左邊"
L["ANCHOR_CURSOR_RIGHT"] = "指針的右邊"
L["ANCHOR_CURSOR"] = "指針"
L["CURSOR_LEFT"] = "指針的左邊"
L["CURSOR_RIGHT"] = "指針的右邊"
L["CURSOR"] = "指針"
L["Announce Interrupts"] = "斷法通告"
L["Announce when you interrupt a spell to the specified chat channel."] = "在指定對話頻道通知斷法信息."
L["Any"] = "任意"
......
......@@ -30,7 +30,7 @@ E.Options.args.tooltip.args.showElvUIUsers = ACH:Toggle(L["Show ElvUI Users"], L
E.Options.args.tooltip.args.itemCount = ACH:Select(L["Item Count"], L["Display how many of a certain item you have in your possession."], 11, { BAGS_ONLY = L["Bags Only"], BANK_ONLY = L["Bank Only"], BOTH = L["Both"], NONE = L["NONE"] })
E.Options.args.tooltip.args.colorAlpha = ACH:Range(L["OPACITY"], nil, 12, { isPercent = true, min = 0, max = 1, step = 0.01 })
E.Options.args.tooltip.args.cursorAnchor = ACH:Toggle(L["Cursor Anchor"], L["Should tooltip be anchored to mouse cursor"], 13)
E.Options.args.tooltip.args.cursorAnchorType = ACH:Select(L["Cursor Anchor Type"], nil, 14, { ANCHOR_CURSOR = L["ANCHOR_CURSOR"], ANCHOR_CURSOR_LEFT = L["ANCHOR_CURSOR_LEFT"], ANCHOR_CURSOR_RIGHT = L["ANCHOR_CURSOR_RIGHT"] }, nil, nil, nil, nil, nil, function() return (not E.db.tooltip.cursorAnchor) end)
E.Options.args.tooltip.args.cursorAnchorType = ACH:Select(L["Cursor Anchor Type"], nil, 14, { ANCHOR_CURSOR = L["CURSOR"], ANCHOR_CURSOR_LEFT = L["CURSOR_LEFT"], ANCHOR_CURSOR_RIGHT = L["CURSOR_RIGHT"] }, nil, nil, nil, nil, nil, function() return (not E.db.tooltip.cursorAnchor) end)
E.Options.args.tooltip.args.cursorAnchorX = ACH:Range(L["Cursor Anchor Offset X"], nil, 15, { min = -128, max = 128, step = 1 }, nil, nil, nil, nil, function() return (not E.db.tooltip.cursorAnchor) or (E.db.tooltip.cursorAnchorType == 'ANCHOR_CURSOR') end)
E.Options.args.tooltip.args.cursorAnchorY = ACH:Range(L["Cursor Anchor Offset Y"], nil, 16, { min = -128, max = 128, step = 1 }, nil, nil, nil, nil, function() return (not E.db.tooltip.cursorAnchor) or (E.db.tooltip.cursorAnchorType == 'ANCHOR_CURSOR') end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment