Modifying L&F programmatically ?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

gregee123
Just popping in
Just popping in
Posts: 17
Joined: Sun Oct 21, 2012 23:50

Modifying L&F programmatically ?

Postby gregee123 » Tue Oct 30, 2012 11:39

What (if any?) properties of look and feel can be changed programmatically ? Can I change the label color on a pushbutton at runtime ? How would I do that ?

CEGUI 0.7.7

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Modifying L&F programmatically ?

Postby Kulik » Tue Oct 30, 2012 12:13

All of LNF (AFAIK) can be changed at runtime. You don't need to change the LNF to make colour changing happen though. Use case of changing the LNF would be something along the lines of making a looknfeel visual editor.

For changeable colour you would create a <PropertyDefinition> in the LNF, define a Colour property with nam XYZ and then use Property XYZ for the colour of something. Changing the property via setProperty will change the colour. There are examples of this in the stock LNF.

gregee123
Just popping in
Just popping in
Posts: 17
Joined: Sun Oct 21, 2012 23:50

Re: Modifying L&F programmatically ?

Postby gregee123 » Wed Oct 31, 2012 15:15

Thanks!

Can each and every of those named properties be animated as well?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Modifying L&F programmatically ?

Postby Kulik » Wed Oct 31, 2012 22:56

Yup

gregee123
Just popping in
Just popping in
Posts: 17
Joined: Sun Oct 21, 2012 23:50

Re: Modifying L&F programmatically ?

Postby gregee123 » Fri Nov 02, 2012 18:48

I'll keep that in mind. Thanks.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests