Broswer and \icon in Developer Help
Ah. Yet another simple solution that slipped my mind.
Okay, I'm getting somewhere, I tried using browse_rsc and I forgot the instruction to output to src the first time... anyways... I can cache the icon, but I can't figure out how to store the icon_state; I'm getting the first state in its' specified icon.
browse_rsc(new/icon('myicon.dmi', "mystate"), "myicon.png")
Also, is there a way to remove these files after they've been intitialized and displayed? I don't want to distribute people's icons to my moderators.
for(var/mob/Car/Custom/C in world) src << browse_rsc(new/icon(C.icon, "[C.icon_state]"), "\ref[C]car.png") html_doc += "<tr><td><center><a href=?src=\ref[C];action=driverpassengers><img src=\ref[C]car.png border=\"0\"> [C.name]</a></td>" //etc etc
Eeeek! Long unbreaking lines on forum.... arrrgh... *dies* =) You can split those up onto multiple lines using slashes, you know, like this:
<code>html_doc+="all the HTML stuff, etc. goes here; but now this line is getting a bit long, so.... \ > we jump down onto another line. All the blank space before "we" will be cut off."</code>
I my self am a fan of,
That way, I can write the html just as if it were in a txt file. ^_^
It's not much, but each and every character that isn't tieing up bandwidth is a triumph in my book. :)
Anyway, to your problem - I believe that if the file already exists in the cache, but the file your sending is different, DS will detect that and replace the old cached file with the new one. I might be wrong on that though.