Add PNG Icon to CS Script? Possible?

Grazie wrote on 5/13/2010, 6:41 AM
I have this useful CursorToMiddle script and was wanting to have a PNG to make the script more visible for me. However this script has a CS suffix. I'm starting to realise that only DLL suffixes alow to be paired-up with PNGs.

Any way out of this?

TIA

Grazie

Comments

jetdv wrote on 5/13/2010, 7:54 AM
Should work with the CS files too. Just name it exactly the same adding the .png extension. So if the script is "MyScript.cs" name the PNG "MyScript.cs.png" and put it in the same folder as the CS file.

Next comes the PNG itself. It should be 16x16 32-bit (In Paint Shop Pro I have to add a spot of transparency to force the 32-bit part).
Grazie wrote on 5/13/2010, 8:20 AM
Thanks Edward.

HAH! I did ALL of this and forgot I had NOT flattened the layers in the PNG and then hadn't swapped out the WHITE for the existing transparency design. I had forgotten the single pixel, but that wouldn't have gotten me stuck - this time! What had e stumped was that I hadn't gone with the existing transparency BG, but obdurately stuck with the default white - fool!

So the quick answer is that I can for CS too. Is this the same for JSs too?

BTW, my Icon is sitting Proud-Mary on my toolbar!

Grazie