]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add limited-reagent dispensers (#23907)
authorKevin Zheng <kevinz5000@gmail.com>
Wed, 17 Jan 2024 21:43:48 +0000 (13:43 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 21:43:48 +0000 (16:43 -0500)
commit9394a262458df76d9c4156f147bed902e3feac75
treec5f69f2e854c64844eed5694080f5881f70e0cb4
parent47159d1c235aa8b8e79fe8ee6d36b76a92e78fb5
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>
19 files changed:
Content.Client/Chemistry/UI/ReagentDispenserBoundUserInterface.cs
Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml
Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs
Content.IntegrationTests/Tests/Chemistry/DispenserTest.cs
Content.Server/Chemistry/Components/ReagentDispenserComponent.cs
Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs
Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs
Content.Shared/Chemistry/SharedReagentDispenser.cs
Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs
Resources/Prototypes/Catalog/ReagentDispensers/beverage.yml
Resources/Prototypes/Catalog/ReagentDispensers/chemical.yml
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_bottles.yml
Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml
Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml
Resources/Prototypes/Entities/Structures/Dispensers/base_structuredispensers.yml
Resources/Prototypes/Entities/Structures/Dispensers/booze.yml
Resources/Prototypes/Entities/Structures/Dispensers/chem.yml
Resources/Prototypes/Entities/Structures/Dispensers/soda.yml
Resources/Prototypes/tags.yml