diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm
index e6461865bed..586cf8af512 100644
--- a/code/datums/datumvars.dm
+++ b/code/datums/datumvars.dm
@@ -24,13 +24,12 @@
body += debug_variable("icon", new/icon(A.icon, A.icon_state, A.dir), 0)
#endif
- var/icon/sprite
+ var/sprite
if(istype(D,/atom))
var/atom/AT = D
if(AT.icon && AT.icon_state)
- sprite = new /icon(AT.icon, AT.icon_state)
- usr << browse_rsc(sprite, "view_vars_sprite.png")
+ sprite = 1
title = "[D] (\ref[D]) = [D.type]"
@@ -162,7 +161,7 @@
body += "
"
if(sprite)
- body += " | "
+ body += "| [bicon(D)] | "
else
body += ""
@@ -351,26 +350,18 @@ body
else if(isicon(value))
#ifdef VARSICON
- var/icon/I = new/icon(value)
- var/rnd = rand(1,10000)
- var/rname = "tmp\ref[I][rnd].png"
- usr << browse_rsc(I, rname)
- html += "[name] = ([value]) "
+ html += "[name] = /icon ([value]) [bicon(value)]"
#else
html += "[name] = /icon ([value])"
#endif
-/* else if(istype(value, /image))
+ else if(istype(value, /image))
#ifdef VARSICON
- var/rnd = rand(1, 10000)
- var/image/I = value
-
- src << browse_rsc(I.icon, "tmp\ref[value][rnd].png")
- html += "[name] = "
+ html += "[name] \ref[value] = /image ([value]) [bicon(value)]"
#else
- html += "[name] = /image ([value])"
+ html += "[name] \ref[value] = /image ([value])"
#endif
-*/
+
else if(isfile(value))
html += "[name] = '[value]'"
|
|
|
|