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
+8
View File
@@ -951,6 +951,14 @@
log_admin("[key_name(usr)] has added [amount] units of [chosen_id] to \the [A]")
message_admins("<span class='notice'>[key_name(usr)] has added [amount] units of [chosen_id] to \the [A]</span>")
else if(href_list["editreagents"])
if(!check_rights(R_DEBUG|R_ADMIN))
return
var/atom/A = locateUID(href_list["editreagents"])
try_open_reagent_editor(A)
else if(href_list["explode"])
if(!check_rights(R_DEBUG|R_EVENT)) return