[MIRROR] More standard tgui input conversions [MDB IGNORE] (#10238)

* More standard tgui input conversions

* More standard tgui input conversions

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-12-24 22:33:32 +01:00
committed by GitHub
parent 16f2e9cf9a
commit 32bc1eea41
64 changed files with 248 additions and 215 deletions
@@ -130,7 +130,7 @@
return
if(R.stat == DEAD) //Dead borgs will listen to you no longer
to_chat(usr, span_warning("Error -- Could not open a connection to unit:[R]"))
var/message = stripped_input(usr, message = "Enter message to be sent to remote cyborg.", title = "Send Message")
var/message = tgui_input_text(usr, "Message to be sent to remote cyborg", "Send Message")
if(!message)
return
to_chat(R, "<br><br>[span_notice("Message from [ID] -- \"[message]\"")]<br>")
@@ -221,7 +221,7 @@
var/reason = ""
if((requestonly && !self_paid) || !(card_slot?.GetID()))
reason = stripped_input("Reason:", name, "")
reason = tgui_input_text(usr, "Reason", name)
if(isnull(reason) || ..())
return