Skip to content

Commit

Permalink
Fixed the options panel search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 27, 2022
1 parent f0c99c9 commit d550c89
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frames/window_options2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d550c89

Please sign in to comment.