Committed for Giacom, thread:

http://nanotrasen.com/phpBB3/viewtopic.php?f=16&t=9043

Basically adds multi-line input to papers.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3846 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2012-06-16 21:01:55 +00:00
parent 5bcef5af65
commit 9a3abc1e84
2 changed files with 17 additions and 6 deletions
+4 -2
View File
@@ -184,6 +184,8 @@
t = "<font face=\"[crayonfont]\" color=[P.colour]><b>[t]</b></font>"
t = dd_replacetext(t, "#", "") // Junk converted to nothing!
//Count the fields
var/laststart = 1
while(1)
@@ -224,8 +226,8 @@
if(href_list["write"])
var/id = href_list["write"]
var/t = strip_html_simple(input(usr, "What text do you wish to add to " + (id=="end" ? "the end of the paper" : "field "+id) + "?", "[name]", null),8192) as text
//var/t = strip_html_simple(input(usr, "What text do you wish to add to " + (id=="end" ? "the end of the paper" : "field "+id) + "?", "[name]", null),8192) as message
var/t = strip_html_simple(input("Enter what you want to write:", "Write", null, null) as message, MAX_MESSAGE_LEN)
var/obj/item/i = usr.equipped() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
var/iscrayon = 0
if(!istype(i, /obj/item/weapon/pen))