mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
TGUI Input Conversions
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user