Obfuscates pocket slots from the Strip Menu (#8948)
This commit is contained in:
@@ -190,7 +190,17 @@ namespace Content.Server.Strip
|
|||||||
var name = "None";
|
var name = "None";
|
||||||
|
|
||||||
if (_inventorySystem.TryGetSlotEntity(uid, slot.Name, out var item))
|
if (_inventorySystem.TryGetSlotEntity(uid, slot.Name, out var item))
|
||||||
|
{
|
||||||
|
if (!slot.StripHidden)
|
||||||
|
{
|
||||||
name = Name(item.Value);
|
name = Name(item.Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
name = Loc.GetString("strippable-bound-user-interface-stripping-menu-obfuscate");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inventory[(slot.Name, slot.DisplayName)] = name;
|
inventory[(slot.Name, slot.DisplayName)] = name;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ public sealed class SlotDefinition
|
|||||||
|
|
||||||
[DataField("displayName", required: true)] public string DisplayName { get; } = string.Empty;
|
[DataField("displayName", required: true)] public string DisplayName { get; } = string.Empty;
|
||||||
|
|
||||||
|
[DataField("stripHidden")] public bool StripHidden { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Offset for the clothing sprites.
|
/// Offset for the clothing sprites.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ strip-verb-get-data-text = Strip
|
|||||||
|
|
||||||
strippable-bound-user-interface-stripping-menu-title = {$ownerName}'s inventory
|
strippable-bound-user-interface-stripping-menu-title = {$ownerName}'s inventory
|
||||||
strippable-bound-user-interface-stripping-menu-handcuffs-button = Restraints
|
strippable-bound-user-interface-stripping-menu-handcuffs-button = Restraints
|
||||||
|
strippable-bound-user-interface-stripping-menu-obfuscate = Occupied
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
uiWindowPos: 0,3
|
uiWindowPos: 0,3
|
||||||
dependsOn: jumpsuit
|
dependsOn: jumpsuit
|
||||||
displayName: Pocket 1
|
displayName: Pocket 1
|
||||||
|
stripHidden: true
|
||||||
- name: pocket2
|
- name: pocket2
|
||||||
slotTexture: pocket
|
slotTexture: pocket
|
||||||
slotFlags: POCKET
|
slotFlags: POCKET
|
||||||
@@ -76,6 +77,7 @@
|
|||||||
uiWindowPos: 2,3
|
uiWindowPos: 2,3
|
||||||
dependsOn: jumpsuit
|
dependsOn: jumpsuit
|
||||||
displayName: Pocket 2
|
displayName: Pocket 2
|
||||||
|
stripHidden: true
|
||||||
- name: suitstorage
|
- name: suitstorage
|
||||||
slotTexture: suit_storage
|
slotTexture: suit_storage
|
||||||
slotFlags: SUITSTORAGE
|
slotFlags: SUITSTORAGE
|
||||||
|
|||||||
Reference in New Issue
Block a user