How do I Customize Text Input?

Get help using Construct 2

Post » Tue Jun 07, 2016 5:48 pm

Hi everyone,

It's been awhile since I've needed to post a question but I have a project I'm doing that I want to allow a player to name their character. However the Text Input object seems to be impossible to change the font / size or even make the background transparent.

Is there a way to do this? Perhaps someone has made a 3rd party plugin somewhere..

Thanks,
Caleb
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Tue Jun 07, 2016 6:43 pm

Set CSS style ?

Image

CSS Fonts
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Jun 07, 2016 6:56 pm

how did you do that? i'm not sure i've ever seen css style as something i can set in C2. This looks like something I've not done before.

this is helpful for the background, but is it possible also to (likely using this approach you've shared) to change font style, orientation and size?
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Wed Jul 05, 2017 11:41 pm

bump. i droped this awhile back and now I'm using C3 with the same issue. how did you set a CSS value? I imagine it's similar in C3, but still no idea how to make "set css style" in C2/C3
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Thu Jul 06, 2017 7:09 pm

@ashley is it possible to open up more options for text entry? no color options or anything else for this. I imagine it's not a widely used object compared to others but it would be nice so nice if it were setup like the others.

I'm currently trying to figure out which combination is for color so i can get it to be white text instead of black.
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Thu Jul 06, 2017 7:09 pm

and I did learn that this "css" thing is an action in the event sheet. I'd not realized that was in there among the other options of the text input object. :)
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Thu Jul 06, 2017 7:38 pm

@part12studios For white text the two fields are "color" "white".
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Thu Jul 06, 2017 7:40 pm

i figured that one out just now thanks! :) any idea how i change the font size? my attempts at things like:

"font-size" and "20" don't appear to work.
B
59
S
9
G
1
Posts: 942
Reputation: 6,553

Post » Thu Jul 06, 2017 7:43 pm

It's "20px"
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Thu Jul 06, 2017 7:43 pm

bah! i just saw that too.. px.. thanks! :)
B
59
S
9
G
1
Posts: 942
Reputation: 6,553


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 50 guests