From 3c6fe9edffcfb4f1a314af0d67181e55598502cf Mon Sep 17 00:00:00 2001 From: ROdenFL <144662735+ROdenFL@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:46:03 +0300 Subject: [PATCH] bugfix: law_manager adminjump (#5600) --- code/modules/admin/verbs/adminjump.dm | 2 +- code/modules/tgui/modules/law_manager.dm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 38949ccc1ad..29a3544ec3b 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -7,7 +7,7 @@ if(!check_rights(R_ADMIN)) return - var/chosen = tgui_input_list(src, null, "Jump to...", choices) + var/chosen = tgui_input_list(src, "What to jump to?", "Jump to...", choices) if(!chosen) return diff --git a/code/modules/tgui/modules/law_manager.dm b/code/modules/tgui/modules/law_manager.dm index e78a834331a..12550323958 100644 --- a/code/modules/tgui/modules/law_manager.dm +++ b/code/modules/tgui/modules/law_manager.dm @@ -73,22 +73,22 @@ SSticker?.score?.save_silicon_laws(owner, usr, "admin/malf used law manager, new supplied law was added '[supplied_law]'") if("change_zeroth_law") - var/new_law = tgui_input_text(src, "Enter new law Zero. Leaving the field blank will cancel the edit.", "Edit Law", zeroth_law) + var/new_law = tgui_input_text(usr, "Enter new law Zero. Leaving the field blank will cancel the edit.", "Edit Law", zeroth_law) if(new_law && new_law != zeroth_law && (!..())) zeroth_law = new_law if("change_ion_law") - var/new_law = tgui_input_text(src, "Enter new ion law. Leaving the field blank will cancel the edit.", "Edit Law", ion_law) + var/new_law = tgui_input_text(usr, "Enter new ion law. Leaving the field blank will cancel the edit.", "Edit Law", ion_law) if(new_law && new_law != ion_law && (!..())) ion_law = new_law if("change_inherent_law") - var/new_law = tgui_input_text(src, "Enter new inherent law. Leaving the field blank will cancel the edit.", "Edit Law", inherent_law) + var/new_law = tgui_input_text(usr, "Enter new inherent law. Leaving the field blank will cancel the edit.", "Edit Law", inherent_law) if(new_law && new_law != inherent_law && (!..())) inherent_law = new_law if("change_supplied_law") - var/new_law = tgui_input_text(src, "Enter new supplied law. Leaving the field blank will cancel the edit.", "Edit Law", supplied_law) + var/new_law = tgui_input_text(usr, "Enter new supplied law. Leaving the field blank will cancel the edit.", "Edit Law", supplied_law) if(new_law && new_law != supplied_law && (!..())) supplied_law = new_law