Commit 60626700 authored by Caedis's avatar Caedis
Browse files

Remove duplicated anon functions

parent 32b32635
......@@ -526,22 +526,24 @@ for i = 1, 10 do
bar.args.visibility.set = function(_, value) if value and value:match('[\n\r]') then value = value:gsub('[\n\r]','') end E.db.actionbar['bar'..i].visibility = value AB:UpdateButtonSettings() end
bar.args.barGroup.args.countFont.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countFontOutline.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countFontSize.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countTextXOffset.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countTextYOffset.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countTextPosition.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
local countHidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.countFont.hidden = countHidden
bar.args.barGroup.args.countFontOutline.hidden = countHidden
bar.args.barGroup.args.countFontSize.hidden = countHidden
bar.args.barGroup.args.countTextXOffset.hidden = countHidden
bar.args.barGroup.args.countTextYOffset.hidden = countHidden
bar.args.barGroup.args.countTextPosition.hidden = countHidden
bar.args.barGroup.args.spacer2.hidden = function() return not E.db.actionbar['bar'..i].customCountFont end
bar.args.barGroup.args.spacer2.hidden = countHidden
local hotkeyHide = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.customHotkeyFont.hidden = function() return E.db.actionbar['bar'..i].hideHotkey end
bar.args.barGroup.args.hotkeyFont.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyFontOutline.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyFontSize.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyTextPosition.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyTextXOffset.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyTextYOffset.hidden = function() return E.db.actionbar['bar'..i].hideHotkey or not E.db.actionbar['bar'..i].customHotkeyFont end
bar.args.barGroup.args.hotkeyFont.hidden = hotkeyHide
bar.args.barGroup.args.hotkeyFontOutline.hidden = hotkeyHide
bar.args.barGroup.args.hotkeyFontSize.hidden = hotkeyHide
bar.args.barGroup.args.hotkeyTextPosition.hidden = hotkeyHide
bar.args.barGroup.args.hotkeyTextXOffset.hidden = hotkeyHide
bar.args.barGroup.args.hotkeyTextYOffset.hidden = hotkeyHide
if (E.myclass == 'DRUID' and i >= 7 or E.myclass == 'ROGUE' and i == 7) then
bar.args.enabled.confirm = function() return format(L["Bar %s is used for stance or forms.|N You will have to adjust paging to use this bar.|N Are you sure?"], i) 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