Skip to content

Commit

Permalink
bugfix: law_manager adminjump (#5600)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROdenFL authored Jul 28, 2024
1 parent 2a44ff4 commit 3c6fe9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/adminjump.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions code/modules/tgui/modules/law_manager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3c6fe9e

Please sign in to comment.