mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
Input Conversion Part 1
This commit is contained in:
@@ -229,7 +229,7 @@ Book Cart End
|
||||
var/choice = tgui_input_list(usr, "What would you like to change?", "Change What?", list("Title", "Contents", "Author", "Cancel"))
|
||||
switch(choice)
|
||||
if("Title")
|
||||
var/newtitle = reject_bad_text(sanitizeSafe(input(usr, "Write a new title:")))
|
||||
var/newtitle = reject_bad_text(sanitizeSafe(tgui_input_text(usr, "Write a new title:")))
|
||||
if(!newtitle)
|
||||
to_chat(usr, "The title is invalid.")
|
||||
return
|
||||
@@ -244,7 +244,7 @@ Book Cart End
|
||||
else
|
||||
src.dat += content
|
||||
if("Author")
|
||||
var/newauthor = sanitize(input(usr, "Write the author's name:"))
|
||||
var/newauthor = sanitize(tgui_input_text(usr, "Write the author's name:"))
|
||||
if(!newauthor)
|
||||
to_chat(usr, "The name is invalid.")
|
||||
return
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
return
|
||||
|
||||
if(href_list["settitle"])
|
||||
var/newtitle = input(usr, "Enter a title to search for:") as text|null
|
||||
var/newtitle = tgui_input_text(usr, "Enter a title to search for:")
|
||||
if(newtitle)
|
||||
title = sanitize(newtitle)
|
||||
else
|
||||
@@ -87,7 +87,7 @@
|
||||
category = "Any"
|
||||
category = sanitizeSQL(category)
|
||||
if(href_list["setauthor"])
|
||||
var/newauthor = input(usr, "Enter an author to search for:") as text|null
|
||||
var/newauthor = tgui_input_text(usr, "Enter an author to search for:")
|
||||
if(newauthor)
|
||||
author = sanitize(newauthor)
|
||||
else
|
||||
@@ -365,7 +365,7 @@
|
||||
if(checkoutperiod < 1)
|
||||
checkoutperiod = 1
|
||||
if(href_list["editbook"])
|
||||
buffer_book = sanitizeSafe(input(usr, "Enter the book's title:") as text|null)
|
||||
buffer_book = sanitizeSafe(tgui_input_text(usr, "Enter the book's title:"))
|
||||
if(href_list["editmob"])
|
||||
buffer_mob = sanitize(input(usr, "Enter the recipient's name:") as text|null, MAX_NAME_LEN)
|
||||
if(href_list["checkout"])
|
||||
|
||||
Reference in New Issue
Block a user