Change button text-type

Get help using Construct 2

Post » Mon Nov 04, 2013 7:28 pm

How do I change the text-style in normal buttons that you can put in?
For example I want my text inside that button to be bold. How do I do that?
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Post » Tue Nov 05, 2013 3:03 am

The simplist way is to use an image button, instead of a regular button.

http://www.scirra.com/forum/plugin-image-button_topic51829.html


However, one other option is the "Set CSS" under appearance, since the text is rendered HTML5. You can use all of the properties here:

http://www.w3schools.com/css/css_text.asp
B
15
S
5
G
2
Posts: 24
Reputation: 2,054

Post » Tue Nov 05, 2013 2:57 pm

Thanks!
For anyone who wants to know how I did it I simply made:
Every tick > Button - set css style "font-weight" to "bold"
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Post » Wed Nov 06, 2013 12:00 am

Just gave it a try.

Turns out, the setting sticks, no need to do it every tick. On object created/layout loaded, etc works just fine!

Cheers and thanks!
~Complete CSS NOOOOB
B
15
S
5
G
2
Posts: 24
Reputation: 2,054

Post » Wed Nov 06, 2013 2:26 pm

Yeah, obviously :P Just put it in every tick since I already had an every tick event, felt unnecessary to create a "on start of layout" event just for it ;)
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, SputnikCZ and 2 guests