CSS Class behaviour

Get help using Construct 2

Post » Sat Feb 02, 2013 7:57 pm

1. The present Set CSS style action lets me set different CSS values in the System -> On Start of layout one by one.

Is it somehow possible to use a CSS file and just set the class of, ex text objects to something?

2 The present Set CSS style action lets me set different CSS values in the System -> On Start of layout. I seem not to be able to use it in, ex Mouse over -events.

I want to create a CSS file and set objects to different CSS classes like I would normally do in HTML/Javascript. Is it possible?


Ex, I have a Family: txtMenuTexts
I want to set them to css Class='Normal' on layout start.
I want to set them to css Class='Hover' when Mouse Cursor is over them.
I want to set them to css Class='Normal' when Mouse Cursor is not over them.

This is basic functionality when doing HTML/Jscript.
But the only way I can achieve a near (not very) decent management of different styles now, is by using a staggering amount of global variables for the different font faces, sizes and colors + multitude of events, setting those values one by one. Quite unpractical...

Is there any other way of controlling text styles apart from what passes as CSS in Constructor or global variables?
Or am I just doing it all very wrongly?
Tumba2013-02-03 04:23:14
B
5
S
1
Posts: 18
Reputation: 436

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Colludium, jeffige, LeFuji, plinkie, Radulepy, Yahoo [Bot] and 0 guests