Adds a VV Menu for Manipulating Reagent Holders (#25006)

* Add reagents_editor

* Add tgui

* Fix memory leak

* Fix volume limits

* Don't unnecessarily update UI

* Handle null volume

* Change syringe color to green

* Wrap in section

* Add buttons for updating total and forcing reaction

* Remove padding for volume cell

* Fix memory leak again

* Allow removal of reagent

* Fix memory leak again

* Tweak centering

* Fix grammar

* Remove redundant types

* Reorder types

* Remove redundant css

* Strip css

* Rewrite Icons into Buttons

* Add dedicated remove button

* Change confirm icon

* Build and update tgui

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Remove non-existent scss import

* [ci skip]

* Build and update tgui

* trigger ci

* force ci

* Build and update tgui

* force ci

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
Co-authored-by: /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
Arthri
2024-05-17 13:11:16 +00:00
committed by GitHub
co-authored by DGamerL Arthri /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com> Burzah paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent 64e0947b97
commit e2aeeb7803
11 changed files with 437 additions and 58 deletions
@@ -810,6 +810,15 @@
/datum/reagents/proc/get_reagent(type)
. = locate(type) in reagent_list
/datum/reagents/proc/get_reagent_by_id(id)
var/list/cached_reagents = reagent_list
for(var/A in cached_reagents)
var/datum/reagent/R = A
if(R.id == id)
return R
return
/datum/reagents/proc/remove_all_type(reagent_type, amount, strict = FALSE, safety = TRUE) // Removes all reagent of X type. @strict set to 1 determines whether the childs of the type are included.
if(!isnum(amount))
return TRUE