LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: Jynks on October 11, 2011, 10:44:27 AM

Title: [99% SOLVED] - Transparency on Tokens / Cards?
Post by: Jynks on October 11, 2011, 10:44:27 AM
Is it possible to use say PNG or a colour key to have transparent areas on a card or token? so non uniform cards shapes can be placed on the table? (say an octagon for example)

<---EDIT

After some trial and error, saving as a GIF with transparency works fine.. you need to put filename.GIF into the image column of the sets.txt file, not just the name or it will default look for jpg i think.

Only problem now is that this still leaves black line for the bounding box of the square bitmap on screen... can this be removed?

Title: Re: [99% SOLVED] - Transparency on Tokens / Cards?
Post by: Trevor on October 12, 2011, 04:36:53 PM
The bounding box is an area that can be clicked. Consider an irregular transparent card, where there are random areas with transparency. If you could only click on opaque regions, it could be a pain to click on a card. For that reason, simple rectangles are valid clickable areas, and there is therefor a rectangular bounding box. Also, the borders of this box are highlighted when the card is selected, and it would be very difficult to highlight irregular borders based on the card image.