mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +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.
|
// TODO: create sub groups under the role settings.
|
||||||
var filteredOptions = GameSettingMenuPatches.SelectedMod?.InternalOptionGroups
|
var filteredOptions = GameSettingMenuPatches.SelectedMod?.InternalOptionGroups
|
||||||
.Where(x=> x.OptionableType == role.GetType())
|
.Where(x => x.GroupVisible() && x.OptionableType == role.GetType())
|
||||||
.SelectMany(x=>x.Options)
|
.SelectMany(x => x.Options)
|
||||||
|
.Where(x => x.Visible())
|
||||||
.ToList() ?? [];
|
.ToList() ?? [];
|
||||||
|
|
||||||
foreach (var option in filteredOptions)
|
foreach (var option in filteredOptions)
|
||||||
|
|||||||
Reference in new issue
Block a user