Hidden loadout groups (#29170)
* loadout hiding * department of redundancy department
This commit is contained in:
@@ -29,6 +29,9 @@ public sealed partial class LoadoutWindow : FancyWindow
|
||||
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);
|
||||
|
||||
@@ -29,6 +29,12 @@ public sealed partial class LoadoutGroupPrototype : IPrototype
|
||||
[DataField]
|
||||
public int MaxLimit = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Hides the loadout group from the player.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool Hidden;
|
||||
|
||||
[DataField(required: true)]
|
||||
public List<ProtoId<LoadoutPrototype>> Loadouts = new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user