hide hidden role settings in advanced menu

This commit is contained in:
XtraCube committed 2025-06-27 14:28:09 -04:00
1 parent 7ec4addacc
commit 9884df356e
1 file changed
+3 -2
@@ -334,8 +334,9 @@ public static class RoleSettingMenuPatches
// TODO: create sub groups under the role settings.
var filteredOptions = GameSettingMenuPatches.SelectedMod?.InternalOptionGroups
.Where(x=> x.OptionableType == role.GetType())
.SelectMany(x=>x.Options)
.Where(x => x.GroupVisible() && x.OptionableType == role.GetType())
.SelectMany(x => x.Options)
.Where(x => x.Visible())
.ToList() ?? [];
foreach (var option in filteredOptions)