how to change the buttons style?

Get help using Construct 2

Post » Tue Jun 19, 2012 8:26 am

@Nimtrix thank you
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Wed Jul 04, 2012 10:50 pm

[QUOTE=puoidirloatutti] hi, i read a lot of post but i can't find how to change the buttons style. color, style, font etc etc.
thank you all[/QUOTE]

Hi! I'm sure you've figured it our by now, but you should take a look here

http://www.scirra.com/forum/image-buttons-and-clickable-images_topic53914.html

as this thread describes how to make sprites clickable (like buttons) using the mouse object. That way you can make your buttons as crazy as you want in Photoshop, Gimp, whatever, and import them into your game, rather than have to use CSS.

Hope this helps someone!
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Tue May 06, 2014 3:34 pm

Nimtrix wrote:It's an action on the button object. Go to your event sheet and add a new action:

Code: Select all
Every Tick:
-> Set CSS Style


Hello. I have the same problem here. I can how to set Css style for buttons, but I don't know what should trigger it. I use "On loading finished" but the style gone when I resize the windows. As you mentioned, I can put it in Every tick. But won't that take too much unnecessary resource? Shouldn't there be some place to just set it once and never change?

Thanks!
B
5
S
1
Posts: 10
Reputation: 472

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests