Add ability to show stack visuals on closed containers (#29309)
* add ability to show stack visuals on closed containers * remove container stack visuals logic from sharedstoragesystem * improve comments a bit * move logic for open/closed containers into itemcountersystem * move behavior to storage component * remove unused import * remove old comment * fix comments * fix wrong property name * Update Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs * Rename variable for clarity --------- Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
@@ -123,6 +123,14 @@ namespace Content.Shared.Storage
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public StorageDefaultOrientation? DefaultStorageOrientation;
|
||||
|
||||
/// <summary>
|
||||
/// If true, sets StackVisuals.Hide to true when the container is closed
|
||||
/// Used in cases where there are sprites that are shown when the container is open but not
|
||||
/// when it is closed
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool HideStackVisualsWhenClosed = true;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StorageUiKey : byte
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user