Merge pull request #4971 from monster860/datum_browserify

Makes a bunch of UI's use /datum/browser
This commit is contained in:
Fox McCloud
2016-07-16 08:52:18 -04:00
committed by GitHub
32 changed files with 180 additions and 137 deletions
+4 -2
View File
@@ -60,7 +60,9 @@
for(var/obj/item/P in src)
dat += "<tr><td><a href='?src=\ref[src];retrieve=\ref[P]'>[P.name]</a></td></tr>"
dat += "</table></center>"
user << browse("<html><head><title>[name]</title></head><body>[dat]</body></html>", "window=filingcabinet;size=350x300")
var/datum/browser/popup = new(user, "filingcabinet", name, 350, 300)
popup.set_content(dat)
popup.open(0)
return
@@ -83,7 +85,7 @@
/obj/structure/filingcabinet/Topic(href, href_list)
if(href_list["retrieve"])
usr << browse("", "window=filingcabinet") // Close the menu
usr << browse(null, "window=filingcabinet") // Close the menu
//var/retrieveindex = text2num(href_list["retrieve"])
var/obj/item/P = locate(href_list["retrieve"])//contents[retrieveindex]
+3 -1
View File
@@ -40,7 +40,9 @@
dat += "Current toner level: [toner]"
if(!toner)
dat +="<BR>Please insert a new toner cartridge!"
user << browse(dat, "window=copier")
var/datum/browser/popup = new(user, "copier", name, 400, 400)
popup.set_content(dat)
popup.open(0)
onclose(user, "copier")
return