"
if(sprite)
- body += "| [bicon(D)] | "
+ body += "| [bicon(D, use_class=0)] | "
else
body += ""
@@ -350,14 +350,14 @@ body
else if(isicon(value))
#ifdef VARSICON
- html += "[name] = /icon ([value]) [bicon(value)]"
+ html += "[name] = /icon ([value]) [bicon(value, use_class=0)]"
#else
html += "[name] = /icon ([value])"
#endif
else if(istype(value, /image))
#ifdef VARSICON
- html += "[name] \ref[value] = /image ([value]) [bicon(value)]"
+ html += "[name] \ref[value] = /image ([value]) [bicon(value, use_class=0)]"
#else
html += "[name] \ref[value] = /image ([value])"
#endif
diff --git a/goon/code/datums/browserOutput.dm b/goon/code/datums/browserOutput.dm
index b0aad73286d..109b02eb72d 100644
--- a/goon/code/datums/browserOutput.dm
+++ b/goon/code/datums/browserOutput.dm
@@ -171,7 +171,8 @@ var/list/chatResources = list(
var/list/partial = splittext(iconData, "{")
return replacetext(copytext(partial[2], 3, -5), "\n", "")
-/proc/bicon(var/obj)
+/proc/bicon(var/obj, var/use_class = 1)
+ var/class = use_class ? "class='icon misc'" : null
if (!obj)
return
@@ -179,7 +180,7 @@ var/list/chatResources = list(
if (!bicon_cache["\ref[obj]"]) // Doesn't exist yet, make it.
bicon_cache["\ref[obj]"] = icon2base64(obj)
- return " "
+ return " "
// Either an atom or somebody fucked up and is gonna get a runtime, which I'm fine with.
var/atom/A = obj
@@ -191,8 +192,10 @@ var/list/chatResources = list(
I = icon()
I.Insert(temp, dir = SOUTH)
bicon_cache[key] = icon2base64(I, key)
+ if(use_class)
+ class = "class='icon [A.icon_state]'"
- return " "
+ return " "
//Aliases for bicon
/proc/bi(obj)
|
|
|
|