From d550c89ddf5f7517c196389104baf72e3d27f551 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 26 Sep 2022 21:03:24 -0300 Subject: [PATCH] Fixed the options panel search bar --- frames/window_options2.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frames/window_options2.lua b/frames/window_options2.lua index d058c24ff..3fedc0378 100644 --- a/frames/window_options2.lua +++ b/frames/window_options2.lua @@ -214,11 +214,13 @@ function Details.options.InitializeOptionsWindow(instance) local sectionOptions = allSectionOptions[i] local lastLabel = nil for k, setting in pairs(sectionOptions) do - if (setting.type == "label") then - lastLabel = setting - end - if (setting.name) then - allOptions[#allOptions+1] = {setting = setting, label = lastLabel, header = allSectionNames[i]} + if (type(setting) == "table") then + if (setting.type == "label") then + lastLabel = setting + end + if (setting.name) then + allOptions[#allOptions+1] = {setting = setting, label = lastLabel, header = allSectionNames[i]} + end end end end @@ -328,7 +330,7 @@ function Details.options.InitializeOptionsWindow(instance) local realBackdropAreaFrame = CreateFrame("frame", "$parentTab" .. sectionId .. "BackdropArea", f, "BackdropTemplate") realBackdropAreaFrame:SetFrameLevel(f:GetFrameLevel()-1) realBackdropAreaFrame:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true}) - realBackdropAreaFrame:SetBackdropColor(0, 0, 0, .1) + realBackdropAreaFrame:SetBackdropColor(0.1215, 0.1176, 0.1294, .1) realBackdropAreaFrame:SetBackdropBorderColor(0.2, 0.2, 0.2, .05) realBackdropAreaFrame:SetPoint("topleft", f, "topleft", 150, -27) realBackdropAreaFrame:SetSize(770, 570)