Commit b98b242f authored by Simpy's avatar Simpy 🐹

cache some config stuff

parent 34f189a4
......@@ -324,7 +324,7 @@ E.Options.args.datatexts = {
E.db.datatexts[info[#info]] = value
if E.db.LeftChatPanelFaded then
E.db.LeftChatPanelFaded = true;
HideLeftChat()
_G.HideLeftChat()
end
Chat:UpdateAnchors()
Layout:ToggleChatPanels()
......@@ -339,7 +339,7 @@ E.Options.args.datatexts = {
E.db.datatexts[info[#info]] = value
if E.db.RightChatPanelFaded then
E.db.RightChatPanelFaded = true;
HideRightChat()
_G.HideRightChat()
end
Chat:UpdateAnchors()
Layout:ToggleChatPanels()
......
......@@ -135,7 +135,7 @@ local function UpdateFilterGroup()
end
if filter:lower():find(searchText) then filters[filter] = filter end
end
if not next(filters) then filters[''] = NONE end
if not next(filters) then filters[''] = L["NONE"] end
return filters
end,
},
......@@ -316,7 +316,7 @@ local function UpdateFilterGroup()
end
if filter:lower():find(searchText) then filters[filter] = filter end
end
if not next(filters) then filters[''] = NONE end
if not next(filters) then filters[''] = L["NONE"] end
return filters
end,
},
......@@ -1277,7 +1277,7 @@ local function UpdateFilterGroup()
end
if filter:lower():find(searchText) then filters[filter] = filter end
end
if not next(filters) then filters[''] = NONE end
if not next(filters) then filters[''] = L["NONE"] end
return filters
end,
},
......
......@@ -3,6 +3,7 @@ local C, L = unpack(select(2, ...))
local TT = E:GetModule('Tooltip')
local _G = _G
local tonumber = tonumber
local GameTooltip = _G.GameTooltip
local GameTooltipStatusBar = _G.GameTooltipStatusBar
......
......@@ -383,8 +383,8 @@ local function GetOptionsTable_AuraBars(updateFunc, groupName)
local text = friend or enemy or TEXT
local SF, localized = E.global.unitframe.specialFilters[text], L[text]
local blockText = SF and localized and text:match("^block") and localized:gsub("^%[.-]%s?", "")
local filterText = (blockText and format("|cFF999999%s|r %s", BLOCK, blockText)) or localized or text
return (friend and format("|cFF33FF33%s|r %s", FRIEND, filterText)) or (enemy and format("|cFFFF3333%s|r %s", ENEMY, filterText)) or filterText
local filterText = (blockText and format("|cFF999999%s|r %s", _G.BLOCK, blockText)) or localized or text
return (friend and format("|cFF33FF33%s|r %s", _G.FRIEND, filterText)) or (enemy and format("|cFFFF3333%s|r %s", _G.ENEMY, filterText)) or filterText
end,
stateSwitchOnClick = function(info)
filterPriority('aurabar', groupName, carryFilterFrom, nil, nil, true)
......@@ -708,8 +708,8 @@ local function GetOptionsTable_Auras(auraType, isGroupFrame, updateFunc, groupNa
local text = friend or enemy or TEXT
local SF, localized = E.global.unitframe.specialFilters[text], L[text]
local blockText = SF and localized and text:match("^block") and localized:gsub("^%[.-]%s?", "")
local filterText = (blockText and format("|cFF999999%s|r %s", BLOCK, blockText)) or localized or text
return (friend and format("|cFF33FF33%s|r %s", FRIEND, filterText)) or (enemy and format("|cFFFF3333%s|r %s", ENEMY, filterText)) or filterText
local filterText = (blockText and format("|cFF999999%s|r %s", _G.BLOCK, blockText)) or localized or text
return (friend and format("|cFF33FF33%s|r %s", _G.FRIEND, filterText)) or (enemy and format("|cFFFF3333%s|r %s", _G.ENEMY, filterText)) or filterText
end,
stateSwitchOnClick = function(info)
filterPriority(auraType, groupName, carryFilterFrom, nil, nil, true)
......
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