Verified Commit e9514594 authored by Repooc's avatar Repooc
Browse files

Ability to hide macro text per bar and add missing locale from Hide Hot Key addition

parent e1d5fc67
......@@ -1045,7 +1045,7 @@ function AB:UpdateButtonConfig(barName, buttonName)
if not bar.buttonConfig then bar.buttonConfig = { hideElements = {}, colors = {} } end
bar.buttonConfig.hideElements.macro = not AB.db.macrotext
bar.buttonConfig.hideElements.macro = not AB.db.macrotext or barDB.hideMacroText
bar.buttonConfig.hideElements.hotkey = not AB.db.hotkeytext or barDB.hideHotkey
bar.buttonConfig.showGrid = barDB.showGrid
bar.buttonConfig.clickOnDown = AB.db.keyDown
......
......@@ -2295,6 +2295,7 @@ for i = 1, 10 do
hotkeyTextXOffset = 0,
hotkeyTextYOffset = -3,
hideHotkey = false,
hideMacroText = false,
useHotkeyColor = false,
hotkeyColor = { r = 1, g = 1, b = 1 },
useCountColor = false,
......
......@@ -28,6 +28,7 @@ SharedBarOptions.barGroup.args.point = ACH:Select(L["Anchor Point"], L["The firs
SharedBarOptions.barGroup.args.alpha = ACH:Range(L["Alpha"], nil, 2, { min = 0, max = 1, step = 0.01, isPercent = true })
SharedBarOptions.barGroup.args.spacer1 = ACH:Spacer(15, 'full')
SharedBarOptions.barGroup.args.hideHotkey = ACH:Toggle(L["Hide Keybind Text"], nil, 16, nil, nil, nil, function(info) return E.db.actionbar[info[#info-2]][info[#info]] end, function(info, value) E.db.actionbar[info[#info-2]][info[#info]] = value AB:UpdateButtonSettings(info[#info-2]) end)
SharedBarOptions.barGroup.args.hideMacroText = ACH:Toggle(L["Hide Macro Text"], nil, 16, nil, nil, nil, function(info) return E.db.actionbar[info[#info-2]][info[#info]] end, function(info, value) E.db.actionbar[info[#info-2]][info[#info]] = value AB:UpdateButtonSettings(info[#info-2]) end)
SharedBarOptions.barGroup.args.customCountFont = ACH:Toggle(L["Count Font"], nil, 20)
SharedBarOptions.barGroup.args.countTextPosition = ACH:Select(L["Text Anchor"], nil, 21, textAnchors)
......@@ -206,10 +207,13 @@ for _, name in ipairs({'microbar', 'barPet', 'stanceBar'}) do
if name == 'microbar' then
options.hideHotkey = nil
options.hideMacroText = nil
elseif name == 'stanceBar' then
options.hideHotkey.set = function(info, value) E.db.actionbar[info[#info-2]][info[#info]] = value AB:UpdateStanceBindings() end
options.hideMacroText = nil
elseif name == 'barPet' then
options.hideHotkey.set = function(info, value) E.db.actionbar[info[#info-2]][info[#info]] = value AB:UpdatePetBindings() end
options.hideMacroText = nil
end
end
......
......@@ -580,6 +580,8 @@ L["Hide Error Text"] = "Fehlertext verstecken"
L["Hide Frame"] = "Verstecke Fenster"
L["Hide In Combat"] = "Im Kampf ausblenden"
L["Hide In Vehicle"] = "Im Fahrzeug verstecken"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "Verstecke ausserhalb von PvP"
L["Hide specific sections in the datatext tooltip."] = "Verstecke spezifische Abschnitte im Infotext Tooltip."
L["Hide Spell Name"] = "Verstecke Zaubername"
......
......@@ -582,6 +582,8 @@ L["Hide Error Text"] = true
L["Hide Frame"] = true
L["Hide In Combat"] = true
L["Hide In Vehicle"] = true
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = true
L["Hide specific sections in the datatext tooltip."] = true
L["Hide Spell Name"] = true
......
......@@ -577,6 +577,8 @@ L["Hide Error Text"] = "Ocultar Texto de Error"
L["Hide Frame"] = true
L["Hide In Combat"] = true
L["Hide In Vehicle"] = true
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = true
L["Hide specific sections in the datatext tooltip."] = true
L["Hide Spell Name"] = true
......
......@@ -577,6 +577,8 @@ L["Hide Error Text"] = "Cacher les textes d'erreurs"
L["Hide Frame"] = true
L["Hide In Combat"] = "Cacher en combat"
L["Hide In Vehicle"] = "Cacher en véhicule"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "Cacher en dehors du PVP"
L["Hide specific sections in the datatext tooltip."] = true
L["Hide Spell Name"] = true
......
......@@ -578,6 +578,8 @@ L["Hide Error Text"] = true
L["Hide Frame"] = true
L["Hide In Combat"] = true
L["Hide In Vehicle"] = true
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = true
L["Hide specific sections in the datatext tooltip."] = true
L["Hide Spell Name"] = true
......
......@@ -576,6 +576,8 @@ L["Hide Error Text"] = "전투중 에러 숨기기"
L["Hide Frame"] = "프레임 숨김"
L["Hide In Combat"] = "전투시 숨김"
L["Hide In Vehicle"] = "탈것사용중 숨김"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "PVP가 아닐때 숨김"
L["Hide specific sections in the datatext tooltip."] = true
L["Hide Spell Name"] = "주문 이름 숨김"
......
......@@ -578,6 +578,8 @@ L["Hide Error Text"] = "Esconder Texto de Erro"
L["Hide Frame"] = "Esconder Quadro"
L["Hide In Combat"] = "Esconder em Combate"
L["Hide In Vehicle"] = "Esconder quado em veículo"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "Esconder fora do PvP"
L["Hide specific sections in the datatext tooltip."] = "Esconder seção específica nos tooltip dos textos informativos"
L["Hide Spell Name"] = "Esconder nome do feitiço"
......
......@@ -576,6 +576,8 @@ L["Hide Error Text"] = "Прятать сообщения об ошибках"
L["Hide Frame"] = "Скрыть рамку"
L["Hide In Combat"] = "Скрывать в бою"
L["Hide In Vehicle"] = "Прятать в транспорте"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "Скрывать вне PvP"
L["Hide specific sections in the datatext tooltip."] = "Скрывать определенные части подсказки инфо-текста."
L["Hide Spell Name"] = "Скрыть название заклинания"
......
......@@ -582,6 +582,8 @@ L["Hide Error Text"] = "隐藏错误文字"
L["Hide Frame"] = "隐藏框架"
L["Hide In Combat"] = "战斗中隐藏"
L["Hide In Vehicle"] = "骑乘时隐藏"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "PvP外隐藏"
L["Hide specific sections in the datatext tooltip."] = "隐藏信息文字鼠标提示中的特定模块"
L["Hide Spell Name"] = "隐藏法术名字"
......
......@@ -577,6 +577,8 @@ L["Hide Error Text"] = "隱藏錯誤文字"
L["Hide Frame"] = "隱藏框架"
L["Hide In Combat"] = "戰鬥中隱藏"
L["Hide In Vehicle"] = "騎乘時隱藏"
L["Hide Keybind Text"] = true
L["Hide Macro Text"] = true
L["Hide Outside PvP"] = "PvP外隱藏"
L["Hide specific sections in the datatext tooltip."] = "在資訊文字提示上隱藏特定區塊"
L["Hide Spell Name"] = "隱藏法術名字"
......
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