Add limited-reagent dispensers (#23907)
* Add limited-reagent dispensers * Add empty versions for all dispensers * Fix lint * Set initial window size so all buttons are visible * Simplify logic, add parenthesis * Use localized name for initial labels * Adjust button style * Avoid touching items before MapInit * Remove pre-labeling * Reduce diff * Clean up YAML * Fix test * Really fix test * Document * Adjust based on review * Add labels for obnoxiously long bottles --------- Co-authored-by: AWF <you@example.com>
This commit is contained in:
@@ -67,8 +67,8 @@ namespace Content.Shared.Containers.ItemSlots
|
||||
CopyFrom(other);
|
||||
}
|
||||
|
||||
|
||||
[DataField("whitelist")]
|
||||
[Access(typeof(ItemSlotsSystem), Other = AccessPermissions.ReadWriteExecute)]
|
||||
public EntityWhitelist? Whitelist;
|
||||
|
||||
[DataField("blacklist")]
|
||||
@@ -179,6 +179,7 @@ namespace Content.Shared.Containers.ItemSlots
|
||||
/// The actual deconstruction logic is handled by the server-side EmptyOnMachineDeconstructSystem.
|
||||
/// </remarks>
|
||||
[DataField("ejectOnDeconstruct")]
|
||||
[Access(typeof(ItemSlotsSystem), Other = AccessPermissions.ReadWriteExecute)]
|
||||
[NonSerialized]
|
||||
public bool EjectOnDeconstruct = true;
|
||||
|
||||
@@ -187,6 +188,7 @@ namespace Content.Shared.Containers.ItemSlots
|
||||
/// ejected when it is broken or destroyed?
|
||||
/// </summary>
|
||||
[DataField("ejectOnBreak")]
|
||||
[Access(typeof(ItemSlotsSystem), Other = AccessPermissions.ReadWriteExecute)]
|
||||
[NonSerialized]
|
||||
public bool EjectOnBreak = false;
|
||||
|
||||
@@ -205,6 +207,7 @@ namespace Content.Shared.Containers.ItemSlots
|
||||
/// want to insert more than one item that matches the same whitelist.
|
||||
/// </remarks>
|
||||
[DataField("swap")]
|
||||
[Access(typeof(ItemSlotsSystem), Other = AccessPermissions.ReadWriteExecute)]
|
||||
public bool Swap = true;
|
||||
|
||||
public string? ID => ContainerSlot?.ID;
|
||||
|
||||
Reference in New Issue
Block a user