Implemeting autoScaled from 0.8 to 0.7.9

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

Irydion
Just popping in
Just popping in
Posts: 4
Joined: Wed Jul 03, 2013 07:53

Implemeting autoScaled from 0.8 to 0.7.9

Postby Irydion » Thu Jul 04, 2013 09:49

Hi,

I'm currently using cegui 0.7.9 and need the new autoScaled property present in 0.8.0 (which can keep aspect ratio with resizing) but I can't update all cegui to 0.8 as it would cost too much time (I'm using a custom renderer and I have a lot of changes in cegui's code).

Is it possible to take only this part from the new version? And if the answer is yes, in which files should I look in?
Or maybe it is easier to implement it directly in the code as I want all my layouts/imageset to have the same behaviour regarding autoscaling (autoscaling depending on resolution height and keeping ratio)?

Thanks for help in advance!

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

Re: Implemeting autoScaled from 0.8 to 0.7.9

Postby Kulik » Thu Jul 04, 2013 11:54

The short answer is "not easily". That is because 0.8.x has an entirely new Image API and that's what was used to implement this.

However, it could be done if you are OK with very limited API breakage. It's not going to be easy work though. I'd be willing to do this if it were paid for. (I have implemented the new autoScaled functionality in 0.8 ).

Irydion
Just popping in
Just popping in
Posts: 4
Joined: Wed Jul 03, 2013 07:53

Re: Implemeting autoScaled from 0.8 to 0.7.9

Postby Irydion » Thu Jul 04, 2013 12:19

Ok, thank you for the answer.
I think I will either try to merge all my changes to the 0.8 version (and adapt the renderer) or use a workaround.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests