ID:172180
 
Alright, I created an icon at runtime, and now I'd like to browse said icon. I know the icon exists, because I can use the \icon text macro to display it small sized, but I'd like to display it full size in the browser window. Basically, I'm doing this.
turf
var/icon/currentIcon
New()
..()
//create currentIcon here

proc
Show(mob/M)
M << "\icon[src.currentIcon]" // This works, so the icon is there.
M << browse_rsc(src.currentIcon, "Test")
M << browse("<img src=Test>")

// M << browse_rsc(src.currentIcon, "Test.png")
// M << browse("<img src=Test.png>")

// M << browse_rsc(src.currentIcon, "Test.dmi")
// M << browse("<img src=Test.dmi>")

// M << browse_rsc(src.currentIcon)
// M << browse("<img src=\ref[src.currentIcon]>")

I've tried all kinds of variations on this, and I'm stumped. Suggestions?
I think Crispy mentioned something like this a while back, and I think he found a work around: you have to put a delay in between browse_rsc() and browse() to get it to work. If I can find the post, I'll edit it and paste it here.