diff --git a/Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs b/Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs index 1e4da9852713..1f45a3b3e5f9 100644 --- a/Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs +++ b/Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs @@ -30,6 +30,9 @@ public LoadoutWindow(HumanoidCharacterProfile profile, RoleLoadout loadout, Role if (!protoManager.TryIndex(group, out var groupProto)) continue; + if (groupProto.Hidden) + continue; + var container = new LoadoutGroupContainer(profile, loadout, protoManager.Index(group), session, collection); LoadoutGroupsContainer.AddTab(container, Loc.GetString(groupProto.Name)); _groups.Add(container); diff --git a/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs b/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs index 1d41f8dd7f9b..0c787e965f1b 100644 --- a/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs +++ b/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs @@ -29,6 +29,12 @@ public sealed partial class LoadoutGroupPrototype : IPrototype [DataField] public int MaxLimit = 1; + /// + /// Hides the loadout group from the player. + /// + [DataField] + public bool Hidden; + [DataField(required: true)] public List> Loadouts = new(); }