From 9884df356ed03e98d70e73e0cfdc0a1a86aceb09 Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Fri, 27 Jun 2025 14:28:09 -0400 Subject: [PATCH] hide hidden role settings in advanced menu --- MiraAPI/Patches/Options/RoleSettingMenuPatches.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs b/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs index 4dc7317..0950bb5 100644 --- a/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs +++ b/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs @@ -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)