Page 1 of 2

How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 3:56 am
by tamngon
I am using a textbox, but how textbox only shows text, background and borders become transparent?
Thank for read.

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 6:32 am
by Tekniko
Sorry, I don't understand your English. Could you post a screenshot or a picture of the problem?

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 6:46 am
by tamngon
It is here

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 7:43 am
by Excal
You should create a separate layer for GUI/textboxes. Set that layer to transparent.

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 8:42 am
by tamngon
I did so, but it still does not work.

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 6:30 pm
by dragoonblade
I know of one way is to do use window paint text box then cut it paste it in the gimp and set the layer to transparent alpha and then export it to construct 2

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 7:05 pm
by Excal
Actually, I know why. Originally I thought you were using a text field.

A text BOX requires user input and is used to allow the user to enter some information in your game. I doubt that can be set to transparent since it's based on browser settings. Correct me if wrong.

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 7:28 pm
by Tekniko
Use the Text object under General instead of Text Box under form controls.

Re: How Textbox background become transparent?

PostPosted: Sat Mar 16, 2013 7:39 pm
by ramones
You can style the text box with css. Edit your index.html and add
[code]
input[type="text"] { background: transparent; border: none;}
[/code]
to the style section.


That will change all text boxes. You can also give the text box an ID in the editor to style individual boxes.


*edit*
You can set the css style directly in the editor with the 'TextBox: Set CSS style' action.ramones2013-04-01 16:33:35

Re: How Textbox background become transparent?

PostPosted: Mon Mar 18, 2013 12:21 am
by tamngon
I did it, thank you very much.