TGUI Input Conversions

This commit is contained in:
Casey
2022-06-18 23:58:15 -04:00
committed by CHOMPStation2
parent 1740fb34de
commit 928a321b5f
201 changed files with 2350 additions and 491 deletions

View File

@@ -62,7 +62,7 @@
return TRUE
switch(action)
if("Edit")
var/n = input(usr, "Please enter message", name, notehtml) as message
var/n = tgui_input_text(usr, "Please enter message", name, notehtml, multiline = TRUE)
if(pda.loc == usr)
note = adminscrub(n)
notehtml = html_decode(note)

View File

@@ -120,7 +120,7 @@
/datum/data/pda/app/messenger/proc/create_message(var/mob/living/U, var/obj/item/device/pda/P)
var/t = input(U, "Please enter message", name, null) as text|null
var/t = tgui_input_text(U, "Please enter message", name, null)
if(!t)
return
t = sanitize(copytext(t, 1, MAX_MESSAGE_LEN))

View File

@@ -102,7 +102,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
O.show_message(text("[bicon(src)] *[ttone]*"))
/obj/item/device/pda/proc/set_ringtone()
var/t = input(usr, "Please enter new ringtone", name, ttone) as text
var/t = tgui_input_text(usr, "Please enter new ringtone", name, ttone)
if(in_range(src, usr) && loc == usr)
if(t)
if(hidden_uplink && hidden_uplink.check_trigger(usr, lowertext(t), lowertext(lock_code)))