Enjoy BYOND? Contribute today!
Ways to display src's icon in browser.
Apr 18 2011, 1:39 pm
What ways are there to display the src's current icon in the browser?
Thanks in advance,
Apr 18 2011, 1:48 pm (Edited on Apr 18 2011, 8:58 pm)
You could use
to send the icon to the cache in a way that can be referenced in the browser. Read the reference entry on it, the example should be exactly what you're looking for.
It looks like it won't catch overlays or underlays. You'll have to either create a new icon representing the player's "flattened" icon (by blending in their overlays), or by outputting the players icon and all of their overlays to the browser and stacking them (has the bonus of not requiring your players to download a new icon)
I wrote a library for the first method, you can check it out here:
Get Flat Icon
I might write another for the second, but I've got a bunch of other stuff I should be working on...
Copyright © 2014 BYOND. All rights reserved.
Terms of Service