Show other speso colours, add larger denominations (Frontier#1496) (#37030)
This commit is contained in:
@@ -78,6 +78,13 @@ namespace Content.Shared.Stacks
|
||||
[DataField("layerStates")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public List<string> LayerStates = new();
|
||||
|
||||
/// <summary>
|
||||
/// An optional function to convert the amounts used to adjust a stack's appearance.
|
||||
/// Useful for different denominations of cash, for example.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public StackLayerFunction LayerFunction = StackLayerFunction.None;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
@@ -95,4 +102,19 @@ namespace Content.Shared.Stacks
|
||||
Lingering = lingering;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StackLayerFunction : byte
|
||||
{
|
||||
// <summary>
|
||||
// No operation performed.
|
||||
// </summary>
|
||||
None,
|
||||
|
||||
// <summary>
|
||||
// Arbitrarily thresholds the stack amount for each layer.
|
||||
// Expects entity to have StackLayerThresholdComponent.
|
||||
// </summary>
|
||||
Threshold
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user