mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
More Input Conversion
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
O.loc = src
|
||||
update_icon()
|
||||
else if(istype(O, /obj/item/weapon/pen))
|
||||
var/newname = sanitizeSafe(input(usr, "What would you like to title this bookshelf?"), MAX_NAME_LEN)
|
||||
var/newname = sanitizeSafe(tgui_input_text(usr, "What would you like to title this bookshelf?", null, null, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
if(!newname)
|
||||
return
|
||||
else
|
||||
|
||||
@@ -367,7 +367,7 @@
|
||||
if(href_list["editbook"])
|
||||
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)
|
||||
buffer_mob = sanitize(tgui_input_text(usr, "Enter the recipient's name:", null, null, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
if(href_list["checkout"])
|
||||
var/datum/borrowbook/b = new /datum/borrowbook
|
||||
b.bookname = sanitizeSafe(buffer_book)
|
||||
@@ -382,7 +382,7 @@
|
||||
var/obj/item/weapon/book/b = locate(href_list["delbook"])
|
||||
inventory.Remove(b)
|
||||
if(href_list["setauthor"])
|
||||
var/newauthor = sanitize(input(usr, "Enter the author's name: ") as text|null)
|
||||
var/newauthor = sanitize(tgui_input_text(usr, "Enter the author's name: "))
|
||||
if(newauthor)
|
||||
scanner.cache.author = newauthor
|
||||
if(href_list["setcategory"])
|
||||
@@ -462,7 +462,7 @@
|
||||
query.Execute()
|
||||
|
||||
if(href_list["orderbyid"])
|
||||
var/orderid = input(usr, "Enter your order:") as num|null
|
||||
var/orderid = tgui_input_number(usr, "Enter your order:")
|
||||
if(orderid)
|
||||
if(isnum(orderid))
|
||||
var/nhref = "src=\ref[src];targetid=[orderid]"
|
||||
|
||||
Reference in New Issue
Block a user