mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
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
@@ -1259,6 +1259,17 @@
|
||||
debug_variables(stat_item)
|
||||
message_admins("Admin [key_name_admin(usr)] is debugging the [stat_item] [class].")
|
||||
|
||||
/client/proc/try_open_reagent_editor(atom/target)
|
||||
var/target_UID = target.UID()
|
||||
var/datum/reagents_editor/editor
|
||||
// editors is static, it can be accessed using a null reference
|
||||
editor = editor.editors[target_UID]
|
||||
if(!editor)
|
||||
editor = new /datum/reagents_editor(target)
|
||||
editor.editors[target_UID] = editor
|
||||
|
||||
editor.ui_interact(mob)
|
||||
|
||||
#undef LIMITER_SIZE
|
||||
#undef CURRENT_SECOND
|
||||
#undef SECOND_COUNT
|
||||
|
||||
Reference in New Issue
Block a user