mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
hide hidden role settings in advanced menu
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user