Page 1 of 1
Transparent buttons?
Posted: Sun May 03, 2015 4:45 pm
by Transco
Is there a way to draw buttons with a transparent fill so that images (jpeg's) can be be used instead of the current fill and text? I supposed I could use sprites, but I'd prefer to use buttons if possible.
Re: Transparent buttons?
Posted: Sun May 03, 2015 4:56 pm
by Mr. Kibernetik
Check SET BUTTONS CUSTOM command.
Re: Transparent buttons?
Posted: Sun May 03, 2015 6:07 pm
by Transco
I've read over that section of the manual several times. I can see how I can control the transparency of the text, but I still don't see how to control the fill transparency.
Re: Transparent buttons?
Posted: Sun May 03, 2015 6:21 pm
by Mr. Kibernetik
Transco wrote:I've read over that section of the manual several times. I can see how I can control the transparency of the text, but I still don't see how to control the fill transparency.
Code: Select all
GRAPHICS
GRAPHICS CLEAR
BUTTON 0 TEXT "Button 1" AT 10,10
SET BUTTONS CUSTOM
DRAW COLOR 0,0,1
FILL ALPHA 0
BUTTON 1 TEXT "Button 2" AT 10,50
Re: Transparent buttons?
Posted: Sun May 03, 2015 6:40 pm
by Transco
'FILL ALPHA ZERO'. I missed that somehow. Thanks for your help!